Sdl Controller Layout?
Posted 26 April 2010 - 05:05 AM
needs to know the xbox controller layout for SDL based stuff.
Also he still needs the gamecube layout, so if anyone has those he'd be grateful
if you could also write those down too.
Posted 26 April 2010 - 05:31 AM
Left stick left/right = axis0
Left stick up/down = axis1
Right stick left/right = axis2
Right stick up/down = axis3
D-Pad = Hat0 (It has 8 possible positions but it is one device)
The rest including the triggers and pushing down on the analog stick are buttons. I could fire up Odamex and easily give you the mapping but not tonight. The sdl_joystick code for Xbox is on my repository here: http://svn.huntsvega...L_sysjoystick.c
I don't know about the GC button mapping but the Wii mapping is right here: http://www.wiibrew.o...oystick_mapping
Posted 26 April 2010 - 05:41 AM
I could fire up Odamex and easily give you the mapping but not tonight.
That would be greatly appreciated!
Posted 26 April 2010 - 06:52 PM
Left Stick X Axis = 0
Left Stick Y Axis = 1
Right Stick X Axis = 2
Right Stick Y Axis = 3
D-Pad = 0
A = 0
B = 1
X = 2
Y = 3
Black = 4
White = 5
Left Trigger = 6
Right Trigger = 7
Start = 8
Back = 9
Left Stick Down = 10
Right Stick Down = 11
Posted 26 April 2010 - 07:13 PM
he also found the Gamecube layout so he's got all he needed.
Thanks a lot!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users