A high-level list of unique values for gamepad inputs. These do NOT correspond to any actual hardware values but are the basis for all hardware-specific lookups.

Maps enum values and strings to unique integer codes

Static variables

@:value(FlxMacroUtil.buildMap("flixel.input.gamepad.FlxGamepadInputID"))staticread onlyfromStringMap:Map<String, FlxGamepadInputID> = FlxMacroUtil.buildMap("flixel.input.gamepad.FlxGamepadInputID")

@:value(FlxMacroUtil.buildMap("flixel.input.gamepad.FlxGamepadInputID", true))staticread onlytoStringMap:Map<FlxGamepadInputID, String> = FlxMacroUtil.buildMap("flixel.input.gamepad.FlxGamepadInputID", true)

Static methods

@:fromstaticinlinefromString(s:String):FlxGamepadInputID

@:tostaticinlinetoString(this:Int):String

Variables

@:value(cast 0)@:impl@:enuminlineread onlyA:FlxGamepadInputID = 0

BOTTOM face button

@:value(cast -2)@:impl@:enuminlineread onlyANY:FlxGamepadInputID = -2

@:value(cast 1)@:impl@:enuminlineread onlyB:FlxGamepadInputID = 1

RIGHT face button

@:value(cast 6)@:impl@:enuminlineread onlyBACK:FlxGamepadInputID = 6

also known as "select", the leftmost center button

@:value(cast 21)@:impl@:enuminlineread onlyDPAD:FlxGamepadInputID = 21

identifier for the entire DPAD itself, not just any particular button

@:value(cast 12)@:impl@:enuminlineread onlyDPAD_DOWN:FlxGamepadInputID = 12

@:value(cast 13)@:impl@:enuminlineread onlyDPAD_LEFT:FlxGamepadInputID = 13

@:value(cast 14)@:impl@:enuminlineread onlyDPAD_RIGHT:FlxGamepadInputID = 14

@:value(cast 11)@:impl@:enuminlineread onlyDPAD_UP:FlxGamepadInputID = 11

@:value(cast 30)@:impl@:enuminlineread onlyEXTRA_0:FlxGamepadInputID = 30

an extra digital button that doesn't fit cleanly into the universal template

@:value(cast 31)@:impl@:enuminlineread onlyEXTRA_1:FlxGamepadInputID = 31

an extra digital button that doesn't fit cleanly into the universal template

@:value(cast 32)@:impl@:enuminlineread onlyEXTRA_2:FlxGamepadInputID = 32

an extra digital button that doesn't fit cleanly into the universal template

@:value(cast 33)@:impl@:enuminlineread onlyEXTRA_3:FlxGamepadInputID = 33

an extra digital button that doesn't fit cleanly into the universal template

@:value(cast 10)@:impl@:enuminlineread onlyGUIDE:FlxGamepadInputID = 10

this is the "XBox" or "PS" or "home" button in the center

@:value(cast 19)@:impl@:enuminlineread onlyLEFT_ANALOG_STICK:FlxGamepadInputID = 19

identifier for the entire LEFT_ANALOG_STICK itself, not just any particular direction

@:value(cast 4)@:impl@:enuminlineread onlyLEFT_SHOULDER:FlxGamepadInputID = 4

left digital "bumper"

@:value(cast 8)@:impl@:enuminlineread onlyLEFT_STICK_CLICK:FlxGamepadInputID = 8

digital click of the left analog stick

@:value(cast 36)@:impl@:enuminlineread onlyLEFT_STICK_DIGITAL_DOWN:FlxGamepadInputID = 36

left analog stick as a dpad, pushed down

@:value(cast 37)@:impl@:enuminlineread onlyLEFT_STICK_DIGITAL_LEFT:FlxGamepadInputID = 37

left analog stick as a dpad, pushed left

@:value(cast 35)@:impl@:enuminlineread onlyLEFT_STICK_DIGITAL_RIGHT:FlxGamepadInputID = 35

left analog stick as a dpad, pushed right

@:value(cast 34)@:impl@:enuminlineread onlyLEFT_STICK_DIGITAL_UP:FlxGamepadInputID = 34

left analog stick as a dpad, pushed up

@:value(cast 17)@:impl@:enuminlineread onlyLEFT_TRIGGER:FlxGamepadInputID = 17

@:value(cast 15)@:impl@:enuminlineread onlyLEFT_TRIGGER_BUTTON:FlxGamepadInputID = 15

digital click at end of left analog trigger's squeeze (if available)

@:value(cast -1)@:impl@:enuminlineread onlyNONE:FlxGamepadInputID = -1

@:value(cast 28)@:impl@:enuminlineread onlyPOINTER_X:FlxGamepadInputID = 28

for a mouse-like input such as touch or IR camera. Horizontal axis.

@:value(cast 29)@:impl@:enuminlineread onlyPOINTER_Y:FlxGamepadInputID = 29

for a mouse-like input such as touch or IR camera. Vertical axis.

@:value(cast 20)@:impl@:enuminlineread onlyRIGHT_ANALOG_STICK:FlxGamepadInputID = 20

identifier for the entire RIGHT_ANALOG_STICK itself, not just any particular direction

@:value(cast 5)@:impl@:enuminlineread onlyRIGHT_SHOULDER:FlxGamepadInputID = 5

right digital "bumper"

@:value(cast 9)@:impl@:enuminlineread onlyRIGHT_STICK_CLICK:FlxGamepadInputID = 9

digital click of the right analog stick

@:value(cast 40)@:impl@:enuminlineread onlyRIGHT_STICK_DIGITAL_DOWN:FlxGamepadInputID = 40

left analog stick as a dpad, pushed down

@:value(cast 41)@:impl@:enuminlineread onlyRIGHT_STICK_DIGITAL_LEFT:FlxGamepadInputID = 41

left analog stick as a dpad, pushed left

@:value(cast 39)@:impl@:enuminlineread onlyRIGHT_STICK_DIGITAL_RIGHT:FlxGamepadInputID = 39

left analog stick as a dpad, pushed right

@:value(cast 38)@:impl@:enuminlineread onlyRIGHT_STICK_DIGITAL_UP:FlxGamepadInputID = 38

left analog stick as a dpad, pushed up

@:value(cast 18)@:impl@:enuminlineread onlyRIGHT_TRIGGER:FlxGamepadInputID = 18

@:value(cast 16)@:impl@:enuminlineread onlyRIGHT_TRIGGER_BUTTON:FlxGamepadInputID = 16

digital click at end of right analog trigger's squeeze (if available)

@:value(cast 7)@:impl@:enuminlineread onlySTART:FlxGamepadInputID = 7

the rightmost center button

@:value(cast 26)@:impl@:enuminlineread onlyTILT_PITCH:FlxGamepadInputID = 26

tilting towards or away from the ceiling (think "look up", "look down")

@:value(cast 27)@:impl@:enuminlineread onlyTILT_ROLL:FlxGamepadInputID = 27

tilting side-to-side (think "twisting", or "do a barrel roll!")

@:value(cast 2)@:impl@:enuminlineread onlyX:FlxGamepadInputID = 2

LEFT face button

@:value(cast 3)@:impl@:enuminlineread onlyY:FlxGamepadInputID = 3

TOP face button