Table of Contents

Enum Scancode

Namespace
Sdl3Sharp.Input
Assembly
Sdl3Sharp.dll

Represents a keyboard scancode

public enum Scancode

Fields

A = 4

The Scancode for the A key

Again = 121

The Scancode for the AGAIN (again / redo) key

AltErase = 153
Apostrophe = 52

The Scancode for the ' key

Application = 101

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

ApplicationControlBack = 282

The Scancode for the application control "Back" key

ApplicationControlBookmarks = 286

The Scancode for the application control "Bookmarks" key

ApplicationControlClose = 275

The Scancode for the application control "Close" key

ApplicationControlExit = 276

The Scancode for the application control "Exit" key

ApplicationControlForward = 283

The Scancode for the application control "Forward" key

ApplicationControlHome = 281

The Scancode for the application control "Home" key

ApplicationControlNew = 273

The Scancode for the application control "New" key

ApplicationControlOpen = 274

The Scancode for the application control "Open" key

ApplicationControlPrint = 278

The Scancode for the application control "Print" key

ApplicationControlProperties = 279

The Scancode for the application control "Properties" key

ApplicationControlRefresh = 285

The Scancode for the application control "Refresh" key

ApplicationControlSave = 277

The Scancode for the application control "Save" key

ApplicationControlSearch = 280

The Scancode for the application control "Search" key

ApplicationControlStop = 284

The Scancode for the application control "Stop" key

B = 5

The Scancode for the B key

Backslash = 49

The Scancode for the </kbd> key in US layouts

This key Located at the lower left of the (return / enter) key on ISO keyboards and at the right end of the QWERTY row on ANSI keyboards.

