enum

SF::Keyboard::Key

Inherits Enum / Comparable / Value / Object

Key codes

Constants

Unknown = -1

Unhandled key

A = 0

The A key

B = 1

The B key

C = 2

The C key

D = 3

The D key

E = 4

The E key

F = 5

The F key

G = 6

The G key

H = 7

The H key

I = 8

The I key

J = 9

The J key

K = 10

The K key

L = 11

The L key

M = 12

The M key

N = 13

The N key

O = 14

The O key

P = 15

The P key

Q = 16

The Q key

R = 17

The R key

S = 18

The S key

T = 19

The T key

U = 20

The U key

V = 21

The V key

W = 22

The W key

X = 23

The X key

Y = 24

The Y key

Z = 25

The Z key

Num0 = 26

The 0 key

Num1 = 27

The 1 key

Num2 = 28

The 2 key

Num3 = 29

The 3 key

Num4 = 30

The 4 key

Num5 = 31

The 5 key

Num6 = 32

The 6 key

Num7 = 33

The 7 key

Num8 = 34

The 8 key

Num9 = 35

The 9 key

Escape = 36

The Escape key

LControl = 37

The left Control key

LShift = 38

The left Shift key

LAlt = 39

The left Alt key

LSystem = 40

The left OS specific key: window (Windows and Linux), apple (MacOS X), ...

RControl = 41

The right Control key

RShift = 42

The right Shift key

RAlt = 43

The right Alt key

RSystem = 44

The right OS specific key: window (Windows and Linux), apple (MacOS X), ...

Menu = 45

The Menu key

LBracket = 46

The [ key

RBracket = 47

The ] key

Semicolon = 48

The ; key

Comma = 49

The , key

Period = 50

The . key

Quote = 51

The ' key

Slash = 52

The / key

Backslash = 53

The \ key

Tilde = 54

The ~ key

Equal = 55

The = key

Hyphen = 56

The - key (hyphen)

Space = 57

The Space key

Enter = 58

The Enter/Return keys

Backspace = 59

The Backspace key

Tab = 60

The Tabulation key

PageUp = 61

The Page up key

PageDown = 62

The Page down key

End = 63

The End key

Home = 64

The Home key

Insert = 65

The Insert key

Delete = 66

The Delete key

Add = 67

The + key

Subtract = 68

The - key (minus, usually from numpad)

Multiply = 69

The * key

Divide = 70

The / key

Left = 71

Left arrow

Right = 72

Right arrow

Up = 73

Up arrow

Down = 74

Down arrow

Numpad0 = 75

The numpad 0 key

Numpad1 = 76

The numpad 1 key

Numpad2 = 77

The numpad 2 key

Numpad3 = 78

The numpad 3 key

Numpad4 = 79

The numpad 4 key

Numpad5 = 80

The numpad 5 key

Numpad6 = 81

The numpad 6 key

Numpad7 = 82

The numpad 7 key

Numpad8 = 83

The numpad 8 key

Numpad9 = 84

The numpad 9 key

F1 = 85

The F1 key

F2 = 86

The F2 key

F3 = 87

The F3 key

F4 = 88

The F4 key

F5 = 89

The F5 key

F6 = 90

The F6 key

F7 = 91

The F7 key

F8 = 92

The F8 key

F9 = 93

The F9 key

F10 = 94

The F10 key

F11 = 95

The F11 key

F12 = 96

The F12 key

F13 = 97

The F13 key

F14 = 98

The F14 key

F15 = 99

The F15 key

Pause = 100

The Pause key

KeyCount = 101

Keep last -- the total number of keyboard keys

Dash = 56

DEPRECATED: Use Hyphen instead

BackSpace = 59

DEPRECATED: Use Backspace instead

BackSlash = 53

DEPRECATED: Use Backslash instead

SemiColon = 48

DEPRECATED: Use Semicolon instead

Return = 58

DEPRECATED: Use Enter instead

Class methods

parse?(string) : self | Nil

Same as Enum#parse? but with a workaround to skip duplicate names

Source

Instance methods

a?

Returns true if this enum value equals A

Source
add?

Returns true if this enum value equals Add

Source
b?

Returns true if this enum value equals B

Source
back_slash?

Returns true if this enum value equals BackSlash

Source
back_space?

Returns true if this enum value equals BackSpace

Source
backslash?

Returns true if this enum value equals Backslash

Source
backspace?

Returns true if this enum value equals Backspace

Source
c?

Returns true if this enum value equals C

Source
comma?

Returns true if this enum value equals Comma

Source
d?

Returns true if this enum value equals D

Source
dash?

Returns true if this enum value equals Dash

Source
delete?

Returns true if this enum value equals Delete

Source
divide?

Returns true if this enum value equals Divide

Source
down?

Returns true if this enum value equals Down

Source
e?

Returns true if this enum value equals E

Source
end?

Returns true if this enum value equals End

Source
enter?

Returns true if this enum value equals Enter

Source
equal?

