Fork me on GitHub
View source

package haxepunk.input

abstract Key

List of keys to be used with Input.

Class Fields

View source

keyString : String

Contains the string of the last keys pressed

lastKey : Int

Holds the last key pressed

View source

check (key : Key) : Bool

View source

checkInput (input : InputType) : Bool

View source

define (input : InputType, keys : Array<Key>) : Void

View source

nameOfKey (char : Key) : String

Returns the name of the key.


Parameters:
char   

The key to name.


Returns:

The name.

View source

pressed (key : Key) : Bool

View source

released (key : Key) : Bool

View source

update () : Void

Instance Fields

View source

read only A : Key

View source

read only ANY : Key

View source

read only B : Key

View source

read only BACKSPACE : Key

View source

read only C : Key

View source

read only CAPS_LOCK : Key

View source

read only COMMAND : Key

View source

read only CONTROL : Key

View source

read only D : Key

View source

read only DELETE : Key

View source

read only DIGIT_0 : Key

View source

read only DIGIT_1 : Key

View source

read only DIGIT_2 : Key

View source

read only DIGIT_3 : Key

View source

read only DIGIT_4 : Key

View source

read only DIGIT_5 : Key

View source

read only DIGIT_6 : Key

View source

read only DIGIT_7 : Key

View source

read only DIGIT_8 : Key

View source

read only DIGIT_9 : Key

View source

read only DOWN : Key

View source

read only E : Key

View source

read only END : Key

View source

read only ENTER : Key

View source

read only ESCAPE : Key

View source

read only F : Key

View source

read only F1 : Key

View source

read only F10 : Key

View source

read only F11 : Key

View source

read only F12 : Key

View source

read only F13 : Key

View source

read only F14 : Key

View source

read only F15 : Key

View source

read only F2 : Key

View source

read only F3 : Key

View source

read only F4 : Key

View source

read only F5 : Key

View source

read only F6 : Key

View source

read only F7 : Key

View source

read only F8 : Key

View source

read only F9 : Key

View source

read only G : Key

View source

read only H : Key

View source

read only HOME : Key

View source

read only I : Key

View source

read only INSERT : Key

View source

read only J : Key

View source

read only K : Key

View source

read only L : Key

View source

read only LEFT : Key

View source

read only M : Key

View source

read only N : Key

View source

read only NUMPAD_0 : Key

View source

read only NUMPAD_1 : Key

View source

read only NUMPAD_2 : Key

View source

read only NUMPAD_3 : Key

View source

read only NUMPAD_4 : Key

View source

read only NUMPAD_5 : Key

View source

read only NUMPAD_6 : Key

View source

read only NUMPAD_7 : Key

View source

read only NUMPAD_8 : Key

View source

read only NUMPAD_9 : Key

View source

read only O : Key

View source

read only P : Key

View source

read only PAGE_DOWN : Key

View source

read only PAGE_UP : Key

View source

read only Q : Key

View source

read only R : Key

View source

read only RIGHT : Key

View source

read only S : Key

View source

read only SHIFT : Key

View source

read only SPACE : Key

View source

read only T : Key

View source

read only TAB : Key

View source

read only TILDE : Key

View source

read only U : Key

View source

read only UP : Key

View source

read only V : Key

View source

read only W : Key

View source

read only X : Key

View source

read only Y : Key

View source

read only Z : Key