Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
109 lines (107 sloc) 2.92 KB
require 'yinum'
module Keyboard
KEYS = Enum.new(:KEYS,
left_ctrl: 7,
left_shift: 8,
caps_lock: 9,
tab: 10,
tilde: 11,
escape: 12,
fn: 13,
backslash: 14,
a: 15,
q: 16,
d1: 17,
f1: 18,
super: 19,
z: 20,
s: 21,
w: 22,
d2: 23,
f2: 24,
left_alt: 25,
x: 26,
d: 27,
e: 28,
d3: 29,
f3: 30,
c: 32,
f: 33,
r: 34,
d4: 35,
f4: 36,
v: 38,
g: 39,
t: 40,
d5: 41,
f5: 42,
space: 43,
b: 44,
h: 45,
y: 46,
d6: 47,
f6: 48,
n: 50,
j: 51,
u: 52,
d7: 53,
f7: 54,
m: 56,
k: 57,
i: 58,
d8: 59,
f8: 60,
right_alt: 61,
comma: 62,
l: 63,
o: 64,
d9: 65,
f9: 66,
app: 67,
full_stop: 68,
semi: 69,
p: 70,
d0: 71,
f10: 72,
right_ctrl: 73,
slash: 74,
apostrophe: 75,
left_square_bracket: 76,
hyphen: 77,
f11: 78,
right_square_bracket: 82,
equals: 83,
f12: 84,
left: 85,
right_shift: 86,
sharp: 87,
pause: 90,
down: 91,
up: 92,
enter: 93,
backspace: 95,
delete: 96,
right: 97,
num_1: 98,
num_4: 99,
num_7: 100,
num_lock: 101,
num_home: 102,
num_0: 103,
num_2: 104,
num_5: 105,
num_8: 106,
num_slash: 107,
num_page_up: 108,
num_del: 109,
num_3: 110,
num_6: 111,
num_9: 112,
num_asterisk: 113,
num_page_down: 114,
num_enter: 115,
num_plus: 117,
num_minus: 119,
num_end: 120
)
end