Xbox controller button assignments

BlitzMax Forums/BlitzMax Programming/Xbox controller button assignments

JazzieB(Posted 2014) [#1]
Hi,

First up, if anyone is looking to include the proper graphics icons for controller buttons/sticks, then I found this great resource - http://opengameart.org/content/free-keyboard-and-controllers-prompts-pack

Now, to my little question. I am currently putting the base code together for future projects (a framework, if you weill), and I want to use the proper names/icones for PS4 and Xbox controllers (skipping PS3 as it was never officially supported). Anyhoo, I have the assignments for the PS4 controller, which are below.

Button 0 - Square
Button 1 - Cross
Button 2 - Circle
Button 3 - Triangle
Button 4 - L1
Button 5 - R1
Button 6 - L2 (also mapped to V axis)
Button 7 - R2 (also mapped to U axis)
Button 8 - Share
Button 9 - Options
Button 10 - L3
Button 11 - R3
Button 12 - PS
Button 13 - Trackpad button
Left stick - X/Y axis
Right stick - Z/R axis
D-Pad - Hat

For the 360 and X1, I am assuming the following

Button 0 - X
Button 1 - A
Button 2 - B
Button 3 - Y
Button 4 - LB
Button 5 - RB
Button 6 - LT (also mapped to V axis)
Button 7 - RT (also mapped to U axis)
Button 8 - Back (360) / ? (X1)
Button 9 - Start (360) / ? (X1)
Button 10 - Left stick button?
Button 11 - Right stick button?
Button 12 - Big "X" (called?)
Left stick - X/Y axis
Right stick - Z/R axis
D-Pad - Hat

Could someone confirm that the above is correct for both the 360 and the X1, as I've assumed that the same buttons in the same position are the same as the PS4 or any other generic controller. I also don't know the correct names for some of these buttons, so would be greatful for any corrections.

Thanks.