Known GameInput controls on Adobe AIR
Comments
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
Comment only
 
 
ABCDEFGHIJKLMNOPQRSTUV
1
Known GameInput controls in Flash (AIR and plugin)
2
This lists all the GameInputControl instances that come out of a given GameInputDevice on a given platform. It's useful when adding game controller support to Flash apps.
3
Tested Platform(s)Actual devicedevice.nameActual control[3]control.idmin valuemax valuepressure sensitive?injected keyCode[2]injected keyLocation[2]injected secondary control[4]Other notes
4
OUYA

AIR 3.9.0.1030

October 8, 2013
OUYA controller"OUYA Game Controller"
(24 controls)
left stick X axis (left to right)AXIS_0-11yesKeyboard.LEFT / .RIGHTKeyLocation.D_PAD[1]BUTTON_21 or BUTTON_22
5
left stick Y axis (up to down)AXIS_1-11yesKeyboard.UP / .DOWNKeyLocation.D_PAD[1]BUTTON_19 or BUTTON_20Mind the vertical direction!
6
right stick X axis (left to right)AXIS_11-11yes
7
right stick Y axis (up to down)AXIS_14-11yesMind the vertical direction!
8
L2/LT (analog)AXIS_1701yesBUTTON_104
9
R2/RT (analog)AXIS_1801yesBUTTON_105
10
?AXIS_3201?Always reports a value of 0.8862745761871338 after any control is used, but otherwise is useless
11
?AXIS_3301?
12
?AXIS_3401?
13
?AXIS_3501?
14
dpad upBUTTON_1901noKeyboard.UPKeyLocation.D_PAD[1]Keyboard event dispatched repetedly while pressed
15
dpad downBUTTON_2001noKeyboard.DOWNKeyLocation.D_PAD[1]Keyboard event dispatched repetedly while pressed
16
dpad leftBUTTON_2101noKeyboard.LEFTKeyLocation.D_PAD[1]Keyboard event dispatched repetedly while pressed
17
dpad rightBUTTON_2201noKeyboard.RIGHTKeyLocation.D_PAD[1]Keyboard event dispatched repetedly while pressed
18
O (down/green)BUTTON_9601noKeyboard.ENTERKeyLocation.D_PAD[1]Keyboard event dispatched repetedly while pressed
19
A (right/red)BUTTON_9701noKeyboard.BACKKeyLocation.STANDARD
20
U (left/blue)BUTTON_9901no
21
Y (up/yellow)BUTTON_10001no
22
L1/LBBUTTON_10201no
23
R1/RBBUTTON_10301no
24
L2/LTBUTTON_10401no
25
R2/RTBUTTON_10501no
26
L3/left stick downBUTTON_10601noKeyboard.ENTERKeyLocation.D_PAD
27
R3/right stick downBUTTON_10701noKeyboard.ENTERKeyLocation.D_PAD
28
OUYA button----Keyboard.MENUKeyLocation.STANDARDBoth keyboard up and down dispatched immediately on release; opens OUYA menu if double-tapped (cannot preventDefault())
29
OUYA
(AIR 3.9.0.0790 beta)
PS3 controller"Sony PLAYSTATION(R)3 Controller"
(29 controls)
left stick X axis (left to right)AXIS_0-11yesKeyboard.LEFT / .RIGHTKeyLocation.D_PADBUTTON_21 or BUTTON_22
30
left stick Y axis (up to down)AXIS_1-11yesKeyboard.UP / .DOWNKeyLocation.D_PADBUTTON_19 or BUTTON_20Mind the vertical direction!
31
right stick X axis (left to right)AXIS_11-11yes
32
right stick Y axis (up to down)AXIS_14-11yesMind the vertical direction!
33
L2/LT (analog)AXIS_1701yesBUTTON_104
34
R2/RT (analog)AXIS_1801yesBUTTON_105
35
?AXIS_3201?
36
?AXIS_3301?
37
?AXIS_3401?
38
?AXIS_3501?
39
dpad up (analog)AXIS_3601yesKeyboard.UPKeyLocation.D_PAD
40
dpad right (analog)AXIS_3701yesKeyboard.RIGHTKeyLocation.D_PAD
41
dpad_down (analog)AXIS_3801yesKeyboard.DOWNKeyLocation.D_PAD
42
? should be dpad_left?AXIS_3901?? (should be 37)?Not actually working
43
dpad upBUTTON_1901noKeyboard.UPKeyLocation.D_PADKeyboard event dispatched repetedly while pressed
44
dpad downBUTTON_2001noKeyboard.DOWNKeyLocation.D_PADKeyboard event dispatched repetedly while pressed
45
dpad leftBUTTON_2101noKeyboard.LEFTKeyLocation.D_PADKeyboard event dispatched repetedly while pressed
46
dpad rightBUTTON_2201noKeyboard.RIGHTKeyLocation.D_PADKeyboard event dispatched repetedly while pressed
47
Cross (down/blue)BUTTON_9601noKeyboard.ENTERKeyLocation.D_PAD
48
Circle (right/red)BUTTON_9701noKeyboard.BACKKeyLocation.STANDARDKeyboard event dispatched repetedly while pressed
49
Square (left/purple)BUTTON_9901no
50
Triangle (up/green)BUTTON_10001no
51
L1/LBBUTTON_10201no
52
R1/RBBUTTON_10301no
53
L2/LTBUTTON_10401no
54
R2/RTBUTTON_10501no
55
L3/left stick downBUTTON_10601noKeyboard.ENTERKeyLocation.D_PAD
56
R3/right stick downBUTTON_10701noKeyboard.ENTERKeyLocation.D_PAD
57
STARTBUTTON_10801noKeyboard.MENUKeyLocation.STANDARD
58
PS Button----Keyboard.MENUKeyLocation.STANDARDBoth keyboard up and down dispatched immediately on release; opens OUYA menu if double-tapped (cannot preventDefault())
59
SELECT----Keyboard.BACKKeyLocation.STANDARDKeyboard event dispatched repetedly while pressed
60
OUYA

