enum Game::Key

Defined in:

game/keys.cr

Enum Members

Space = 32
Escape = 256
Enter = 257
Backspace = 259
Right = 262
Left = 263
Down = 264
Up = 265
F1 = 290
F2 = 291
F3 = 292
F4 = 293
F5 = 294
F6 = 295
F7 = 296
F8 = 297
F9 = 298
F10 = 299
F11 = 300
F12 = 301
LShift = 340
LControl = 341
LAlt = 342
RShift = 344
RControl = 345
RAlt = 346
Tab = 258
CapsLock = 345
LMeta = 343
RMeta = 347
Backtick = 96
Minus = 45
Equals = 61
LBracket = 91
RBracket = 93
Backslash = 92
SemiColon = 59
SingleQuote = 39
Comma = 44
Period = 46
Slash = 47
One = 49
Two = 50
Three = 51
Four = 52
Five = 53
Six = 54
Seven = 55
Eight = 56
Nine = 57
Zero = 48
A = 65
B = 66
C = 67
D = 68
E = 69
F = 70
G = 71
H = 72
I = 73
J = 74
K = 75
L = 76
M = 77
N = 78
O = 79
P = 80
Q = 81
R = 82
S = 83
T = 84
U = 85
V = 86
W = 87
X = 88
Y = 89
Z = 90

Instance Method Summary

Instance Method Detail

def a? #

[View source]
def b? #

[View source]
def backslash? #

[View source]
def backspace? #

[View source]
def backtick? #

[View source]
def c? #

[View source]
def caps_lock? #

[View source]
def comma? #

[View source]
def d? #

[View source]
def down? #

[View source]
def e? #

[View source]
def eight? #

[View source]
def enter? #

[View source]
def equals? #

[View source]
def escape? #

[View source]
def exit_key #

[View source]
def f10? #

[View source]
def f11? #

[View source]
def f12? #

[View source]
def f1? #

[View source]
def f2? #

[View source]
def f3? #

[View source]
def f4? #

[View source]
def f5? #

[View source]
def f6? #

[View source]
def f7? #

[View source]
def f8? #

[View source]
def f9? #

[View source]
def f? #

[View source]
def five? #

[View source]
def four? #

[View source]
def g? #

[View source]
def h? #

[View source]
def i? #

[View source]
def j? #

[View source]
def k? #

[View source]
def l? #

[View source]
def l_alt? #

[View source]
def l_bracket? #

[View source]
def l_control? #

[View source]
def l_meta? #

[View source]
def l_shift? #

[View source]
def left? #

[View source]
def m? #

[View source]
def minus? #

[View source]
def n? #

[View source]
def nine? #

[View source]
def o? #

[View source]
def one? #

[View source]
def p? #

[View source]
def period? #

[View source]
def pressed? #

[View source]
def q? #

[View source]
def r? #

[View source]
def r_alt? #

[View source]
def r_bracket? #

[View source]
def r_control? #

[View source]
def r_meta? #

[View source]
def r_shift? #

[View source]
def released? #

[View source]
def right? #

[View source]
def s? #

[View source]
def semi_colon? #

[View source]
def seven? #

[View source]
def single_quote? #

[View source]
def six? #

[View source]
def slash? #

[View source]
def space? #

[View source]
def t? #

[View source]
def tab? #

[View source]
def three? #

[View source]
def two? #

[View source]
def u? #

[View source]
def up? #

[View source]
def v? #

[View source]
def w? #

[View source]
def x? #

[View source]
def y? #

[View source]
def z? #

[View source]
def zero? #

[View source]