This key produces:

  • '\' (back slash) and '|' (vertical line) in a US layout and in a UK Mac layout
  • '#' (number sign) and '~' (tilde) in a UK Windows layout
  • '$' (dollar sign) and '£' (pound sign) in a Swiss German layout
  • '#' (number sign) and ''' (apostrophe) in a German layout
  • '`' (accent grave) and '£' (pound sign) in a French Mac layout
  • '*' (asterisk) and 'µ' (micro sign) in a French Windows layout
Backspace = 42

The Scancode for the (back space) key

C = 6

The Scancode for the C key

Call = 289

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

Cancel = 155
CapsLock = 57

The Scancode for the (caps lock) key

ChannelDecrement = 261
ChannelIncrement = 260
Clear = 156
ClearAgain = 162
Comma = 54

The Scancode for the , key

Copy = 124

The Scancode for the COPY (copy) key

CrSel = 163
CurrencySubunit = 181
CurrencyUnit = 180
Cut = 123

The Scancode for the CUT (cut) key

D = 7

The Scancode for the D key

DecimalSeparator = 179
Delete = 76

The Scancode for the DELETE (delete) key

Down = 81

The Scancode for the (down arrow) key

E = 8

The Scancode for the E key

End = 77

The Scancode for the END (end) key

EndCall = 290

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

Equals = 46

The Scancode for the = key

Escape = 41

The Scancode for the ESC (escape) key

ExSel = 164
Execute = 116

The Scancode for the EXECUTE (execute) key

F = 9

The Scancode for the F key

F1 = 58

The Scancode for the F1 key

F10 = 67

The Scancode for the F10 key

F11 = 68

The Scancode for the F11 key

F12 = 69

The Scancode for the F12 key

F13 = 104

The Scancode for the F13 key

F14 = 105

The Scancode for the F14 key

F15 = 106

The Scancode for the F15 key

F16 = 107

The Scancode for the F16 key

F17 = 108

The Scancode for the F17 key

F18 = 109

The Scancode for the F18 key

F19 = 110

The Scancode for the F19 key

F2 = 59

The Scancode for the F2 key

F20 = 111

The Scancode for the F20 key

F21 = 112

The Scancode for the F21 key

F22 = 113

The Scancode for the F22 key

F23 = 114

The Scancode for the F23 key

F24 = 115

The Scancode for the F24 key

F3 = 60

The Scancode for the F3 key

F4 = 61

The Scancode for the F4 key

F5 = 62

The Scancode for the F5 key

F6 = 63

The Scancode for the F6 key

F7 = 64

The Scancode for the F7 key

F8 = 65

The Scancode for the F8 key

F9 = 66

The Scancode for the F9 key

Find = 126

The Scancode for the 🔍 (find) key

G = 10

The Scancode for the G key

Grave = 53

The Scancode for the ` key in US layouts

This key Located at the top left corner.

This key produces:

  • '`' (accent grave) and '~' (tilde) in a US Windows layout and in US and UK Mac layouts on ASNI keyboards
  • '`' (accent grave) and '¬' (not sign) in a UK Windows layout
  • '§' (section sign) and '±' (plus-minus sign) in US and UK Mac layouts on ISO keyboards
  • '§' (section sign) and '°' (degree sign) in a Swiss German layout (for Macs only on ISO keyboards)
  • '^' (accent circumflex) and '°' (degree sign) in a German layout (for Macs only on ISO keyboards)
  • '²' (superscript two) and '~' (tilde) in a French Windows layout
  • '@' (commercial at sign) and '#' (number sign) in a French Mac layout on ISO keyboards
  • '<' (less than sign) and '>' (greater than sign) in a Swiss German, German, or French Mac layout on ANSI keyboards
H = 11

The Scancode for the H key

Help = 117

The Scancode for the HELP (help) key

Home = 74

The Scancode for the HOME (home) key

I = 12

The Scancode for the I key

Insert = 73

The Scancode for the INSERT (insert) key

On some Mac keyboards this is actual send as the Scancode for the HELP (help) key instead of Help.

International1 = 135

Used on Asian keyboards, see footnotes in USB keyboard documentation.

International2 = 136
International3 = 137

Yen.

International4 = 138
International5 = 139
International6 = 140
International7 = 141
International8 = 142
International9 = 143
J = 13

The Scancode for the J key

K = 14

The Scancode for the K key

Keypad0 = 98

The Scancode for the 0 key on the keypad

Keypad00 = 176
Keypad000 = 177
Keypad1 = 89

The Scancode for the 1 key on the keypad

Keypad2 = 90

The Scancode for the 2 key on the keypad

Keypad3 = 91

The Scancode for the 3 key on the keypad

Keypad4 = 92

The Scancode for the 4 key on the keypad

Keypad5 = 93

The Scancode for the 5 key on the keypad

Keypad6 = 94

The Scancode for the 6 key on the keypad

Keypad7 = 95

The Scancode for the 7 key on the keypad

Keypad8 = 96

The Scancode for the 8 key on the keypad

Keypad9 = 97

The Scancode for the 9 key on the keypad

KeypadA = 188

The Scancode for the A key on the keypad

KeypadAmpersand = 199

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

KeypadAt = 206

The Scancode for the @ key on the keypad

KeypadB = 189

The Scancode for the B key on the keypad

KeypadBackspace = 187

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

KeypadBinary = 218
KeypadC = 190

The Scancode for the C key on the keypad

KeypadClear = 216

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

KeypadClearEntry = 217
KeypadColon = 203

The Scancode for the : key on the keypad

KeypadComma = 133

The Scancode for the , key on the keypad

KeypadD = 191

The Scancode for the D key on the keypad

KeypadDecimal = 220
KeypadDivide = 84

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

KeypadDoubleAmpersand = 200

The Scancode for the && key on the keypad

KeypadDoubleVerticalBar = 202

The Scancode for the || key on the keypad

KeypadE = 192

The Scancode for the E key on the keypad

KeypadEnter = 88

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

KeypadEquals = 103

The Scancode for the = key on the keypad

KeypadEqualsAS400 = 134

The Scancode for the = AS400 key on the keypad

KeypadExclamationMark = 207

The Scancode for the ! key on the keypad

KeypadF = 193

The Scancode for the F key on the keypad

KeypadGreater = 198

The Scancode for the > key on the keypad

KeypadHash = 204

The Scancode for the # key on the keypad

KeypadHexadecimal = 221
KeypadLeftBrace = 184

The Scancode for the { key on the keypad

KeypadLeftParenthesis = 182

The Scancode for the ( key on the keypad

KeypadLess = 197

The Scancode for the < key on the keypad

KeypadMemAdd = 211

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

KeypadMemClear = 210

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

KeypadMemDivide = 214

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

KeypadMemMultiply = 213

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

KeypadMemRecall = 209

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

KeypadMemStore = 208

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

KeypadMemSubtract = 212

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

KeypadMinus = 86

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

KeypadMultiply = 85

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

KeypadOctal = 219
KeypadPercent = 196

The Scancode for the % key on the keypad

KeypadPeriod = 99

The Scancode for the . key on the keypad

KeypadPlus = 87

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

KeypadPlusMinus = 215

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

KeypadPower = 195

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

KeypadRightBrace = 185

The Scancode for the } key on the keypad

KeypadRightParenthesis = 183

The Scancode for the ) key on the keypad

KeypadSpace = 205

The Scancode for the (space) key on the keypad

KeypadTab = 186

The Scancode for the (tab) key on the keypad

KeypadVerticalBar = 201

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

KeypadXor = 194

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

L = 15

The Scancode for the L key

Language1 = 144

Hangul/English toggle.

Language2 = 145

Hanja conversion.

Language3 = 146

Katakana.

Language4 = 147

Hiragana.

Language5 = 148

Zenkaku/Hankaku.

[Experimental("SDL5011")] Language6 = 149
[Experimental("SDL5011")] Language7 = 150
[Experimental("SDL5011")] Language8 = 151
[Experimental("SDL5011")] Language9 = 152
Left = 80

The Scancode for the (left arrow) key

LeftAlt = 226

The Scancode for the left ALT (left alt) key

LeftBracket = 47

The Scancode for the [ key

LeftControl = 224

The Scancode for the left CTRL (left control) key

LeftGui = 227

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

LeftShift = 225

The Scancode for the left (left shift) key

M = 16

The Scancode for the M key

MediaEject = 270

The Scancode for the (media eject) key

MediaFastForward = 265

The Scancode for the (media fast forward) key

MediaNextTrack = 267

The Scancode for the (media next track) key

MediaPause = 263

The Scancode for the (media pause) key

MediaPlay = 262

The Scancode for the (media play) key

MediaPlayPause = 271

The Scancode for the (play-pause eject) key

MediaPreviousTrack = 268

The Scancode for the (media previous track) key

MediaRecord = 264

The Scancode for the (media record) key

MediaRewind = 266

The Scancode for the (media rewind) key

MediaSelect = 272
MediaStop = 269

The Scancode for the (media stop) key

Menu = 118

The Scancode for the (menu / show menu) key

Minus = 45

The Scancode for the - key

Mode = 257
Mute = 127

The Scancode for the 🔇 (mute volume) key

N = 17

The Scancode for the N key

NonUsBackslash = 100

The Scancode for the additional key, located between the left (shift) key and the Y key, on ISO keyboards

This is the additional key that ISO keyboards have over ANSI ones, located between the left (shift) key and the Y key.

This key produces:

  • '`' (accent grave) and '~' (tilde) in a US or UK Mac layout
  • '\' (back slash) and '|' (vertical line) in a US or UK Windows layout
  • '<' (less than sign) and '>' (greater than sign) in a Swiss German, German, or French layout
NonUsHash = 50

The alternative Scancode that ISO USB keyboards use for Backslash

All relevant operating systems treat this Scancode and Backslash identically.

You should not generate this Scancode, nor should you rely on this Scancode getting generated, because SDL will never do that with most keyboards.

NumLockOrClear = 83

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

O = 18

The Scancode for the O key

Oper = 161
Out = 160
P = 19

The Scancode for the P key

PageDown = 78

The Scancode for the PAGE DOWN (page down) key

PageUp = 75

The Scancode for the PAGE UP (page up) key

Paste = 125

The Scancode for the PASTE (paste) key

Pause = 72

The Scancode for the PAUSE (pause / break) key

Period = 55

The Scancode for the . key

[Experimental("SDL5010")] Power = 102

The Scancode 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 = 70

The Scancode for the PRINT SCREEN (print screen) key

Prior = 157
Q = 20

The Scancode for the Q key

R = 21

The Scancode for the R key

Return = 40

The Scancode for the (return / enter) key

Return2 = 158
Right = 79

The Scancode for the (right arrow) key

RightAlt = 230

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

RightBracket = 48

The Scancode for the ] key

RightControl = 228

The Scancode for the right CTRL key (right control) key

RightGui = 231

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

RightShift = 229

The Scancode for the right (right shift) key

S = 22

The Scancode for the S key

ScrollLock = 71

The Scancode for the SCROLL (scroll lock) key

Select = 119

The Scancode for the SELECT (select) key

Semicolon = 51

The Scancode for the ; key

Separator = 159
Slash = 56

The Scancode for the / key

Sleep = 258
SoftwareLeft = 287

The Scancode 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 = 288

The Scancode 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 = 44

The Scancode for the (space) key

Stop = 120

The Scancode for the STOP (stop) key

SysReq = 154
T = 23

The Scancode for the T key

Tab = 43

The Scancode for the (tab) key

ThousandsSeparator = 178
U = 24

The Scancode for the U key

Undo = 122

The Scancode for the UNDO (undo) key

Unknown = 0

A representative for an unknown Scancode

Up = 82

The Scancode for the (up arrow) key

V = 25

The Scancode for the V key

VolumeDown = 129

The Scancode for the 🔉 (volume down) key

VolumeUp = 128

The Scancode for the 🔊 (volume up) key

W = 26

The Scancode for the W key

Wake = 259
X = 27

The Scancode for the X key

Y = 28

The Scancode for the Y key

Z = 29

The Scancode for the Z key

_0 = 39

The Scancode for the 0 key

_1 = 30

The Scancode for the 1 key

_2 = 31

The Scancode for the 2 key

_3 = 32

The Scancode for the 3 key

_4 = 33

The Scancode for the 4 key

_5 = 34

The Scancode for the 5 key

_6 = 35

The Scancode for the 6 key

_7 = 36

The Scancode for the _7 key

_8 = 37

The Scancode for the 8 key

_9 = 38

The Scancode for the 9 key

Remarks

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