comp • gb.sdl2 • key

Key (gb.sdl2)

This static class returns information about a keyboard event, and provides constants for each key code.

This class is static.
This class acts like a
Return a key code from its key name.
read-only
static array.

Static properties

Constants
Return if the Alt key is pressed during a keyboard event.
Alt  
Return if the AltGr key is pressed during a keyboard event.
AltGr  
Return the key code of a KeyPress event.
Code  
Return if the Ctrl key is pressed during a keyboard event.
Control  
Return if the Meta key is pressed during a keyboard event.
Meta  
Return TRUE if no modifier key is pressed during a keyboard event.
Normal  
Return or set if key repeat is enabled.
Repeat  
Return if any Shift key is pressed during a keyboard event.
Shift  
Return the UTF-8 string entered during a keyboard event.
Text  
AltGrKey   Backspace   CapsLock   Delete   Down   End   Esc   Escape   F1   F10   F11   F12   F13   F14   F15   F2   F3   F4   F5   F6   F7   F8   F9   Home   Insert   Left   LeftAlt   LeftControl   LeftMeta   LeftShift   Menu   Num0   Num1   Num2   Num3   Num4   Num5   Num6   Num7   Num8   Num9   NumDivide   NumEnter   NumLock   NumMinus   NumMultiply   NumPeriod   NumPlus   PageDown   PageUp   Pause   Return   Right   RightAlt   RightControl   RightMeta   RightShift   ScrollLock   Space   SysReq   Tab   Up