I know you might get this question too often than you would like to, but, Can anyone give me an example script as to how to make my standard 12 buttons (on my joystick) to work as some letter keys on the keyboard and make the POV (on my joystick) move as the arrow keys on the keyboard?
Thanks in advance :wink:
Keyboard to joystick
Started by
Gasto
, Dec 17 2004 05:54 PM
4 replies to this topic
#1
Posted 17 December 2004 - 05:54 PM
#2
Posted 17 December 2004 - 10:36 PM
Here are a few simple remappings:how to make my standard 12 buttons (on my joystick) to work as some letter keys on the keyboard
Joy1::Send a
Joy2::Send ^c ; Ctrl+C
Joy3::Send {Enter}
Joy4::Send {Esc}
Joy5::Send {Space}
To easily discover the button numbers of your joystick, you could use the joystick test script at http://www.autohotke...oystickTest.htm
That is a little more difficult. If you haven't already, check out the following script which should get you started: http://www.autohotke... ... kMouse.htmmake the POV (on my joystick) move as the arrow keys on the keyboard
If it's not enough, post more questions here.
#3
Guests
Posted 10 March 2005 - 05:50 PM
I am looking into this as well. That script seems overly complex for something as simple as just finding the x and y axis and sending a left, right, up, down, or multiple (diagnals). I havent tried this, I was looking to see if someone else did this (no use re-inventing the wheel). But wouldnt a
work?
joyWatch: GetKeyState, joyx if joyx < 50 Send, left
work?
#4
Posted 11 March 2005 - 01:05 AM
Something like that might work, it really depends on the game or application that you're trying to control: Does it require the left arrow to be held down, or does it require a repeated series of left-arrows (to simulate the keyboard's auto-repeat feature).
The following topic is especially relevant because it shows how to map a joystick's POV control to become arrow keys: http://www.autohotke...opic.php?t=1646
The same technique could be used to remap the X and Y axes.
The following topic is especially relevant because it shows how to map a joystick's POV control to become arrow keys: http://www.autohotke...opic.php?t=1646
The same technique could be used to remap the X and Y axes.
#5
Guests
Posted 25 March 2005 - 05:12 PM
the other thread solved my problem too. thanks.




