Table of Contents

Enum Keycode

Namespace
Sdl3Sharp.Input
Assembly
Sdl3Sharp.dll

Represents a virtual key

public enum Keycode : uint

Fields

A = 97

The Keycode for the 'a' key; analogous to the A key

Again = 1073741945

The Keycode for the AGAIN (again / redo) key

AltErase = 1073741977
Ampersand = 38

The Keycode for the '&' (ampersand) key

Apostrophe = 39

The Keycode for the ''' (apostrophe) key

Application = 1073741925

The Keycode for the (context menu) key on Windows, or the COMPOSE (compose) key elsewhere

ApplicationControlBack = 1073742106

The Keycode for the application control "Back" key

ApplicationControlBookmarks = 1073742110

The Keycode for the application control "Bookmarks" key

ApplicationControlClose = 1073742099

The Keycode for the application control "Close" key

ApplicationControlExit = 1073742100

The Keycode for the application control "Exit" key

ApplicationControlForward = 1073742107

The Keycode for the application control "Forward" key

ApplicationControlHome = 1073742105

The Keycode for the application control "Home" key

ApplicationControlNew = 1073742097

The Keycode for the application control "New" key

ApplicationControlOpen = 1073742098

The Keycode for the application control "Open" key

ApplicationControlPrint = 1073742102

The Keycode for the application control "Print" key

ApplicationControlProperties = 1073742103

The Keycode for the application control "Properties" key

ApplicationControlRefresh = 1073742109

The Keycode for the application control "Refresh" key

ApplicationControlSave = 1073742101

The Keycode for the application control "Save" key

ApplicationControlSearch = 1073742104

The Keycode for the application control "Search" key

ApplicationControlStop = 1073742108

The Keycode for the application control "Stop" key

Asterisk = 42

The Keycode for the '*' (asterisk) key

At = 64

The Keycode for the '@' (at sign) key

B = 98

The Keycode for the 'b' key; analogous to the B key

Backslash = 92

The Keycode for the '\' (back slash) key

Backspace = 8

The Keycode for the '\b' (back space) key; analogous to the (back space) key

C = 99

The Keycode for the 'c' key; analogous to the C key

Call = 1073742113

The Keycode for the 📞 (phone call) key on mobiles

Cancel = 1073741979
CapsLock = 1073741881

The Keycode for the (caps lock) key

Caret = 94

The Keycode for the '^' (caret / accent circumflex) key

ChannelDecrement = 1073742085
ChannelIncrement = 1073742084
Clear = 1073741980
ClearAgain = 1073741986
Colon = 58

The Keycode for the ':' (colon) key

Comma = 44

The Keycode for the ',' (comma) key

Copy = 1073741948

The Keycode for the COPY (copy) key

CrSel = 1073741987
CurrencySubunit = 1073742005
CurrencyUnit = 1073742004
Cut = 1073741947

The Keycode for the CUT (cut) key

D = 100

The Keycode for the 'd' key; analogous to the D key

DecimalSeparator = 1073742003
Delete = 127

The Keycode for the '\x7F' (delete) key

Dollar = 36

The Keycode for the '$' (percent sign) key

DoubleApostrophe = 34

The Keycode for the '"' (double apostrophe) key

Down = 1073741905

The Keycode for the (down arrow) key

E = 101

The Keycode for the 'e' key; analogous to the E key

End = 1073741901

The Keycode for the END (end) key

EndCall = 1073742114

The Keycode for the END 📞 (end phone call) key on mobiles

Equals = 61

The Keycode for the '=' (equal sign) key

Escape = 27

The Keycode for the '\e' (escape) key; analogous to the ESC (escape) key

ExSel = 1073741988
ExclamationMark = 33

The Keycode for the '!' (exclamation mark) key

Execute = 1073741940

The Keycode for the EXECUTE (execute) key

F = 102

The Keycode for the 'f' key; analogous to the F key

F1 = 1073741882

The Keycode for the F1 key

F10 = 1073741891

The Keycode for the F10 key

F11 = 1073741892

The Keycode for the F11 key

F12 = 1073741893

The Keycode for the F12 key

F13 = 1073741928

The Keycode for the F13 key

F14 = 1073741929

The Keycode for the F14 key

F15 = 1073741930

The Keycode for the F15 key

F16 = 1073741931

The Keycode for the F16 key

F17 = 1073741932

The Keycode for the F17 key

F18 = 1073741933

The Keycode for the F18 key

F19 = 1073741934

The Keycode for the F19 key

F2 = 1073741883

The Keycode for the F2 key

F20 = 1073741935

The Keycode for the F20 key

F21 = 1073741936

The Keycode for the F21 key

F22 = 1073741937

The Keycode for the F22 key

F23 = 1073741938

The Keycode for the F23 key

F24 = 1073741939

The Keycode for the F24 key

F3 = 1073741884

The Keycode for the F3 key

F4 = 1073741885

The Keycode for the F4 key

F5 = 1073741886

The Keycode for the F5 key

F6 = 1073741887

The Keycode for the F6 key

F7 = 1073741888

The Keycode for the F7 key

F8 = 1073741889

The Keycode for the F8 key

F9 = 1073741890

The Keycode for the F9 key

Find = 1073741950

The Keycode for the 🔍 (find) key

G = 103

The Keycode for the 'g' key; analogous to the G key

Grave = 96

The Keycode for the '`' (accent grave) key

Greater = 62

The Keycode for the '>' (greater than sign) key

H = 104

The Keycode for the 'h' key; analogous to the H key

Hash = 35

The Keycode for the '#' (hash sign) key

Help = 1073741941

The Keycode for the HELP (help) key

Home = 1073741898

The Keycode for the HOME (home) key

I = 105

The Keycode for the 'i' key; analogous to the I key

Insert = 1073741897

The Keycode for the INSERT (insert) key

J = 106

The Keycode for the 'j' key; analogous to the J key

K = 107

The Keycode for the 'k' key; analogous to the K key

Keypad0 = 1073741922

The Keycode for the 0 key on the keypad

Keypad00 = 1073742000
Keypad000 = 1073742001
Keypad1 = 1073741913

The Keycode for the 1 key on the keypad

Keypad2 = 1073741914

The Keycode for the 2 key on the keypad

Keypad3 = 1073741915

The Keycode for the 3 key on the keypad

Keypad4 = 1073741916

The Keycode for the 4 key on the keypad

Keypad5 = 1073741917

The Keycode for the 5 key on the keypad

Keypad6 = 1073741918

The Keycode for the 6 key on the keypad

Keypad7 = 1073741919

The Keycode for the 7 key on the keypad

Keypad8 = 1073741920

The Keycode for the 8 key on the keypad

Keypad9 = 1073741921

The Keycode for the 9 key on the keypad

KeypadA = 1073742012

The Keycode for the A key on the keypad

KeypadAmpersand = 1073742023

The Keycode for the & (and; sometimes AND) key on the keypad

KeypadAt = 1073742030

The Keycode for the @ key on the keypad

KeypadB = 1073742013

The Keycode for the B key on the keypad

KeypadBackspace = 1073742011

The Keycode for the (back space) key on the keypad

KeypadBinary = 1073742042
KeypadC = 1073742014

The Keycode for the C key on the keypad

KeypadClear = 1073742040

The Keycode for the CLEAR (clear) key on the keypad

KeypadClearEntry = 1073742041
KeypadColon = 1073742027

The Keycode for the : key on the keypad

KeypadComma = 1073741957

The Keycode for the , key on the keypad

KeypadD = 1073742015

The Keycode for the D key on the keypad

KeypadDecimal = 1073742044
KeypadDivide = 1073741908

The Keycode for the / (divide) key on the keypad

KeypadDoubleAmpersand = 1073742024

The Keycode for the && key on the keypad

KeypadDoubleVerticalBar = 1073742026

The Keycode for the || key on the keypad

KeypadE = 1073742016

The Keycode for the E key on the keypad

KeypadEnter = 1073741912

The Keycode for the (return / enter) key on the keypad

KeypadEquals = 1073741927

The Keycode for the = key

KeypadEqualsAS400 = 1073741958

The Keycode for the = AS400 key on the keypad

KeypadExclamationMark = 1073742031

The Keycode for the ! key on the keypad

KeypadF = 1073742017

The Keycode for the F key on the keypad

KeypadGreater = 1073742022

The Keycode for the > key on the keypad

KeypadHash = 1073742028

The Keycode for the # key on the keypad

KeypadHexadecimal = 1073742045
KeypadLeftBrace = 1073742008

The Keycode for the { key on the keypad

KeypadLeftParenthesis = 1073742006

The Keycode for the ( key on the keypad

KeypadLess = 1073742021

The Keycode for the < key on the keypad

KeypadMemAdd = 1073742035

The Keycode for the MEM + (mem add) key on the keypad

KeypadMemClear = 1073742034

The Keycode for the MEM CLEAR (mem clear) key on the keypad

KeypadMemDivide = 1073742038

The Keycode for the MEM / (mem divide) key on the keypad

KeypadMemMultiply = 1073742037

The Keycode for the MEM * (mem multiply) key on the keypad

KeypadMemRecall = 1073742033

The Keycode for the MEM RECALL (mem recall) key on the keypad

KeypadMemStore = 1073742032

The Keycode for the MEM STORE (mem store) key on the keypad

KeypadMemSubtract = 1073742036

The Keycode for the MEM - (mem subtract) key on the keypad

KeypadMinus = 1073741910

The Keycode for the - (minus) key on the keypad

KeypadMultiply = 1073741909

The Keycode for the * (multiply) key on the keypad

KeypadOctal = 1073742043
KeypadPercent = 1073742020

The Keycode for the % key on the keypad

KeypadPeriod = 1073741923

The Keycode for the . key on the keypad

KeypadPlus = 1073741911

The Keycode for the + (divide) key on the keypad

KeypadPlusMinus = 1073742039

The Keycode for the ± (plus-minus) key on the keypad

KeypadPower = 1073742019

The Keycode for the (power / exponentiation; sometimes ^) key on the keypad

KeypadRightBrace = 1073742009

The Keycode for the } key on the keypad

KeypadRightParenthesis = 1073742007

The Keycode for the ) key on the keypad

KeypadSpace = 1073742029

The Keycode for the (space) key on the keypad

KeypadTab = 1073742010

The Keycode for the (tab) key on the keypad

KeypadVerticalBar = 1073742025

The Keycode for the | (or; sometimes OR) key on the keypad

KeypadXor = 1073742018

The Keycode for the XOR (xor; sometimes ^) key on the keypad

L = 108

The Keycode for the 'l' key; analogous to the L key

Left = 1073741904

The Keycode for the (left arrow) key

LeftAlt = 1073742050

The Keycode for the left ALT (left alt) key

LeftBrace = 123

The Keycode for the '{' (left brace) key

LeftBracket = 91

The Keycode for the '[' (left bracket) key

LeftControl = 1073742048

The Keycode for the left CTRL (left control) key

LeftGui = 1073742051

The Keycode for the left (left Windows) key on PCs, left (left command) key on Macs, or sometimes called left meta key

LeftHyper = 536870918

The Keycode for the "Left Hyper" key

LeftMeta = 536870916

The Keycode for the "Left Meta" key

LeftParenthesis = 40

The Keycode for the '(' (left parenthesis) key

LeftShift = 1073742049

The Keycode for the left (left shift) key

LeftTab = 536870913

The Keycode for the "Left Tab" key

Less = 60

The Keycode for the '<' (less than sign) key

Level5Shift = 536870914

The Keycode for the "Level 5 Shift" key

M = 109

The Keycode for the 'm' key; analogous to the M key

MediaEject = 1073742094

The Keycode for the (media eject) key

MediaFastForward = 1073742089

The Keycode for the (media fast forward) key

MediaNextTrack = 1073742091

The Keycode for the (media next track) key

MediaPause = 1073742087

The Keycode for the (media pause) key

MediaPlay = 1073742086

The Keycode for the (media play) key

MediaPlayPause = 1073742095

The Keycode for the (play-pause eject) key

MediaPreviousTrack = 1073742092

The Keycode for the (media previous track) key

MediaRecord = 1073742088

The Keycode for the (media record) key

MediaRewind = 1073742090

The Keycode for the (media rewind) key

MediaSelect = 1073742096
MediaStop = 1073742093

The Keycode for the (media stop) key

Menu = 1073741942

The Keycode for the (menu / show menu) key

Minus = 45

The Keycode for the '-' (minus sign) key

Mode = 1073742081
MultiKeyCompose = 536870915

The Keycode for the "Level 5 Shift" key

Mute = 1073741951

The Keycode for the 🔇 (mute volume) key

N = 110

The Keycode for the 'n' key; analogous to the N key

NumLockOrClear = 1073741907

The Keycode for the NUM (num lock) key on PCs, or the CLEAR (clear) key on Macs

O = 111

The Keycode for the 'o' key; analogous to the O key

Oper = 1073741985
Out = 1073741984
P = 112

The Keycode for the 'p' key; analogous to the P key

PageDown = 1073741902

The Keycode for the PAGE DOWN (page down) key

PageUp = 1073741899

The Keycode for the PAGE UP (page up) key

Paste = 1073741949

The Keycode for the PASTE (paste) key

Pause = 1073741896

The Keycode for the PAUSE (pause / break) key

Percent = 37

The Keycode for the '%' (percent sign) key

Period = 46

The Keycode for the '.' (period) key

Pipe = 124

The Keycode for the '|' (pipe / vertical bar) key

Plus = 43

The Keycode for the '+' (plus sign) key

PlusMinus = 177

The Keycode for the '±' (plus-minus sign) key

[Experimental("SDL5010")] Power = 1073741926

The Keycode that might be for the POWER (power) key on some Mac keyboards

Do not rely on this, as the USB document says that this is a status flag instead of a physical key.

PrintScreen = 1073741894

The Keycode for the PRINT SCREEN (print screen) key

Prior = 1073741981
Q = 113

The Keycode for the 'q' key; analogous to the Q key

QuestionMark = 63

The Keycode for the '?' (question mark) key

R = 114

The Keycode for the 'r' key; analogous to the R key

Return = 13

The Keycode for the '\r' (return) key; analogous to the (return / enter) key

Return2 = 1073741982
Right = 1073741903

The Keycode for the (right arrow) key

RightAlt = 1073742054

The Keycode for the right ALT (right alt) key, or sometimes called ALT GR (alt gr.) key

RightBrace = 125

The Keycode for the '}' (right brace) key

RightBracket = 93

The Keycode for the ']' (right bracket) key

RightControl = 1073742052

The Keycode for the right CTRL (right control) key

RightGui = 1073742055

The Keycode for the right (right Windows) key on PCs, right (right command) key on Macs, or sometimes called right meta key

RightHyper = 536870919

The Keycode for the "Right Hyper" key

RightMeta = 536870917

The Keycode for the "Right Meta" key

RightParenthesis = 41

The Keycode for the ')' (right parenthesis) key

RightShift = 1073742053

The Keycode for the right (right shift) key

S = 115

The Keycode for the 's' key; analogous to the S key

ScrollLock = 1073741895

The Keycode for the SCROLL (scroll lock) key

Select = 1073741943

The Keycode for the SELECT (select) key

Semicolon = 59

The Keycode for the ';' (semicolon) key

Separator = 1073741983
Slash = 47

The Keycode for the '/' (slash) key

Sleep = 1073742082
SoftwareLeft = 1073742111

The Keycode for left software defined key on mobiles

This key is usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom left of the display.

SoftwareRight = 1073742112

The Keycode for right software defined key on mobiles

This key is usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom right of the display.

Space = 32

The Keycode for the ' ' (space) key; analogous to the (space) key

Stop = 1073741944

The Keycode for the STOP (stop) key

SysReq = 1073741978
T = 116

The Keycode for the 't' key; analogous to the T key

Tab = 9

The Keycode for the '\t' (tab) key; analogous to the (tab) key

ThousandsSeparator = 1073742002
Tilde = 126

The Keycode for the '~' (tilde) key

U = 117

The Keycode for the 'u' key; analogous to the U key

Underscore = 95

The Keycode for the '_' (underscore) key

Undo = 1073741946

The Keycode for the UNDO (undo) key

Unknown = 0

A representative for an unknown Keycode

Up = 1073741906

The Keycode for the (up arrow) key

V = 118

The Keycode for the 'v' key; analogous to the V key

VolumeDown = 1073741953

The Keycode for the 🔉 (volume down) key

VolumeUp = 1073741952

The Keycode for the 🔊 (volume up) key

W = 119

The Keycode for the 'w' key; analogous to the W key

Wake = 1073742083
X = 120

The Keycode for the 'x' key; analogous to the X key

Y = 121

The Keycode for the 'y' key; analogous to the Y key

Z = 122

The Keycode for the 'z' key; analogous to the Z key

_0 = 48

The Keycode for the '0' key; analogous to the 0 key

_1 = 49

The Keycode for the '1' key; analogous to the 1 key

_2 = 50

The Keycode for the '2' key; analogous to the 2 key

_3 = 51

The Keycode for the '3' key; analogous to the 3 key

_4 = 52

The Keycode for the '4' key; analogous to the 4 key

_5 = 53

The Keycode for the '5' key; analogous to the 5 key

_6 = 54

The Keycode for the '6' key; analogous to the 6 key

_7 = 55

The Keycode for the '7' key; analogous to the 7 key

_8 = 56

The Keycode for the '8' key; analogous to the 8 key

_9 = 57

The Keycode for the '9' key; analogous to the 9 key

Remarks

This represents a virtual key, which is different to a keyboard scancode.