Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: ntk on December 06, 2010, 05:34:42 am
-
hello
i have the a-pac with 2 padels and i can add 2 more pots to the a-pac, so I thought to buy something like this
http://cgi.ebay.com/500KA-POTENTIOMETER-VOLUME-CONTROL-SMALL-SIZE-X2-/380139639108?pt=LH_DefaultDomain_2&hash=item5882169144 (http://cgi.ebay.com/500KA-POTENTIOMETER-VOLUME-CONTROL-SMALL-SIZE-X2-/380139639108?pt=LH_DefaultDomain_2&hash=item5882169144)
and control the volume, anyone know software that can control the volume using joystick ?
thanks
-
You can map shift keys to volume keys on a Ultimarc pac.
-
Also, if your encoder doesn't support it (and you are running Windows or Linux), you can script something to take key combinations and turn them into volume increment/decrement.
-
thanks i know i can do it with the ipac but i want to make wheel instead of 2 buttons
-
If the apac output shows up as a joystick axis (which I believe it does), then you can use a script to convert joystick axis position to discrete volume setting.
-
If the apac output shows up as a joystick axis (which I believe it does), then you can use a script to convert joystick axis position to discrete volume setting.
yes it shows joystick axis
but the problem i have no idea how to make a script :banghead: and also I could not find any software or Script that can do such a thing, so if someone know how and can help me.... I really appreciate it
thanks
-
AHK or AI can do this easily. In fact, there may even be something written and posted on their forums.
http://www.autohotkey.com/ (http://www.autohotkey.com/)
http://www.autoitscript.com/autoit3/index.shtml (http://www.autoitscript.com/autoit3/index.shtml)
I'm a AHK person, so I'd check out the following functions and examples:
SetVolume (set the volume)
http://www.autohotkey.com/forum/topic9286.html (http://www.autohotkey.com/forum/topic9286.html)
GetKeyState (determine the position of the joystick axis)
http://www.autohotkey.com/docs/commands/GetKeyState.htm (http://www.autohotkey.com/docs/commands/GetKeyState.htm)
Remapping guides
Button/Keys/etc naming nomenclature
http://www.autohotkey.com/docs/KeyList.htm (http://www.autohotkey.com/docs/KeyList.htm)
Buttons/Keys
http://www.autohotkey.com/docs/misc/Remap.htm (http://www.autohotkey.com/docs/misc/Remap.htm)
Mouse/Joystick
http://www.autohotkey.com/docs/misc/RemapJoystick.htm (http://www.autohotkey.com/docs/misc/RemapJoystick.htm)
Joystick test script
http://www.autohotkey.com/docs/scripts/JoystickTest.htm (http://www.autohotkey.com/docs/scripts/JoystickTest.htm)
AFAIK, the joystick state for an analog axis is between 0 and 100. The SetVolume command needs to be set between 0 and 100 also. Thus, it should be a simple matter of poling for the position of the joystick and setting that value to the master volume. You may want to try the joystick test script first to make sure AHK sees the axis correctly.
Good luck! :cheers: