After checking the forums i managed to setup an xbox controller for presentations, the only thing i don't understand is the d-pad. How does it work ? i wanted to use it as simple buttons and not axis. Is that possible? I see that the mac driver treat D-pad as buttons is that the case for PC too? . Thanks.
here are the mappings
EDIT( I think i have to make a script that takes the Axis -1 1 and transform them to boolean buttons, is the dpad the 7th and 6th axis? .)
Yeah, the D-pad works.
Button 0 - nothing Button 1 - nothing Button 2 - DPad Up Button 3 - DPad Down Button 4 - DPad Left Button 5 - DPad Right Button 6 - Start Button 7 - Back Button 8 - Left Analog Stick Press Button 9 - Right Analog Stick Press Button 10 - Left Shoulder Button Button 11 - Right Shoulder Button Button 12 - XBox Button Button 13 - A Button 14 - B Button 15 - X Button 16 - Y Button 17 - nothing Button 18 - nothing Button 19 - nothing
Analog Stick Axes Same as drJones
5th Axis - Left Trigger 6th Axis - Right Trigger
I got this from here: http://forum.unity3d.com/viewtopic.php?t=5563&highlight=360+controller
It's possible to have more than one controller running at a time, I don't have that info on me right now.
::edit:: I don't know why the formatting it jacked up.
alexnode pointed out I listed the layout for a MAC. PC treats the D-pad differently.