AIR 4.0.0.1390

February 13th, 2014
PS4 controller"Sony Computer Entertainment Wireless Controller"
(22 controls)
left stick X axis (left to right)AXIS_0-11yesKeyboard.LEFT / .RIGHTKeyLocation.D_PAD
61
left stick Y axis (up to down)AXIS_1-11yesKeyboard.UP / .DOWNKeyLocation.D_PADMind the vertical direction!
62
right stick X axis (left to right)AXIS_11-11yes
63
L2/LT (analog)AXIS_12-11yesBUTTON_102
64
R2/RT (analog)AXIS_13-11yesBUTTON_103
65
right stick Y axis (up to down)AXIS_14-11yesMind the vertical direction!
66
dpad left/rightAXIS_15-11noKeyboard.LEFT / .RIGHTKeyLocation.D_PADFired when dpad is used, but not pressure-sensitive
67
dpad up/downAXIS_16-11noKeyboard.UP / .DOWNKeyLocation.D_PADFired when dpad is used, but not pressure-sensitive
68
Square (left/purple)BUTTON_9601noActs as "back" in the native OUYA interface
69
Cross (down/blue)BUTTON_9701no
70
Circle (right/red)BUTTON_9801no
71
Triangle (up/green)BUTTON_9901no
72
L1/LBBUTTON_10001no
73
R1/RBBUTTON_10101no
74
L2/LTBUTTON_10201no
75
R2/RTBUTTON_10301no
76
SHAREBUTTON_10401no
77
OPTIONSBUTTON_10501no
78
TRACKPADBUTTON_10601noKeyboard.ENTERKeyLocation.D_PAD
79
R3/right stick downBUTTON_10801noOrder of sticks is reverted
80
L3/left stick downBUTTON_10901noOrder of sticks is reverted; opens OUYA menu if double-tapped (cannot preventDefault())
81
PS ButtonBUTTON_11001noKeyboard.MENUKeyLocation.STANDARDKeyboard event dispatched repetedly while pressed
82
OUYA

AIR 4.0.0.1390

February 9th, 2014
XBox 360 Controller"Microsoft X-Box 360 pad"
(17 controls)
left stick X axis (left to right)AXIS_0-11yesKeyboard.LEFT / .RIGHTKeyLocation.D_PAD
83
left stick Y axis (up to down)AXIS_1-11yesKeyboard.UP / .DOWNKeyLocation.D_PADMind the vertical direction!
84
right stick X axis (left to right)AXIS_11-11yes
85
right stick Y axis (up to down)AXIS_14-11yesMind the vertical direction!
86
dpad left/rightAXIS_15-11noKeyboard.LEFT / .RIGHTKeyLocation.D_PADFired when dpad is used, but not pressure-sensitive
87
dpad up/downAXIS_16-11noKeyboard.UP / .DOWNKeyLocation.D_PADFired when dpad is used, but not pressure-sensitive
88
L2/LT (analog)AXIS_1701yes
89
R2/RT (analog)AXIS_1801yes
90
A (down/green)BUTTON_9601noKeyboard.ENTERKeyLocation.D_PADKeyboard event dispatched repetedly while pressed
91
B (right/red)BUTTON_9701noKeyboard.BACKKeyLocation.STANDARD
92
X (left/blue)BUTTON_9901no
93
Y (up/yellow)BUTTON_10001no
94
L1/LBBUTTON_10201no
95
R1/RBBUTTON_10301no
96
L3/left stick downBUTTON_10601noKeyboard.ENTERKeyLocation.D_PAD
97
R3/right stick downBUTTON_10701noKeyboard.ENTERKeyLocation.D_PAD
98
STARTBUTTON_10801noKeyboard.MENUKeyLocation.STANDARDBoth keyboard up and down dispatched immediately on press; requires either START or B/Back to be pressed again before events are passed to AIR again
99
BACK----Keyboard.BACKKeyLocation.STANDARDKeyboard event dispatched repetedly while pressed
100
XBOX button----Keyboard.MENUKeyLocation.STANDARDBoth keyboard up and down dispatched immediately on release; opens OUYA menu if double-tapped (cannot preventDefault())
Loading...
 
 
 
Gamepads
Devices