Packagenet.flashpunk.utils
Classpublic class Key
InheritanceKey Inheritance Object

Contains static key constants to be used by Input.



Public Methods
 MethodDefined By
  
name(char:int):String
[static] Returns the name of the key.
Key
Public Constants
 ConstantDefined By
  A : int = 65
[static]
Key
  ANY : int = -1
[static]
Key
  B : int = 66
[static]
Key
  BACKSPACE : int = 8
[static]
Key
  C : int = 67
[static]
Key
  CAPS_LOCK : int = 20
[static]
Key
  COMMAND : int = 15
[static]
Key
  CONTROL : int = 17
[static]
Key
  D : int = 68
[static]
Key
  DELETE : int = 46
[static]
Key
  DIGIT_0 : int = 48
[static]
Key
  DIGIT_1 : int = 49
[static]
Key
  DIGIT_2 : int = 50
[static]
Key
  DIGIT_3 : int = 51
[static]
Key
  DIGIT_4 : int = 52
[static]
Key
  DIGIT_5 : int = 53
[static]
Key
  DIGIT_6 : int = 54
[static]
Key
  DIGIT_7 : int = 55
[static]
Key
  DIGIT_8 : int = 56
[static]
Key
  DIGIT_9 : int = 57
[static]
Key
  DOWN : int = 40
[static]
Key
  E : int = 69
[static]
Key
  END : int = 35
[static]
Key
  ENTER : int = 13
[static]
Key
  ESCAPE : int = 27
[static]
Key
  F : int = 70
[static]
Key
  F1 : int = 112
[static]
Key
  F10 : int = 121
[static]
Key
  F11 : int = 122
[static]
Key
  F12 : int = 123
[static]
Key
  F13 : int = 124
[static]
Key
  F14 : int = 125
[static]
Key
  F15 : int = 126
[static]
Key
  F2 : int = 113
[static]
Key
  F3 : int = 114
[static]
Key
  F4 : int = 115
[static]
Key
  F5 : int = 116
[static]
Key
  F6 : int = 117
[static]
Key
  F7 : int = 118
[static]
Key
  F8 : int = 119
[static]
Key
  F9 : int = 120
[static]
Key
  G : int = 71
[static]
Key
  H : int = 72
[static]
Key
  HOME : int = 36
[static]
Key
  I : int = 73
[static]
Key
  INSERT : int = 45
[static]
Key
  J : int = 74
[static]
Key
  K : int = 75
[static]
Key
  L : int = 76
[static]
Key
  LEFT : int = 37
[static]
Key
  LEFT_SQUARE_BRACKET : int = 219
[static]
Key
  M : int = 77
[static]
Key
  N : int = 78
[static]
Key
  NUMPAD_0 : int = 96
[static]
Key
  NUMPAD_1 : int = 97
[static]
Key
  NUMPAD_2 : int = 98
[static]
Key
  NUMPAD_3 : int = 99
[static]
Key
  NUMPAD_4 : int = 100
[static]
Key
  NUMPAD_5 : int = 101
[static]
Key
  NUMPAD_6 : int = 102
[static]
Key
  NUMPAD_7 : int = 103
[static]
Key
  NUMPAD_8 : int = 104
[static]
Key
  NUMPAD_9 : int = 105
[static]
Key
  NUMPAD_ADD : int = 107
[static]
Key
  NUMPAD_DECIMAL : int = 110
[static]
Key
  NUMPAD_DIVIDE : int = 111
[static]
Key
  NUMPAD_ENTER : int = 108
[static]
Key
  NUMPAD_MULTIPLY : int = 106
[static]
Key
  NUMPAD_SUBTRACT : int = 109
[static]
Key
  O : int = 79
[static]
Key
  P : int = 80
[static]
Key
  PAGE_DOWN : int = 34
[static]
Key
  PAGE_UP : int = 33
[static]
Key
  Q : int = 81
[static]
Key
  R : int = 82
[static]
Key
  RIGHT : int = 39
[static]
Key
  RIGHT_SQUARE_BRACKET : int = 221
[static]
Key
  S : int = 83
[static]
Key
  SHIFT : int = 16
[static]
Key
  SPACE : int = 32
[static]
Key
  T : int = 84
[static]
Key
  TAB : int = 9
[static]
Key
  U : int = 85
[static]
Key
  UP : int = 38
[static]
Key
  V : int = 86
[static]
Key
  W : int = 87
[static]
Key
  X : int = 88
[static]
Key
  Y : int = 89
[static]
Key
  Z : int = 90
[static]
Key
Method Detail
name()method
public static function name(char:int):String

Returns the name of the key.

Parameters

char:int — The key to name.

Returns
String — The name.
Constant Detail
AConstant
public static const A:int = 65

ANYConstant 
public static const ANY:int = -1

BConstant 
public static const B:int = 66

BACKSPACEConstant 
public static const BACKSPACE:int = 8

CConstant 
public static const C:int = 67

