Scancodes.md 2.2 KB

Scancodes are keyboard layout-independent, so the scancode "w" will be generated if the key in the same place as the "w" key on an American QWERTY keyboard is pressed, no matter what the key is labelled or what the user's operating system settings are.


a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, return, escape, backspace, tab, space, -, =, [, ], \, nonus# (The non-US hash scancode), ;, ', ., /, capslock, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, lctrl, lshift, lalt, lgui, rctrl, rshift, ralt, rgui, printscreen, scrollock, pause, insert, home, numlock, pageup, delete, end, pagedown, right, left, up, down, nonusbackslash, application, execute, help, menu, select, stop, again, undo, cut, copy, paste, find

Keypad Scancodes:


kp/, kp*, kp-, kp+, kp=, kpenter, kp1, kp2, kp3, kp4, kp5, kp6, kp7, kp8, kp9, kp0, kp.

International / Language Scancodes:


international1, international2, international3, international4, international5, international6, international7, international8, international9, lang1, lang2, lang3, lang4, lang5

Media Scancodes:


mute, volumeup, volumedown, audionext, audioprev, audiostop, audioplay, audiomute, mediaselect, www, mail, calculator, computer, acsearch, achome, acback, acforward, acstop, acrefresh, acbookmarks

Hardware Setting Scancode:


power, brightnessdown, brightnessup, displayswitch, kbdillumtoggle, kbdillumdown, kbdillumup, eject, sleep

Misc:


alterase, sysreq, cancel, clear, prior, return2, separator, out, oper, clearagain, crsel, exsel, kp00, kp000, thsousasndsseparator, decimalseparator, currencyunit, currencysubunit, app1, unknown


For more info visit: https://love2d.org/wiki/Scancode