IDs for generic XInput controllers

Compatible with the Xbox 360 controller, the Xbox One controller, and anything that masquerades as either of those.


NOTES

WINDOWS: we assume the user is using the default drivers that ship with windows.

LINUX: we assume the user is using the xpad driver, specifically Valve's version, steamos-xpad-dkms (we got weird errors when using xboxdrv). For full instructions on installation, see: http://askubuntu.com/questions/165210/how-do-i-get-an-xbox-360-controller-working/441548#441548

MAC: we assume the user is using the 360 Controller driver, specifically this one: https://github.com/360Controller/360Controller/releases

Static variables

@:value(new FlxTypedGamepadAnalogStick<XInputID>(LEFT_X, LEFT_Y, { up : LEFT_STICK_UP, down : LEFT_STICK_DOWN, left : LEFT_STICK_LEFT, right : LEFT_STICK_RIGHT }))staticfinalread onlyLEFT_ANALOG_STICK:FlxTypedGamepadAnalogStick<XInputID> = new FlxTypedGamepadAnalogStick<XInputID>(LEFT_X, LEFT_Y, { up : LEFT_STICK_UP, down : LEFT_STICK_DOWN, left : LEFT_STICK_LEFT, right : LEFT_STICK_RIGHT })

@:value(new FlxTypedGamepadAnalogStick<XInputID>(RIGHT_X, RIGHT_Y, { up : RIGHT_STICK_UP, down : RIGHT_STICK_DOWN, left : RIGHT_STICK_LEFT, right : RIGHT_STICK_RIGHT }))staticRIGHT_ANALOG_STICK:FlxTypedGamepadAnalogStick<XInputID> = new FlxTypedGamepadAnalogStick<XInputID>(RIGHT_X, RIGHT_Y, { up : RIGHT_STICK_UP, down : RIGHT_STICK_DOWN, left : RIGHT_STICK_LEFT, right : RIGHT_STICK_RIGHT })

Variables

@:value(cast 4)@:impl@:enuminlineread onlyA:XInputID = 4

@:value(cast 5)@:impl@:enuminlineread onlyB:XInputID = 5

@:value(cast 12)@:impl@:enuminlineread onlyBACK:XInputID = 12

@:value(cast 17)@:impl@:enuminlineread onlyDPAD_DOWN:XInputID = 17

@:value(cast 18)@:impl@:enuminlineread onlyDPAD_LEFT:XInputID = 18

@:value(cast 19)@:impl@:enuminlineread onlyDPAD_RIGHT:XInputID = 19

@:value(cast 16)@:impl@:enuminlineread onlyDPAD_UP:XInputID = 16

@:value(cast -1)@:impl@:enuminlineread onlyGUIDE:XInputID = -1

@:value(cast 8)@:impl@:enuminlineread onlyLB:XInputID = 8

@:value(cast 14)@:impl@:enuminlineread onlyLEFT_STICK_CLICK:XInputID = 14

@:value(cast 21)@:impl@:enuminlineread onlyLEFT_STICK_DOWN:XInputID = 21

@:value(cast 22)@:impl@:enuminlineread onlyLEFT_STICK_LEFT:XInputID = 22

@:value(cast 23)@:impl@:enuminlineread onlyLEFT_STICK_RIGHT:XInputID = 23

@:value(cast 20)@:impl@:enuminlineread onlyLEFT_STICK_UP:XInputID = 20

@:value(cast 10)@:impl@:enuminlineread onlyLEFT_TRIGGER:XInputID = 10

@:value(cast 9)@:impl@:enuminlineread onlyRB:XInputID = 9

@:value(cast 15)@:impl@:enuminlineread onlyRIGHT_STICK_CLICK:XInputID = 15

@:value(cast 25)@:impl@:enuminlineread onlyRIGHT_STICK_DOWN:XInputID = 25

@:value(cast 26)@:impl@:enuminlineread onlyRIGHT_STICK_LEFT:XInputID = 26

@:value(cast 27)@:impl@:enuminlineread onlyRIGHT_STICK_RIGHT:XInputID = 27

@:value(cast 24)@:impl@:enuminlineread onlyRIGHT_STICK_UP:XInputID = 24

@:value(cast 11)@:impl@:enuminlineread onlyRIGHT_TRIGGER:XInputID = 11

@:value(cast 13)@:impl@:enuminlineread onlySTART:XInputID = 13

@:value(cast 6)@:impl@:enuminlineread onlyX:XInputID = 6

@:value(cast 7)@:impl@:enuminlineread onlyY:XInputID = 7