Property | Defined By | ||
---|---|---|---|
A : Boolean | FlxKeyboard | ||
ALT : Boolean | FlxKeyboard | ||
B : Boolean | FlxKeyboard | ||
BACKSLASH : Boolean | FlxKeyboard | ||
BACKSPACE : Boolean | FlxKeyboard | ||
C : Boolean | FlxKeyboard | ||
CAPSLOCK : Boolean | FlxKeyboard | ||
COMMA : Boolean | FlxKeyboard | ||
CONTROL : Boolean | FlxKeyboard | ||
D : Boolean | FlxKeyboard | ||
DELETE : Boolean | FlxKeyboard | ||
DOWN : Boolean | FlxKeyboard | ||
E : Boolean | FlxKeyboard | ||
EIGHT : Boolean | FlxKeyboard | ||
ENTER : Boolean | FlxKeyboard | ||
ESCAPE : Boolean | FlxKeyboard | ||
F : Boolean | FlxKeyboard | ||
F1 : Boolean | FlxKeyboard | ||
F10 : Boolean | FlxKeyboard | ||
F11 : Boolean | FlxKeyboard | ||
F12 : Boolean | FlxKeyboard | ||
F2 : Boolean | FlxKeyboard | ||
F3 : Boolean | FlxKeyboard | ||
F4 : Boolean | FlxKeyboard | ||
F5 : Boolean | FlxKeyboard | ||
F6 : Boolean | FlxKeyboard | ||
F7 : Boolean | FlxKeyboard | ||
F8 : Boolean | FlxKeyboard | ||
F9 : Boolean | FlxKeyboard | ||
FIVE : Boolean | FlxKeyboard | ||
FOUR : Boolean | FlxKeyboard | ||
G : Boolean | FlxKeyboard | ||
H : Boolean | FlxKeyboard | ||
I : Boolean | FlxKeyboard | ||
J : Boolean | FlxKeyboard | ||
K : Boolean | FlxKeyboard | ||
L : Boolean | FlxKeyboard | ||
LBRACKET : Boolean | FlxKeyboard | ||
LEFT : Boolean | FlxKeyboard | ||
M : Boolean | FlxKeyboard | ||
MINUS : Boolean | FlxKeyboard | ||
N : Boolean | FlxKeyboard | ||
NINE : Boolean | FlxKeyboard | ||
NUMPADEIGHT : Boolean | FlxKeyboard | ||
NUMPADFIVE : Boolean | FlxKeyboard | ||
NUMPADFOUR : Boolean | FlxKeyboard | ||
NUMPADMINUS : Boolean | FlxKeyboard | ||
NUMPADNINE : Boolean | FlxKeyboard | ||
NUMPADONE : Boolean | FlxKeyboard | ||
NUMPADPERIOD : Boolean | FlxKeyboard | ||
NUMPADPLUS : Boolean | FlxKeyboard | ||
NUMPADSEVEN : Boolean | FlxKeyboard | ||
NUMPADSIX : Boolean | FlxKeyboard | ||
NUMPADSLASH : Boolean | FlxKeyboard | ||
NUMPADTHREE : Boolean | FlxKeyboard | ||
NUMPADTWO : Boolean | FlxKeyboard | ||
NUMPADZERO : Boolean | FlxKeyboard | ||
O : Boolean | FlxKeyboard | ||
ONE : Boolean | FlxKeyboard | ||
P : Boolean | FlxKeyboard | ||
PERIOD : Boolean | FlxKeyboard | ||
PLUS : Boolean | FlxKeyboard | ||
Q : Boolean | FlxKeyboard | ||
QUOTE : Boolean | FlxKeyboard | ||
R : Boolean | FlxKeyboard | ||
RBRACKET : Boolean | FlxKeyboard | ||
RIGHT : Boolean | FlxKeyboard | ||
S : Boolean | FlxKeyboard | ||
SEMICOLON : Boolean | FlxKeyboard | ||
SEVEN : Boolean | FlxKeyboard | ||
SHIFT : Boolean | FlxKeyboard | ||
SIX : Boolean | FlxKeyboard | ||
SLASH : Boolean | FlxKeyboard | ||
SPACE : Boolean | FlxKeyboard | ||
T : Boolean | FlxKeyboard | ||
THREE : Boolean | FlxKeyboard | ||
TWO : Boolean | FlxKeyboard | ||
U : Boolean | FlxKeyboard | ||
UP : Boolean | FlxKeyboard | ||
V : Boolean | FlxKeyboard | ||
W : Boolean | FlxKeyboard | ||
X : Boolean | FlxKeyboard | ||
Y : Boolean | FlxKeyboard | ||
Z : Boolean | FlxKeyboard | ||
ZERO : Boolean | FlxKeyboard |
Method | Defined By | ||
---|---|---|---|
Constructor
| FlxKeyboard | ||
handleKeyDown(event:KeyboardEvent):void
Event handler so FlxGame can toggle keys. | FlxKeyboard | ||
handleKeyUp(event:KeyboardEvent):void
Event handler so FlxGame can toggle keys. | FlxKeyboard | ||
justPressed(Key:String):Boolean
Check to see if this key was just pressed. | FlxKeyboard | ||
justReleased(Key:String):Boolean
Check to see if this key is just released. | FlxKeyboard | ||
pressed(Key:String):Boolean
Check to see if this key is pressed. | FlxKeyboard | ||
reset():void
Resets all the keys. | FlxKeyboard | ||
update():void
Updates the key states (for tracking just pressed, just released, etc). | FlxKeyboard |
Method | Defined By | ||
---|---|---|---|
addKey(KeyName:String, KeyCode:uint):void
An internal helper function used to build the key array. | FlxKeyboard |
A | property |
public var A:Boolean
ALT | property |
public var ALT:Boolean
B | property |
public var B:Boolean
BACKSLASH | property |
public var BACKSLASH:Boolean
BACKSPACE | property |
public var BACKSPACE:Boolean
C | property |
public var C:Boolean
CAPSLOCK | property |
public var CAPSLOCK:Boolean
COMMA | property |
public var COMMA:Boolean
CONTROL | property |
public var CONTROL:Boolean
D | property |
public var D:Boolean
DELETE | property |
public var DELETE:Boolean
DOWN | property |
public var DOWN:Boolean
E | property |
public var E:Boolean
EIGHT | property |
public var EIGHT:Boolean
ENTER | property |
public var ENTER:Boolean
ESCAPE | property |
public var ESCAPE:Boolean
F | property |
public var F:Boolean
F1 | property |
public var F1:Boolean
F10 | property |
public var F10:Boolean
F11 | property |
public var F11:Boolean
F12 | property |
public var F12:Boolean
F2 | property |
public var F2:Boolean
F3 | property |
public var F3:Boolean
F4 | property |
public var F4:Boolean
F5 | property |
public var F5:Boolean
F6 | property |
public var F6:Boolean
F7 | property |
public var F7:Boolean
F8 | property |
public var F8:Boolean
F9 | property |
public var F9:Boolean
FIVE | property |
public var FIVE:Boolean
FOUR | property |
public var FOUR:Boolean
G | property |
public var G:Boolean
H | property |
public var H:Boolean
I | property |
public var I:Boolean
J | property |
public var J:Boolean
K | property |
public var K:Boolean
L | property |
public var L:Boolean
LBRACKET | property |
public var LBRACKET:Boolean
LEFT | property |
public var LEFT:Boolean
M | property |
public var M:Boolean
MINUS | property |
public var MINUS:Boolean
N | property |
public var N:Boolean
NINE | property |
public var NINE:Boolean
NUMPADEIGHT | property |
public var NUMPADEIGHT:Boolean
NUMPADFIVE | property |
public var NUMPADFIVE:Boolean
NUMPADFOUR | property |
public var NUMPADFOUR:Boolean
NUMPADMINUS | property |
public var NUMPADMINUS:Boolean
NUMPADNINE | property |
public var NUMPADNINE:Boolean
NUMPADONE | property |
public var NUMPADONE:Boolean
NUMPADPERIOD | property |
public var NUMPADPERIOD:Boolean
NUMPADPLUS | property |
public var NUMPADPLUS:Boolean
NUMPADSEVEN | property |
public var NUMPADSEVEN:Boolean
NUMPADSIX | property |
public var NUMPADSIX:Boolean
NUMPADSLASH | property |
public var NUMPADSLASH:Boolean
NUMPADTHREE | property |
public var NUMPADTHREE:Boolean
NUMPADTWO | property |
public var NUMPADTWO:Boolean
NUMPADZERO | property |
public var NUMPADZERO:Boolean
O | property |
public var O:Boolean
ONE | property |
public var ONE:Boolean
P | property |
public var P:Boolean
PERIOD | property |
public var PERIOD:Boolean
PLUS | property |
public var PLUS:Boolean
Q | property |
public var Q:Boolean
QUOTE | property |
public var QUOTE:Boolean
R | property |
public var R:Boolean
RBRACKET | property |
public var RBRACKET:Boolean
RIGHT | property |
public var RIGHT:Boolean
S | property |
public var S:Boolean
SEMICOLON | property |
public var SEMICOLON:Boolean
SEVEN | property |
public var SEVEN:Boolean
SHIFT | property |
public var SHIFT:Boolean
SIX | property |
public var SIX:Boolean
SLASH | property |
public var SLASH:Boolean
SPACE | property |
public var SPACE:Boolean
T | property |
public var T:Boolean
THREE | property |
public var THREE:Boolean
TWO | property |
public var TWO:Boolean
U | property |
public var U:Boolean
UP | property |
public var UP:Boolean
V | property |
public var V:Boolean
W | property |
public var W:Boolean
X | property |
public var X:Boolean
Y | property |
public var Y:Boolean
Z | property |
public var Z:Boolean
ZERO | property |
public var ZERO:Boolean
FlxKeyboard | () | Constructor |
public function FlxKeyboard()
Constructor
addKey | () | method |
protected function addKey(KeyName:String, KeyCode:uint):void
An internal helper function used to build the key array.
Parameters
KeyName:String — String name of the key (e.g. "LEFT" or "A")
| |
KeyCode:uint — The numeric Flash code for this key.
|
handleKeyDown | () | method |
public function handleKeyDown(event:KeyboardEvent):void
Event handler so FlxGame can toggle keys.
Parameters
event:KeyboardEvent — A KeyboardEvent object.
|
handleKeyUp | () | method |
public function handleKeyUp(event:KeyboardEvent):void
Event handler so FlxGame can toggle keys.
Parameters
event:KeyboardEvent — A KeyboardEvent object.
|
justPressed | () | method |
public function justPressed(Key:String):Boolean
Check to see if this key was just pressed.
Parameters
Key:String — One of the key constants listed above (e.g. "LEFT" or "A").
|
Boolean — Whether the key was just pressed
|
justReleased | () | method |
public function justReleased(Key:String):Boolean
Check to see if this key is just released.
Parameters
Key:String — One of the key constants listed above (e.g. "LEFT" or "A").
|
Boolean — Whether the key is just released.
|
pressed | () | method |
public function pressed(Key:String):Boolean
Check to see if this key is pressed.
Parameters
Key:String — One of the key constants listed above (e.g. "LEFT" or "A").
|
Boolean — Whether the key is pressed
|
reset | () | method |
public function reset():void
Resets all the keys.
update | () | method |
public function update():void
Updates the key states (for tracking just pressed, just released, etc).