Returns true if this enum value equals Equal

Source
escape?

Returns true if this enum value equals Escape

Source
f10?

Returns true if this enum value equals F10

Source
f11?

Returns true if this enum value equals F11

Source
f12?

Returns true if this enum value equals F12

Source
f13?

Returns true if this enum value equals F13

Source
f14?

Returns true if this enum value equals F14

Source
f15?

Returns true if this enum value equals F15

Source
f1?

Returns true if this enum value equals F1

Source
f2?

Returns true if this enum value equals F2

Source
f3?

Returns true if this enum value equals F3

Source
f4?

Returns true if this enum value equals F4

Source
f5?

Returns true if this enum value equals F5

Source
f6?

Returns true if this enum value equals F6

Source
f7?

Returns true if this enum value equals F7

Source
f8?

Returns true if this enum value equals F8

Source
f9?

Returns true if this enum value equals F9

Source
f?

Returns true if this enum value equals F

Source
g?

Returns true if this enum value equals G

Source
h?

Returns true if this enum value equals H

Source
home?

Returns true if this enum value equals Home

Source
hyphen?

Returns true if this enum value equals Hyphen

Source
i?

Returns true if this enum value equals I

Source
insert?

Returns true if this enum value equals Insert

Source
j?

Returns true if this enum value equals J

Source
k?

Returns true if this enum value equals K

Source
key_count?

Returns true if this enum value equals KeyCount

Source
l?

Returns true if this enum value equals L

Source
l_alt?

Returns true if this enum value equals LAlt

Source
l_bracket?

Returns true if this enum value equals LBracket

Source
l_control?

Returns true if this enum value equals LControl

Source
l_shift?

Returns true if this enum value equals LShift

Source
l_system?

Returns true if this enum value equals LSystem

Source
left?

Returns true if this enum value equals Left

Source
m?

Returns true if this enum value equals M

Source
multiply?

Returns true if this enum value equals Multiply

Source
n?

Returns true if this enum value equals N

Source
num0?

Returns true if this enum value equals Num0

Source
num1?

Returns true if this enum value equals Num1

Source
num2?

Returns true if this enum value equals Num2

Source
num3?

Returns true if this enum value equals Num3

Source
num4?

Returns true if this enum value equals Num4

Source
num5?

Returns true if this enum value equals Num5

Source
num6?

Returns true if this enum value equals Num6

Source
num7?

Returns true if this enum value equals Num7

Source
num8?

Returns true if this enum value equals Num8

Source
num9?

Returns true if this enum value equals Num9

Source
numpad0?

Returns true if this enum value equals Numpad0

Source
numpad1?

Returns true if this enum value equals Numpad1

Source
numpad2?

Returns true if this enum value equals Numpad2

Source
numpad3?

Returns true if this enum value equals Numpad3

Source
numpad4?

Returns true if this enum value equals Numpad4

Source
numpad5?

Returns true if this enum value equals Numpad5

Source
numpad6?

Returns true if this enum value equals Numpad6

Source
numpad7?

Returns true if this enum value equals Numpad7

Source
numpad8?

Returns true if this enum value equals Numpad8

Source
numpad9?

Returns true if this enum value equals Numpad9

Source
o?

Returns true if this enum value equals O

Source
p?

Returns true if this enum value equals P

Source
page_down?

Returns true if this enum value equals PageDown

Source
page_up?

Returns true if this enum value equals PageUp

Source
pause?

Returns true if this enum value equals Pause

Source
period?

Returns true if this enum value equals Period

Source
q?

Returns true if this enum value equals Q

Source
quote?

Returns true if this enum value equals Quote

Source
r?

Returns true if this enum value equals R

Source
r_alt?

Returns true if this enum value equals RAlt

Source
r_bracket?

Returns true if this enum value equals RBracket

Source
r_control?

Returns true if this enum value equals RControl

Source
r_shift?

Returns true if this enum value equals RShift

Source
r_system?

Returns true if this enum value equals RSystem

Source
return?

Returns true if this enum value equals Return

Source
right?

Returns true if this enum value equals Right

Source
s?

Returns true if this enum value equals S

Source
semi_colon?

Returns true if this enum value equals SemiColon

Source
semicolon?

Returns true if this enum value equals Semicolon

Source
slash?

Returns true if this enum value equals Slash

Source
space?

Returns true if this enum value equals Space

Source
subtract?

Returns true if this enum value equals Subtract

Source
t?

Returns true if this enum value equals T

Source
tab?

Returns true if this enum value equals Tab

Source
tilde?

Returns true if this enum value equals Tilde

Source
u?

Returns true if this enum value equals U

Source
unknown?

Returns true if this enum value equals Unknown

Source
up?

Returns true if this enum value equals Up

Source
v?

Returns true if this enum value equals V

Source
w?

Returns true if this enum value equals W

Source
x?

Returns true if this enum value equals X

Source
y?

Returns true if this enum value equals Y

Source
z?

Returns true if this enum value equals Z

Source