#[repr(i32)]pub enum Keycode {
Show 250 variants
ScancodeMask = 1_073_741_824,
Unknown = 0,
Return = 13,
Escape = 27,
Backspace = 8,
Tab = 9,
Space = 32,
Exclaim = 33,
DblApostrophe = 34,
Hash = 35,
Dollar = 36,
Percent = 37,
Ampersand = 38,
Apostrophe = 39,
LeftParen = 40,
RightParen = 41,
Asterisk = 42,
Plus = 43,
Comma = 44,
Minus = 45,
Period = 46,
Slash = 47,
_0 = 48,
_1 = 49,
_2 = 50,
_3 = 51,
_4 = 52,
_5 = 53,
_6 = 54,
_7 = 55,
_8 = 56,
_9 = 57,
Colon = 58,
Semicolon = 59,
Less = 60,
Equals = 61,
Greater = 62,
Question = 63,
At = 64,
LeftBracket = 91,
Backslash = 92,
RightBracket = 93,
Caret = 94,
Underscore = 95,
Grave = 96,
A = 97,
B = 98,
C = 99,
D = 100,
E = 101,
F = 102,
G = 103,
H = 104,
I = 105,
J = 106,
K = 107,
L = 108,
M = 109,
N = 110,
O = 111,
P = 112,
Q = 113,
R = 114,
S = 115,
T = 116,
U = 117,
V = 118,
W = 119,
X = 120,
Y = 121,
Z = 122,
LeftBrace = 123,
Pipe = 124,
RightBrace = 125,
Tilde = 126,
Delete = 127,
PlusMinus = 177,
CapsLock = 1_073_741_881,
F1 = 1_073_741_882,
F2 = 1_073_741_883,
F3 = 1_073_741_884,
F4 = 1_073_741_885,
F5 = 1_073_741_886,
F6 = 1_073_741_887,
F7 = 1_073_741_888,
F8 = 1_073_741_889,
F9 = 1_073_741_890,
F10 = 1_073_741_891,
F11 = 1_073_741_892,
F12 = 1_073_741_893,
PrintScreen = 1_073_741_894,
ScrollLock = 1_073_741_895,
Pause = 1_073_741_896,
Insert = 1_073_741_897,
Home = 1_073_741_898,
PageUp = 1_073_741_899,
End = 1_073_741_901,
PageDown = 1_073_741_902,
Right = 1_073_741_903,
Left = 1_073_741_904,
Down = 1_073_741_905,
Up = 1_073_741_906,
NumLockClear = 1_073_741_907,
KpDivide = 1_073_741_908,
KpMultiply = 1_073_741_909,
KpMinus = 1_073_741_910,
KpPlus = 1_073_741_911,
KpEnter = 1_073_741_912,
Kp1 = 1_073_741_913,
Kp2 = 1_073_741_914,
Kp3 = 1_073_741_915,
Kp4 = 1_073_741_916,
Kp5 = 1_073_741_917,
Kp6 = 1_073_741_918,
Kp7 = 1_073_741_919,
Kp8 = 1_073_741_920,
Kp9 = 1_073_741_921,
Kp0 = 1_073_741_922,
KpPeriod = 1_073_741_923,
Application = 1_073_741_925,
Power = 1_073_741_926,
KpEquals = 1_073_741_927,
F13 = 1_073_741_928,
F14 = 1_073_741_929,
F15 = 1_073_741_930,
F16 = 1_073_741_931,
F17 = 1_073_741_932,
F18 = 1_073_741_933,
F19 = 1_073_741_934,
F20 = 1_073_741_935,
F21 = 1_073_741_936,
F22 = 1_073_741_937,
F23 = 1_073_741_938,
F24 = 1_073_741_939,
Execute = 1_073_741_940,
Help = 1_073_741_941,
Menu = 1_073_741_942,
Select = 1_073_741_943,
Stop = 1_073_741_944,
Again = 1_073_741_945,
Undo = 1_073_741_946,
Cut = 1_073_741_947,
Copy = 1_073_741_948,
Paste = 1_073_741_949,
Find = 1_073_741_950,
Mute = 1_073_741_951,
VolumeUp = 1_073_741_952,
VolumeDown = 1_073_741_953,
KpComma = 1_073_741_957,
KpEqualsAs400 = 1_073_741_958,
AltErase = 1_073_741_977,
SysReq = 1_073_741_978,
Cancel = 1_073_741_979,
Clear = 1_073_741_980,
Prior = 1_073_741_981,
Return2 = 1_073_741_982,
Separator = 1_073_741_983,
Out = 1_073_741_984,
Oper = 1_073_741_985,
ClearAgain = 1_073_741_986,
CrSel = 1_073_741_987,
ExSel = 1_073_741_988,
Kp00 = 1_073_742_000,
Kp000 = 1_073_742_001,
ThousandsSeparator = 1_073_742_002,
DecimalSeparator = 1_073_742_003,
CurrencyUnit = 1_073_742_004,
CurrencySubunit = 1_073_742_005,
KpLeftParen = 1_073_742_006,
KpRightParen = 1_073_742_007,
KpLeftBrace = 1_073_742_008,
KpRightBrace = 1_073_742_009,
KpTab = 1_073_742_010,
KpBackspace = 1_073_742_011,
KpA = 1_073_742_012,
KpB = 1_073_742_013,
KpC = 1_073_742_014,
KpD = 1_073_742_015,
KpE = 1_073_742_016,
KpF = 1_073_742_017,
KpXor = 1_073_742_018,
KpPower = 1_073_742_019,
KpPercent = 1_073_742_020,
KpLess = 1_073_742_021,
KpGreater = 1_073_742_022,
KpAmpersand = 1_073_742_023,
KpDblAmpersand = 1_073_742_024,
KpVerticalBar = 1_073_742_025,
KpDblVerticalBar = 1_073_742_026,
KpColon = 1_073_742_027,
KpHash = 1_073_742_028,
KpSpace = 1_073_742_029,
KpAt = 1_073_742_030,
KpExclam = 1_073_742_031,
KpMemStore = 1_073_742_032,
KpMemRecall = 1_073_742_033,
KpMemClear = 1_073_742_034,
KpMemAdd = 1_073_742_035,
KpMemSubtract = 1_073_742_036,
KpMemMultiply = 1_073_742_037,
KpMemDivide = 1_073_742_038,
KpPlusMinus = 1_073_742_039,
KpClear = 1_073_742_040,
KpClearEntry = 1_073_742_041,
KpBinary = 1_073_742_042,
KpOctal = 1_073_742_043,
KpDecimal = 1_073_742_044,
KpHexadecimal = 1_073_742_045,
LCtrl = 1_073_742_048,
LShift = 1_073_742_049,
LAlt = 1_073_742_050,
LGui = 1_073_742_051,
RCtrl = 1_073_742_052,
RShift = 1_073_742_053,
RAlt = 1_073_742_054,
RGui = 1_073_742_055,
Mode = 1_073_742_081,
Sleep = 1_073_742_082,
Wake = 1_073_742_083,
ChannelIncrement = 1_073_742_084,
ChannelDecrement = 1_073_742_085,
MediaPlay = 1_073_742_086,
MediaPause = 1_073_742_087,
MediaRecord = 1_073_742_088,
MediaFastForward = 1_073_742_089,
MediaRewind = 1_073_742_090,
MediaNextTrack = 1_073_742_091,
MediaPreviousTrack = 1_073_742_092,
MediaStop = 1_073_742_093,
MediaEject = 1_073_742_094,
MediaPlayPause = 1_073_742_095,
MediaSelect = 1_073_742_096,
AcNew = 1_073_742_097,
AcOpen = 1_073_742_098,
AcClose = 1_073_742_099,
AcExit = 1_073_742_100,
AcSave = 1_073_742_101,
AcPrint = 1_073_742_102,
AcProperties = 1_073_742_103,
AcSearch = 1_073_742_104,
AcHome = 1_073_742_105,
AcBack = 1_073_742_106,
AcForward = 1_073_742_107,
AcStop = 1_073_742_108,
AcRefresh = 1_073_742_109,
AcBookmarks = 1_073_742_110,
SoftLeft = 1_073_742_111,
SoftRight = 1_073_742_112,
Call = 1_073_742_113,
EndCall = 1_073_742_114,
}
Variants§
ScancodeMask = 1_073_741_824
Unknown = 0
Return = 13
Escape = 27
Backspace = 8
Tab = 9
Space = 32
Exclaim = 33
DblApostrophe = 34
Hash = 35
Dollar = 36
Percent = 37
Ampersand = 38
Apostrophe = 39
LeftParen = 40
RightParen = 41
Asterisk = 42
Plus = 43
Comma = 44
Minus = 45
Period = 46
Slash = 47
_0 = 48
_1 = 49
_2 = 50
_3 = 51
_4 = 52
_5 = 53
_6 = 54
_7 = 55
_8 = 56
_9 = 57
Colon = 58
Semicolon = 59
Less = 60
Equals = 61
Greater = 62
Question = 63
At = 64
LeftBracket = 91
Backslash = 92
RightBracket = 93
Caret = 94
Underscore = 95
Grave = 96
A = 97
B = 98
C = 99
D = 100
E = 101
F = 102
G = 103
H = 104
I = 105
J = 106
K = 107
L = 108
M = 109
N = 110
O = 111
P = 112
Q = 113
R = 114
S = 115
T = 116
U = 117
V = 118
W = 119
X = 120
Y = 121
Z = 122
LeftBrace = 123
Pipe = 124
RightBrace = 125
Tilde = 126
Delete = 127
PlusMinus = 177
CapsLock = 1_073_741_881
F1 = 1_073_741_882
F2 = 1_073_741_883
F3 = 1_073_741_884
F4 = 1_073_741_885
F5 = 1_073_741_886
F6 = 1_073_741_887
F7 = 1_073_741_888
F8 = 1_073_741_889
F9 = 1_073_741_890
F10 = 1_073_741_891
F11 = 1_073_741_892
F12 = 1_073_741_893
PrintScreen = 1_073_741_894
ScrollLock = 1_073_741_895
Pause = 1_073_741_896
Insert = 1_073_741_897
Home = 1_073_741_898
PageUp = 1_073_741_899
End = 1_073_741_901
PageDown = 1_073_741_902
Right = 1_073_741_903
Left = 1_073_741_904
Down = 1_073_741_905
Up = 1_073_741_906
NumLockClear = 1_073_741_907
KpDivide = 1_073_741_908
KpMultiply = 1_073_741_909
KpMinus = 1_073_741_910
KpPlus = 1_073_741_911
KpEnter = 1_073_741_912
Kp1 = 1_073_741_913
Kp2 = 1_073_741_914
Kp3 = 1_073_741_915
Kp4 = 1_073_741_916
Kp5 = 1_073_741_917
Kp6 = 1_073_741_918
Kp7 = 1_073_741_919
Kp8 = 1_073_741_920
Kp9 = 1_073_741_921
Kp0 = 1_073_741_922
KpPeriod = 1_073_741_923
Application = 1_073_741_925
Power = 1_073_741_926
KpEquals = 1_073_741_927
F13 = 1_073_741_928
F14 = 1_073_741_929
F15 = 1_073_741_930
F16 = 1_073_741_931
F17 = 1_073_741_932
F18 = 1_073_741_933
F19 = 1_073_741_934
F20 = 1_073_741_935
F21 = 1_073_741_936
F22 = 1_073_741_937
F23 = 1_073_741_938
F24 = 1_073_741_939
Execute = 1_073_741_940
Help = 1_073_741_941
Menu = 1_073_741_942
Select = 1_073_741_943
Stop = 1_073_741_944
Again = 1_073_741_945
Undo = 1_073_741_946
Cut = 1_073_741_947
Copy = 1_073_741_948
Paste = 1_073_741_949
Find = 1_073_741_950
Mute = 1_073_741_951
VolumeUp = 1_073_741_952
VolumeDown = 1_073_741_953
KpComma = 1_073_741_957
KpEqualsAs400 = 1_073_741_958
AltErase = 1_073_741_977
SysReq = 1_073_741_978
Cancel = 1_073_741_979
Clear = 1_073_741_980
Prior = 1_073_741_981
Return2 = 1_073_741_982
Separator = 1_073_741_983
Out = 1_073_741_984
Oper = 1_073_741_985
ClearAgain = 1_073_741_986
CrSel = 1_073_741_987
ExSel = 1_073_741_988
Kp00 = 1_073_742_000
Kp000 = 1_073_742_001
ThousandsSeparator = 1_073_742_002
DecimalSeparator = 1_073_742_003
CurrencyUnit = 1_073_742_004
CurrencySubunit = 1_073_742_005
KpLeftParen = 1_073_742_006
KpRightParen = 1_073_742_007
KpLeftBrace = 1_073_742_008
KpRightBrace = 1_073_742_009
KpTab = 1_073_742_010
KpBackspace = 1_073_742_011
KpA = 1_073_742_012
KpB = 1_073_742_013
KpC = 1_073_742_014
KpD = 1_073_742_015
KpE = 1_073_742_016
KpF = 1_073_742_017
KpXor = 1_073_742_018
KpPower = 1_073_742_019
KpPercent = 1_073_742_020
KpLess = 1_073_742_021
KpGreater = 1_073_742_022
KpAmpersand = 1_073_742_023
KpDblAmpersand = 1_073_742_024
KpVerticalBar = 1_073_742_025
KpDblVerticalBar = 1_073_742_026
KpColon = 1_073_742_027
KpHash = 1_073_742_028
KpSpace = 1_073_742_029
KpAt = 1_073_742_030
KpExclam = 1_073_742_031
KpMemStore = 1_073_742_032
KpMemRecall = 1_073_742_033
KpMemClear = 1_073_742_034
KpMemAdd = 1_073_742_035
KpMemSubtract = 1_073_742_036
KpMemMultiply = 1_073_742_037
KpMemDivide = 1_073_742_038
KpPlusMinus = 1_073_742_039
KpClear = 1_073_742_040
KpClearEntry = 1_073_742_041
KpBinary = 1_073_742_042
KpOctal = 1_073_742_043
KpDecimal = 1_073_742_044
KpHexadecimal = 1_073_742_045
LCtrl = 1_073_742_048
LShift = 1_073_742_049
LAlt = 1_073_742_050
LGui = 1_073_742_051
RCtrl = 1_073_742_052
RShift = 1_073_742_053
RAlt = 1_073_742_054
RGui = 1_073_742_055
Mode = 1_073_742_081
Sleep = 1_073_742_082
Wake = 1_073_742_083
ChannelIncrement = 1_073_742_084
ChannelDecrement = 1_073_742_085
MediaPlay = 1_073_742_086
MediaPause = 1_073_742_087
MediaRecord = 1_073_742_088
MediaFastForward = 1_073_742_089
MediaRewind = 1_073_742_090
MediaNextTrack = 1_073_742_091
MediaPreviousTrack = 1_073_742_092
MediaStop = 1_073_742_093
MediaEject = 1_073_742_094
MediaPlayPause = 1_073_742_095
MediaSelect = 1_073_742_096
AcNew = 1_073_742_097
AcOpen = 1_073_742_098
AcClose = 1_073_742_099
AcExit = 1_073_742_100
AcSave = 1_073_742_101
AcPrint = 1_073_742_102
AcProperties = 1_073_742_103
AcSearch = 1_073_742_104
AcHome = 1_073_742_105
AcBack = 1_073_742_106
AcForward = 1_073_742_107
AcStop = 1_073_742_108
AcRefresh = 1_073_742_109
AcBookmarks = 1_073_742_110
SoftLeft = 1_073_742_111
SoftRight = 1_073_742_112
Call = 1_073_742_113
EndCall = 1_073_742_114
Implementations§
Trait Implementations§
Source§impl From<Keycode> for SDL_Keycode
impl From<Keycode> for SDL_Keycode
Source§fn from(k: Keycode) -> SDL_Keycode
fn from(k: Keycode) -> SDL_Keycode
Converts to this type from the input type.
impl Copy for Keycode
impl Eq for Keycode
impl StructuralPartialEq for Keycode
Auto Trait Implementations§
impl Freeze for Keycode
impl RefUnwindSafe for Keycode
impl Send for Keycode
impl Sync for Keycode
impl Unpin for Keycode
impl UnwindSafe for Keycode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more