Enum sdl2_sys::SDL_KeyCode
source · #[repr(u32)]pub enum SDL_KeyCode {
Show 244 variants
SDLK_UNKNOWN = 0,
SDLK_RETURN = 13,
SDLK_ESCAPE = 27,
SDLK_BACKSPACE = 8,
SDLK_TAB = 9,
SDLK_SPACE = 32,
SDLK_EXCLAIM = 33,
SDLK_QUOTEDBL = 34,
SDLK_HASH = 35,
SDLK_PERCENT = 37,
SDLK_DOLLAR = 36,
SDLK_AMPERSAND = 38,
SDLK_QUOTE = 39,
SDLK_LEFTPAREN = 40,
SDLK_RIGHTPAREN = 41,
SDLK_ASTERISK = 42,
SDLK_PLUS = 43,
SDLK_COMMA = 44,
SDLK_MINUS = 45,
SDLK_PERIOD = 46,
SDLK_SLASH = 47,
SDLK_0 = 48,
SDLK_1 = 49,
SDLK_2 = 50,
SDLK_3 = 51,
SDLK_4 = 52,
SDLK_5 = 53,
SDLK_6 = 54,
SDLK_7 = 55,
SDLK_8 = 56,
SDLK_9 = 57,
SDLK_COLON = 58,
SDLK_SEMICOLON = 59,
SDLK_LESS = 60,
SDLK_EQUALS = 61,
SDLK_GREATER = 62,
SDLK_QUESTION = 63,
SDLK_AT = 64,
SDLK_LEFTBRACKET = 91,
SDLK_BACKSLASH = 92,
SDLK_RIGHTBRACKET = 93,
SDLK_CARET = 94,
SDLK_UNDERSCORE = 95,
SDLK_BACKQUOTE = 96,
SDLK_a = 97,
SDLK_b = 98,
SDLK_c = 99,
SDLK_d = 100,
SDLK_e = 101,
SDLK_f = 102,
SDLK_g = 103,
SDLK_h = 104,
SDLK_i = 105,
SDLK_j = 106,
SDLK_k = 107,
SDLK_l = 108,
SDLK_m = 109,
SDLK_n = 110,
SDLK_o = 111,
SDLK_p = 112,
SDLK_q = 113,
SDLK_r = 114,
SDLK_s = 115,
SDLK_t = 116,
SDLK_u = 117,
SDLK_v = 118,
SDLK_w = 119,
SDLK_x = 120,
SDLK_y = 121,
SDLK_z = 122,
SDLK_CAPSLOCK = 1_073_741_881,
SDLK_F1 = 1_073_741_882,
SDLK_F2 = 1_073_741_883,
SDLK_F3 = 1_073_741_884,
SDLK_F4 = 1_073_741_885,
SDLK_F5 = 1_073_741_886,
SDLK_F6 = 1_073_741_887,
SDLK_F7 = 1_073_741_888,
SDLK_F8 = 1_073_741_889,
SDLK_F9 = 1_073_741_890,
SDLK_F10 = 1_073_741_891,
SDLK_F11 = 1_073_741_892,
SDLK_F12 = 1_073_741_893,
SDLK_PRINTSCREEN = 1_073_741_894,
SDLK_SCROLLLOCK = 1_073_741_895,
SDLK_PAUSE = 1_073_741_896,
SDLK_INSERT = 1_073_741_897,
SDLK_HOME = 1_073_741_898,
SDLK_PAGEUP = 1_073_741_899,
SDLK_DELETE = 127,
SDLK_END = 1_073_741_901,
SDLK_PAGEDOWN = 1_073_741_902,
SDLK_RIGHT = 1_073_741_903,
SDLK_LEFT = 1_073_741_904,
SDLK_DOWN = 1_073_741_905,
SDLK_UP = 1_073_741_906,
SDLK_NUMLOCKCLEAR = 1_073_741_907,
SDLK_KP_DIVIDE = 1_073_741_908,
SDLK_KP_MULTIPLY = 1_073_741_909,
SDLK_KP_MINUS = 1_073_741_910,
SDLK_KP_PLUS = 1_073_741_911,
SDLK_KP_ENTER = 1_073_741_912,
SDLK_KP_1 = 1_073_741_913,
SDLK_KP_2 = 1_073_741_914,
SDLK_KP_3 = 1_073_741_915,
SDLK_KP_4 = 1_073_741_916,
SDLK_KP_5 = 1_073_741_917,
SDLK_KP_6 = 1_073_741_918,
SDLK_KP_7 = 1_073_741_919,
SDLK_KP_8 = 1_073_741_920,
SDLK_KP_9 = 1_073_741_921,
SDLK_KP_0 = 1_073_741_922,
SDLK_KP_PERIOD = 1_073_741_923,
SDLK_APPLICATION = 1_073_741_925,
SDLK_POWER = 1_073_741_926,
SDLK_KP_EQUALS = 1_073_741_927,
SDLK_F13 = 1_073_741_928,
SDLK_F14 = 1_073_741_929,
SDLK_F15 = 1_073_741_930,
SDLK_F16 = 1_073_741_931,
SDLK_F17 = 1_073_741_932,
SDLK_F18 = 1_073_741_933,
SDLK_F19 = 1_073_741_934,
SDLK_F20 = 1_073_741_935,
SDLK_F21 = 1_073_741_936,
SDLK_F22 = 1_073_741_937,
SDLK_F23 = 1_073_741_938,
SDLK_F24 = 1_073_741_939,
SDLK_EXECUTE = 1_073_741_940,
SDLK_HELP = 1_073_741_941,
SDLK_MENU = 1_073_741_942,
SDLK_SELECT = 1_073_741_943,
SDLK_STOP = 1_073_741_944,
SDLK_AGAIN = 1_073_741_945,
SDLK_UNDO = 1_073_741_946,
SDLK_CUT = 1_073_741_947,
SDLK_COPY = 1_073_741_948,
SDLK_PASTE = 1_073_741_949,
SDLK_FIND = 1_073_741_950,
SDLK_MUTE = 1_073_741_951,
SDLK_VOLUMEUP = 1_073_741_952,
SDLK_VOLUMEDOWN = 1_073_741_953,
SDLK_KP_COMMA = 1_073_741_957,
SDLK_KP_EQUALSAS400 = 1_073_741_958,
SDLK_ALTERASE = 1_073_741_977,
SDLK_SYSREQ = 1_073_741_978,
SDLK_CANCEL = 1_073_741_979,
SDLK_CLEAR = 1_073_741_980,
SDLK_PRIOR = 1_073_741_981,
SDLK_RETURN2 = 1_073_741_982,
SDLK_SEPARATOR = 1_073_741_983,
SDLK_OUT = 1_073_741_984,
SDLK_OPER = 1_073_741_985,
SDLK_CLEARAGAIN = 1_073_741_986,
SDLK_CRSEL = 1_073_741_987,
SDLK_EXSEL = 1_073_741_988,
SDLK_KP_00 = 1_073_742_000,
SDLK_KP_000 = 1_073_742_001,
SDLK_THOUSANDSSEPARATOR = 1_073_742_002,
SDLK_DECIMALSEPARATOR = 1_073_742_003,
SDLK_CURRENCYUNIT = 1_073_742_004,
SDLK_CURRENCYSUBUNIT = 1_073_742_005,
SDLK_KP_LEFTPAREN = 1_073_742_006,
SDLK_KP_RIGHTPAREN = 1_073_742_007,
SDLK_KP_LEFTBRACE = 1_073_742_008,
SDLK_KP_RIGHTBRACE = 1_073_742_009,
SDLK_KP_TAB = 1_073_742_010,
SDLK_KP_BACKSPACE = 1_073_742_011,
SDLK_KP_A = 1_073_742_012,
SDLK_KP_B = 1_073_742_013,
SDLK_KP_C = 1_073_742_014,
SDLK_KP_D = 1_073_742_015,
SDLK_KP_E = 1_073_742_016,
SDLK_KP_F = 1_073_742_017,
SDLK_KP_XOR = 1_073_742_018,
SDLK_KP_POWER = 1_073_742_019,
SDLK_KP_PERCENT = 1_073_742_020,
SDLK_KP_LESS = 1_073_742_021,
SDLK_KP_GREATER = 1_073_742_022,
SDLK_KP_AMPERSAND = 1_073_742_023,
SDLK_KP_DBLAMPERSAND = 1_073_742_024,
SDLK_KP_VERTICALBAR = 1_073_742_025,
SDLK_KP_DBLVERTICALBAR = 1_073_742_026,
SDLK_KP_COLON = 1_073_742_027,
SDLK_KP_HASH = 1_073_742_028,
SDLK_KP_SPACE = 1_073_742_029,
SDLK_KP_AT = 1_073_742_030,
SDLK_KP_EXCLAM = 1_073_742_031,
SDLK_KP_MEMSTORE = 1_073_742_032,
SDLK_KP_MEMRECALL = 1_073_742_033,
SDLK_KP_MEMCLEAR = 1_073_742_034,
SDLK_KP_MEMADD = 1_073_742_035,
SDLK_KP_MEMSUBTRACT = 1_073_742_036,
SDLK_KP_MEMMULTIPLY = 1_073_742_037,
SDLK_KP_MEMDIVIDE = 1_073_742_038,
SDLK_KP_PLUSMINUS = 1_073_742_039,
SDLK_KP_CLEAR = 1_073_742_040,
SDLK_KP_CLEARENTRY = 1_073_742_041,
SDLK_KP_BINARY = 1_073_742_042,
SDLK_KP_OCTAL = 1_073_742_043,
SDLK_KP_DECIMAL = 1_073_742_044,
SDLK_KP_HEXADECIMAL = 1_073_742_045,
SDLK_LCTRL = 1_073_742_048,
SDLK_LSHIFT = 1_073_742_049,
SDLK_LALT = 1_073_742_050,
SDLK_LGUI = 1_073_742_051,
SDLK_RCTRL = 1_073_742_052,
SDLK_RSHIFT = 1_073_742_053,
SDLK_RALT = 1_073_742_054,
SDLK_RGUI = 1_073_742_055,
SDLK_MODE = 1_073_742_081,
SDLK_AUDIONEXT = 1_073_742_082,
SDLK_AUDIOPREV = 1_073_742_083,
SDLK_AUDIOSTOP = 1_073_742_084,
SDLK_AUDIOPLAY = 1_073_742_085,
SDLK_AUDIOMUTE = 1_073_742_086,
SDLK_MEDIASELECT = 1_073_742_087,
SDLK_WWW = 1_073_742_088,
SDLK_MAIL = 1_073_742_089,
SDLK_CALCULATOR = 1_073_742_090,
SDLK_COMPUTER = 1_073_742_091,
SDLK_AC_SEARCH = 1_073_742_092,
SDLK_AC_HOME = 1_073_742_093,
SDLK_AC_BACK = 1_073_742_094,
SDLK_AC_FORWARD = 1_073_742_095,
SDLK_AC_STOP = 1_073_742_096,
SDLK_AC_REFRESH = 1_073_742_097,
SDLK_AC_BOOKMARKS = 1_073_742_098,
SDLK_BRIGHTNESSDOWN = 1_073_742_099,
SDLK_BRIGHTNESSUP = 1_073_742_100,
SDLK_DISPLAYSWITCH = 1_073_742_101,
SDLK_KBDILLUMTOGGLE = 1_073_742_102,
SDLK_KBDILLUMDOWN = 1_073_742_103,
SDLK_KBDILLUMUP = 1_073_742_104,
SDLK_EJECT = 1_073_742_105,
SDLK_SLEEP = 1_073_742_106,
SDLK_APP1 = 1_073_742_107,
SDLK_APP2 = 1_073_742_108,
SDLK_AUDIOREWIND = 1_073_742_109,
SDLK_AUDIOFASTFORWARD = 1_073_742_110,
SDLK_SOFTLEFT = 1_073_742_111,
SDLK_SOFTRIGHT = 1_073_742_112,
SDLK_CALL = 1_073_742_113,
SDLK_ENDCALL = 1_073_742_114,
}
Variants§
SDLK_UNKNOWN = 0
SDLK_RETURN = 13
SDLK_ESCAPE = 27
SDLK_BACKSPACE = 8
SDLK_TAB = 9
SDLK_SPACE = 32
SDLK_EXCLAIM = 33
SDLK_QUOTEDBL = 34
SDLK_HASH = 35
SDLK_PERCENT = 37
SDLK_DOLLAR = 36
SDLK_AMPERSAND = 38
SDLK_QUOTE = 39
SDLK_LEFTPAREN = 40
SDLK_RIGHTPAREN = 41
SDLK_ASTERISK = 42
SDLK_PLUS = 43
SDLK_COMMA = 44
SDLK_MINUS = 45
SDLK_PERIOD = 46
SDLK_SLASH = 47
SDLK_0 = 48
SDLK_1 = 49
SDLK_2 = 50
SDLK_3 = 51
SDLK_4 = 52
SDLK_5 = 53
SDLK_6 = 54
SDLK_7 = 55
SDLK_8 = 56
SDLK_9 = 57
SDLK_COLON = 58
SDLK_SEMICOLON = 59
SDLK_LESS = 60
SDLK_EQUALS = 61
SDLK_GREATER = 62
SDLK_QUESTION = 63
SDLK_AT = 64
SDLK_LEFTBRACKET = 91
SDLK_BACKSLASH = 92
SDLK_RIGHTBRACKET = 93
SDLK_CARET = 94
SDLK_UNDERSCORE = 95
SDLK_BACKQUOTE = 96
SDLK_a = 97
SDLK_b = 98
SDLK_c = 99
SDLK_d = 100
SDLK_e = 101
SDLK_f = 102
SDLK_g = 103
SDLK_h = 104
SDLK_i = 105
SDLK_j = 106
SDLK_k = 107
SDLK_l = 108
SDLK_m = 109
SDLK_n = 110
SDLK_o = 111
SDLK_p = 112
SDLK_q = 113
SDLK_r = 114
SDLK_s = 115
SDLK_t = 116
SDLK_u = 117
SDLK_v = 118
SDLK_w = 119
SDLK_x = 120
SDLK_y = 121
SDLK_z = 122
SDLK_CAPSLOCK = 1_073_741_881
SDLK_F1 = 1_073_741_882
SDLK_F2 = 1_073_741_883
SDLK_F3 = 1_073_741_884
SDLK_F4 = 1_073_741_885
SDLK_F5 = 1_073_741_886
SDLK_F6 = 1_073_741_887
SDLK_F7 = 1_073_741_888
SDLK_F8 = 1_073_741_889
SDLK_F9 = 1_073_741_890
SDLK_F10 = 1_073_741_891
SDLK_F11 = 1_073_741_892
SDLK_F12 = 1_073_741_893
SDLK_PRINTSCREEN = 1_073_741_894
SDLK_SCROLLLOCK = 1_073_741_895
SDLK_PAUSE = 1_073_741_896
SDLK_INSERT = 1_073_741_897
SDLK_HOME = 1_073_741_898
SDLK_PAGEUP = 1_073_741_899
SDLK_DELETE = 127
SDLK_END = 1_073_741_901
SDLK_PAGEDOWN = 1_073_741_902
SDLK_RIGHT = 1_073_741_903
SDLK_LEFT = 1_073_741_904
SDLK_DOWN = 1_073_741_905
SDLK_UP = 1_073_741_906
SDLK_NUMLOCKCLEAR = 1_073_741_907
SDLK_KP_DIVIDE = 1_073_741_908
SDLK_KP_MULTIPLY = 1_073_741_909
SDLK_KP_MINUS = 1_073_741_910
SDLK_KP_PLUS = 1_073_741_911
SDLK_KP_ENTER = 1_073_741_912
SDLK_KP_1 = 1_073_741_913
SDLK_KP_2 = 1_073_741_914
SDLK_KP_3 = 1_073_741_915
SDLK_KP_4 = 1_073_741_916
SDLK_KP_5 = 1_073_741_917
SDLK_KP_6 = 1_073_741_918
SDLK_KP_7 = 1_073_741_919
SDLK_KP_8 = 1_073_741_920
SDLK_KP_9 = 1_073_741_921
SDLK_KP_0 = 1_073_741_922
SDLK_KP_PERIOD = 1_073_741_923
SDLK_APPLICATION = 1_073_741_925
SDLK_POWER = 1_073_741_926
SDLK_KP_EQUALS = 1_073_741_927
SDLK_F13 = 1_073_741_928
SDLK_F14 = 1_073_741_929
SDLK_F15 = 1_073_741_930
SDLK_F16 = 1_073_741_931
SDLK_F17 = 1_073_741_932
SDLK_F18 = 1_073_741_933
SDLK_F19 = 1_073_741_934
SDLK_F20 = 1_073_741_935
SDLK_F21 = 1_073_741_936
SDLK_F22 = 1_073_741_937
SDLK_F23 = 1_073_741_938
SDLK_F24 = 1_073_741_939
SDLK_EXECUTE = 1_073_741_940
SDLK_HELP = 1_073_741_941
SDLK_MENU = 1_073_741_942
SDLK_SELECT = 1_073_741_943
SDLK_STOP = 1_073_741_944
SDLK_AGAIN = 1_073_741_945
SDLK_UNDO = 1_073_741_946
SDLK_CUT = 1_073_741_947
SDLK_COPY = 1_073_741_948
SDLK_PASTE = 1_073_741_949
SDLK_FIND = 1_073_741_950
SDLK_MUTE = 1_073_741_951
SDLK_VOLUMEUP = 1_073_741_952
SDLK_VOLUMEDOWN = 1_073_741_953
SDLK_KP_COMMA = 1_073_741_957
SDLK_KP_EQUALSAS400 = 1_073_741_958
SDLK_ALTERASE = 1_073_741_977
SDLK_SYSREQ = 1_073_741_978
SDLK_CANCEL = 1_073_741_979
SDLK_CLEAR = 1_073_741_980
SDLK_PRIOR = 1_073_741_981
SDLK_RETURN2 = 1_073_741_982
SDLK_SEPARATOR = 1_073_741_983
SDLK_OUT = 1_073_741_984
SDLK_OPER = 1_073_741_985
SDLK_CLEARAGAIN = 1_073_741_986
SDLK_CRSEL = 1_073_741_987
SDLK_EXSEL = 1_073_741_988
SDLK_KP_00 = 1_073_742_000
SDLK_KP_000 = 1_073_742_001
SDLK_THOUSANDSSEPARATOR = 1_073_742_002
SDLK_DECIMALSEPARATOR = 1_073_742_003
SDLK_CURRENCYUNIT = 1_073_742_004
SDLK_CURRENCYSUBUNIT = 1_073_742_005
SDLK_KP_LEFTPAREN = 1_073_742_006
SDLK_KP_RIGHTPAREN = 1_073_742_007
SDLK_KP_LEFTBRACE = 1_073_742_008
SDLK_KP_RIGHTBRACE = 1_073_742_009
SDLK_KP_TAB = 1_073_742_010
SDLK_KP_BACKSPACE = 1_073_742_011
SDLK_KP_A = 1_073_742_012
SDLK_KP_B = 1_073_742_013
SDLK_KP_C = 1_073_742_014
SDLK_KP_D = 1_073_742_015
SDLK_KP_E = 1_073_742_016
SDLK_KP_F = 1_073_742_017
SDLK_KP_XOR = 1_073_742_018
SDLK_KP_POWER = 1_073_742_019
SDLK_KP_PERCENT = 1_073_742_020
SDLK_KP_LESS = 1_073_742_021
SDLK_KP_GREATER = 1_073_742_022
SDLK_KP_AMPERSAND = 1_073_742_023
SDLK_KP_DBLAMPERSAND = 1_073_742_024
SDLK_KP_VERTICALBAR = 1_073_742_025
SDLK_KP_DBLVERTICALBAR = 1_073_742_026
SDLK_KP_COLON = 1_073_742_027
SDLK_KP_HASH = 1_073_742_028
SDLK_KP_SPACE = 1_073_742_029
SDLK_KP_AT = 1_073_742_030
SDLK_KP_EXCLAM = 1_073_742_031
SDLK_KP_MEMSTORE = 1_073_742_032
SDLK_KP_MEMRECALL = 1_073_742_033
SDLK_KP_MEMCLEAR = 1_073_742_034
SDLK_KP_MEMADD = 1_073_742_035
SDLK_KP_MEMSUBTRACT = 1_073_742_036
SDLK_KP_MEMMULTIPLY = 1_073_742_037
SDLK_KP_MEMDIVIDE = 1_073_742_038
SDLK_KP_PLUSMINUS = 1_073_742_039
SDLK_KP_CLEAR = 1_073_742_040
SDLK_KP_CLEARENTRY = 1_073_742_041
SDLK_KP_BINARY = 1_073_742_042
SDLK_KP_OCTAL = 1_073_742_043
SDLK_KP_DECIMAL = 1_073_742_044
SDLK_KP_HEXADECIMAL = 1_073_742_045
SDLK_LCTRL = 1_073_742_048
SDLK_LSHIFT = 1_073_742_049
SDLK_LALT = 1_073_742_050
SDLK_LGUI = 1_073_742_051
SDLK_RCTRL = 1_073_742_052
SDLK_RSHIFT = 1_073_742_053
SDLK_RALT = 1_073_742_054
SDLK_RGUI = 1_073_742_055
SDLK_MODE = 1_073_742_081
SDLK_AUDIONEXT = 1_073_742_082
SDLK_AUDIOPREV = 1_073_742_083
SDLK_AUDIOSTOP = 1_073_742_084
SDLK_AUDIOPLAY = 1_073_742_085
SDLK_AUDIOMUTE = 1_073_742_086
SDLK_MEDIASELECT = 1_073_742_087
SDLK_WWW = 1_073_742_088
SDLK_MAIL = 1_073_742_089
SDLK_CALCULATOR = 1_073_742_090
SDLK_COMPUTER = 1_073_742_091
SDLK_AC_SEARCH = 1_073_742_092
SDLK_AC_HOME = 1_073_742_093
SDLK_AC_BACK = 1_073_742_094
SDLK_AC_FORWARD = 1_073_742_095
SDLK_AC_STOP = 1_073_742_096
SDLK_AC_REFRESH = 1_073_742_097
SDLK_AC_BOOKMARKS = 1_073_742_098
SDLK_BRIGHTNESSDOWN = 1_073_742_099
SDLK_BRIGHTNESSUP = 1_073_742_100
SDLK_DISPLAYSWITCH = 1_073_742_101
SDLK_KBDILLUMTOGGLE = 1_073_742_102
SDLK_KBDILLUMDOWN = 1_073_742_103
SDLK_KBDILLUMUP = 1_073_742_104
SDLK_EJECT = 1_073_742_105
SDLK_SLEEP = 1_073_742_106
SDLK_APP1 = 1_073_742_107
SDLK_APP2 = 1_073_742_108
SDLK_AUDIOREWIND = 1_073_742_109
SDLK_AUDIOFASTFORWARD = 1_073_742_110
SDLK_SOFTLEFT = 1_073_742_111
SDLK_SOFTRIGHT = 1_073_742_112
SDLK_CALL = 1_073_742_113
SDLK_ENDCALL = 1_073_742_114
Trait Implementations§
source§impl Clone for SDL_KeyCode
impl Clone for SDL_KeyCode
source§fn clone(&self) -> SDL_KeyCode
fn clone(&self) -> SDL_KeyCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for SDL_KeyCode
impl Hash for SDL_KeyCode
source§impl PartialEq for SDL_KeyCode
impl PartialEq for SDL_KeyCode
source§fn eq(&self, other: &SDL_KeyCode) -> bool
fn eq(&self, other: &SDL_KeyCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_KeyCode
impl Eq for SDL_KeyCode
impl StructuralPartialEq for SDL_KeyCode
Auto Trait Implementations§
impl Freeze for SDL_KeyCode
impl RefUnwindSafe for SDL_KeyCode
impl Send for SDL_KeyCode
impl Sync for SDL_KeyCode
impl Unpin for SDL_KeyCode
impl UnwindSafe for SDL_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