Package | org.flixel.system.input |
Class | public class Keyboard |
Inheritance | Keyboard Input Object |
Property | Defined By | ||
---|---|---|---|
A : Boolean | Keyboard | ||
ALT : Boolean | Keyboard | ||
B : Boolean | Keyboard | ||
BACKSLASH : Boolean | Keyboard | ||
BACKSPACE : Boolean | Keyboard | ||
C : Boolean | Keyboard | ||
CAPSLOCK : Boolean | Keyboard | ||
COMMA : Boolean | Keyboard | ||
CONTROL : Boolean | Keyboard | ||
D : Boolean | Keyboard | ||
DELETE : Boolean | Keyboard | ||
DOWN : Boolean | Keyboard | ||
E : Boolean | Keyboard | ||
EIGHT : Boolean | Keyboard | ||
END : Boolean | Keyboard | ||
ENTER : Boolean | Keyboard | ||
ESCAPE : Boolean | Keyboard | ||
F : Boolean | Keyboard | ||
F1 : Boolean | Keyboard | ||
F10 : Boolean | Keyboard | ||
F11 : Boolean | Keyboard | ||
F12 : Boolean | Keyboard | ||
F2 : Boolean | Keyboard | ||
F3 : Boolean | Keyboard | ||
F4 : Boolean | Keyboard | ||
F5 : Boolean | Keyboard | ||
F6 : Boolean | Keyboard | ||
F7 : Boolean | Keyboard | ||
F8 : Boolean | Keyboard | ||
F9 : Boolean | Keyboard | ||
FIVE : Boolean | Keyboard | ||
FOUR : Boolean | Keyboard | ||
G : Boolean | Keyboard | ||
H : Boolean | Keyboard | ||
HOME : Boolean | Keyboard | ||
I : Boolean | Keyboard | ||
INSERT : Boolean | Keyboard | ||
J : Boolean | Keyboard | ||
K : Boolean | Keyboard | ||
L : Boolean | Keyboard | ||
LBRACKET : Boolean | Keyboard | ||
LEFT : Boolean | Keyboard | ||
M : Boolean | Keyboard | ||
MINUS : Boolean | Keyboard | ||
N : Boolean | Keyboard | ||
NINE : Boolean | Keyboard | ||
NUMPADEIGHT : Boolean | Keyboard | ||
NUMPADFIVE : Boolean | Keyboard | ||
NUMPADFOUR : Boolean | Keyboard | ||
NUMPADMINUS : Boolean | Keyboard | ||
NUMPADNINE : Boolean | Keyboard | ||
NUMPADONE : Boolean | Keyboard | ||
NUMPADPERIOD : Boolean | Keyboard | ||
NUMPADPLUS : Boolean | Keyboard | ||
NUMPADSEVEN : Boolean | Keyboard | ||
NUMPADSIX : Boolean | Keyboard | ||
NUMPADSLASH : Boolean | Keyboard | ||
NUMPADTHREE : Boolean | Keyboard | ||
NUMPADTWO : Boolean | Keyboard | ||
NUMPADZERO : Boolean | Keyboard | ||
O : Boolean | Keyboard | ||
ONE : Boolean | Keyboard | ||
P : Boolean | Keyboard | ||
PAGEDOWN : Boolean | Keyboard | ||
PAGEUP : Boolean | Keyboard | ||
PERIOD : Boolean | Keyboard | ||
PLUS : Boolean | Keyboard | ||
Q : Boolean | Keyboard | ||
QUOTE : Boolean | Keyboard | ||
R : Boolean | Keyboard | ||
RBRACKET : Boolean | Keyboard | ||
RIGHT : Boolean | Keyboard | ||
S : Boolean | Keyboard | ||
SEMICOLON : Boolean | Keyboard | ||
SEVEN : Boolean | Keyboard | ||
SHIFT : Boolean | Keyboard | ||
SIX : Boolean | Keyboard | ||
SLASH : Boolean | Keyboard | ||
SPACE : Boolean | Keyboard | ||
T : Boolean | Keyboard | ||
TAB : Boolean | Keyboard | ||
THREE : Boolean | Keyboard | ||
TWO : Boolean | Keyboard | ||
U : Boolean | Keyboard | ||
UP : Boolean | Keyboard | ||
V : Boolean | Keyboard | ||
W : Boolean | Keyboard | ||
X : Boolean | Keyboard | ||
Y : Boolean | Keyboard | ||
Z : Boolean | Keyboard | ||
ZERO : Boolean | Keyboard |
Method | Defined By | ||
---|---|---|---|
Keyboard() | Keyboard | ||
any():Boolean
Check to see if any keys are pressed right now. | Input | ||
destroy():void
Clean up memory. | Input | ||
getKeyCode(KeyName:String):int
Look up the key code for any given string name of the key or button. | Input | ||
handleKeyDown(FlashEvent:KeyboardEvent):void
Event handler so FlxGame can toggle keys. | Keyboard | ||
handleKeyUp(FlashEvent:KeyboardEvent):void
Event handler so FlxGame can toggle keys. | Keyboard | ||
justPressed(Key:String):Boolean
Check to see if this key was just pressed. | Input | ||
justReleased(Key:String):Boolean
Check to see if this key is just released. | Input | ||
playback(Record:Array):void
Part of the keystroke recording system. | Input | ||
pressed(Key:String):Boolean
Check to see if this key is pressed. | Input | ||
record():Array
If any keys are not "released" (0),
this function will return an array indicating
which keys are pressed and what state they are in. | Input | ||
reset():void
Resets all the keys. | Input | ||
update():void
Updates the key states (for tracking just pressed, just released, etc). | Input |
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
END | property |
public var END: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
HOME | property |
public var HOME:Boolean
I | property |
public var I:Boolean
INSERT | property |
public var INSERT: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
PAGEDOWN | property |
public var PAGEDOWN:Boolean
PAGEUP | property |
public var PAGEUP: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
TAB | property |
public var TAB: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
Keyboard | () | Constructor |
public function Keyboard()
handleKeyDown | () | method |
public function handleKeyDown(FlashEvent:KeyboardEvent):void
Event handler so FlxGame can toggle keys.
Parameters
FlashEvent:KeyboardEvent — A KeyboardEvent object.
|
handleKeyUp | () | method |
public function handleKeyUp(FlashEvent:KeyboardEvent):void
Event handler so FlxGame can toggle keys.
Parameters
FlashEvent:KeyboardEvent — A KeyboardEvent object.
|