February 27th, 2013, 17:09
Assign Analog Stick to hat?
Well, i think the title says it all:
I use a gamepad that doesn't provide X/Y axis but only an hat.
Is there a way i can assign the Analog Stick directions on this hat with the SDL Input plugin?
Something like "Y Axis Up=hat(0, Up)"?
Thanks in advance
February 28th, 2013, 06:18
Yes, here is a wiki page which documents the plugin parameters:
The only limitation is that a single axis (X or Y) cannot use 2 different hats for different directions. You would probably never want to do this anyway. To set it up to use a single hat (number 0) in the obvious mapping, you would configure it like this:
X Axis = hat(0 Left Right)
Y Axis = hat(0 Up Down)
February 28th, 2013, 14:52
Worked, thank you