CAPS_LOCKConstant 
public static const CAPS_LOCK:int = 20

COMMANDConstant 
public static const COMMAND:int = 15

CONTROLConstant 
public static const CONTROL:int = 17

DConstant 
public static const D:int = 68

DELETEConstant 
public static const DELETE:int = 46

DIGIT_0Constant 
public static const DIGIT_0:int = 48

DIGIT_1Constant 
public static const DIGIT_1:int = 49

DIGIT_2Constant 
public static const DIGIT_2:int = 50

DIGIT_3Constant 
public static const DIGIT_3:int = 51

DIGIT_4Constant 
public static const DIGIT_4:int = 52

DIGIT_5Constant 
public static const DIGIT_5:int = 53

DIGIT_6Constant 
public static const DIGIT_6:int = 54

DIGIT_7Constant 
public static const DIGIT_7:int = 55

DIGIT_8Constant 
public static const DIGIT_8:int = 56

DIGIT_9Constant 
public static const DIGIT_9:int = 57

DOWNConstant 
public static const DOWN:int = 40

EConstant 
public static const E:int = 69

ENDConstant 
public static const END:int = 35

ENTERConstant 
public static const ENTER:int = 13

ESCAPEConstant 
public static const ESCAPE:int = 27

FConstant 
public static const F:int = 70

F1Constant 
public static const F1:int = 112

F10Constant 
public static const F10:int = 121

F11Constant 
public static const F11:int = 122

F12Constant 
public static const F12:int = 123

F13Constant 
public static const F13:int = 124

F14Constant 
public static const F14:int = 125

F15Constant 
public static const F15:int = 126

F2Constant 
public static const F2:int = 113

F3Constant 
public static const F3:int = 114

F4Constant 
public static const F4:int = 115

F5Constant 
public static const F5:int = 116

F6Constant 
public static const F6:int = 117

F7Constant 
public static const F7:int = 118

F8Constant 
public static const F8:int = 119

F9Constant 
public static const F9:int = 120

GConstant 
public static const G:int = 71

HConstant 
public static const H:int = 72

HOMEConstant 
public static const HOME:int = 36

IConstant 
public static const I:int = 73

INSERTConstant 
public static const INSERT:int = 45

JConstant 
public static const J:int = 74

KConstant 
public static const K:int = 75

LConstant 
public static const L:int = 76

LEFTConstant 
public static const LEFT:int = 37

LEFT_SQUARE_BRACKETConstant 
public static const LEFT_SQUARE_BRACKET:int = 219

MConstant 
public static const M:int = 77

NConstant 
public static const N:int = 78

NUMPAD_0Constant 
public static const NUMPAD_0:int = 96

NUMPAD_1Constant 
public static const NUMPAD_1:int = 97

NUMPAD_2Constant 
public static const NUMPAD_2:int = 98

NUMPAD_3Constant 
public static const NUMPAD_3:int = 99

NUMPAD_4Constant 
public static const NUMPAD_4:int = 100

NUMPAD_5Constant 
public static const NUMPAD_5:int = 101

NUMPAD_6Constant 
public static const NUMPAD_6:int = 102

NUMPAD_7Constant 
public static const NUMPAD_7:int = 103

NUMPAD_8Constant 
public static const NUMPAD_8:int = 104

NUMPAD_9Constant 
public static const NUMPAD_9:int = 105

NUMPAD_ADDConstant 
public static const NUMPAD_ADD:int = 107

NUMPAD_DECIMALConstant 
public static const NUMPAD_DECIMAL:int = 110

NUMPAD_DIVIDEConstant 
public static const NUMPAD_DIVIDE:int = 111

NUMPAD_ENTERConstant 
public static const NUMPAD_ENTER:int = 108

NUMPAD_MULTIPLYConstant 
public static const NUMPAD_MULTIPLY:int = 106

NUMPAD_SUBTRACTConstant 
public static const NUMPAD_SUBTRACT:int = 109

OConstant 
public static const O:int = 79

PConstant 
public static const P:int = 80

PAGE_DOWNConstant 
public static const PAGE_DOWN:int = 34

PAGE_UPConstant 
public static const PAGE_UP:int = 33

QConstant 
public static const Q:int = 81

RConstant 
public static const R:int = 82

RIGHTConstant 
public static const RIGHT:int = 39

RIGHT_SQUARE_BRACKETConstant 
public static const RIGHT_SQUARE_BRACKET:int = 221

SConstant 
public static const S:int = 83

SHIFTConstant 
public static const SHIFT:int = 16

SPACEConstant 
public static const SPACE:int = 32

TConstant 
public static const T:int = 84

TABConstant 
public static const TAB:int = 9

UConstant 
public static const U:int = 85

UPConstant 
public static const UP:int = 38

VConstant 
public static const V:int = 86

WConstant 
public static const W:int = 87

XConstant 
public static const X:int = 88

YConstant 
public static const Y:int = 89

ZConstant 
public static const Z:int = 90