GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::events Namespace Reference

Classes

struct  Error
 Exception type for domain-specific errors originating from the grem::events module. More...
struct  EventBase
 Event base. More...
struct  ApplicationEventBase
 Application Event base. More...
struct  DisplayEventBase
 Display Event base. More...
struct  WindowEventBase
 Window Event base. More...
struct  InputEventBase
 Input Event base. More...
struct  KeyEventBase
 Keyboard key Event base. More...
struct  TextInputEventBase
 Text input Event base. More...
struct  MouseEventBase
 Mouse Event base. More...
struct  MouseButtonEventBase
 Mouse button Event base. More...
struct  ControllerEventBase
 Controller Event base. More...
struct  ControllerAxisEventBase
 Controller axis Event base. More...
struct  ControllerButtonEventBase
 Controller button Event base. More...
struct  TouchEventBase
 Touch Event base. More...
struct  PinchEventBase
 Pinch Event base. More...
struct  KeymapEventBase
 Keyboard keymap Event base. More...
struct  ClipboardEventBase
 Clipboard Event base. More...
struct  DropEventBase
 Drop Event base. More...
struct  ApplicationQuitRequestedEvent
 Application was requested to quit by the user. More...
struct  DisplayOrientationChangedEvent
 Display orientation changed. More...
struct  DisplayAddedEvent
 Display was added. More...
struct  DisplayRemovedEvent
 Display was added. More...
struct  DisplayMovedEvent
 Display was moved. More...
struct  DisplayDesktopModeChangedEvent
 Display changed desktop mode. More...
struct  DisplayCurrentModeChangedEvent
 Display changed current mode. More...
struct  DisplayContentScaleChangedEvent
 Display changed content scale. More...
struct  DisplayUsableBoundsChangedEvent
 Display changed usable bounds. More...
struct  WindowShownEvent
 Window was shown. More...
struct  WindowHiddenEvent
 Window was hidden. More...
struct  WindowExposedEvent
 Window was exposed. More...
struct  WindowMovedEvent
 Window was moved. More...
struct  WindowResizedEvent
 Window was resized. More...
struct  WindowDrawableSizeChangedEvent
 Window drawable size was changed. More...
struct  WindowMinimizedEvent
 Window was minimized. More...
struct  WindowMaximizedEvent
 Window was maximized. More...
struct  WindowRestoredEvent
 Window was restored. More...
struct  WindowMouseFocusGainedEvent
 Window gained mouse focus. More...
struct  WindowMouseFocusLostEvent
 Window lost mouse focus. More...
struct  WindowKeyboardFocusGainedEvent
 Window gained keyboard focus. More...
struct  WindowKeyboardFocusLostEvent
 Window lost keyboard focus. More...
struct  WindowCloseRequestedEvent
 Window was requested to close. More...
struct  WindowDisplayChangedEvent
 Window was moved to a new display. More...
struct  WindowDisplayScaleChangedEvent
 Window display scale changed. More...
struct  KeyPressedEvent
 Keyboard key was pressed. More...
struct  KeyPressRepeatedEvent
 Keyboard key was held, causing a repeat press. More...
struct  KeyReleasedEvent
 Keyboard key was released. More...
struct  TextInputEditedEvent
 Text input was edited. More...
struct  TextInputSubmittedEvent
 Text input was submitted. More...
struct  MouseMovedEvent
 Mouse was moved. More...
struct  MouseButtonPressedEvent
 Mouse button was pressed. More...
struct  MouseButtonReleasedEvent
 Mouse button was released. More...
struct  MouseWheelScrolledEvent
 Mouse wheel was scrolled. More...
struct  ControllerAddedEvent
 Controller was added. More...
struct  ControllerRemovedEvent
 Controller was removed. More...
struct  ControllerRemappedEvent
 Controller was remapped. More...
struct  ControllerAxisMovedEvent
 Controller axis was moved. More...
struct  ControllerButtonPressedEvent
 Controller button was pressed. More...
struct  ControllerButtonReleasedEvent
 Controller button was released. More...
struct  TouchMovedEvent
 Finger touch was moved. More...
struct  TouchPressedEvent
 Finger touch was pressed. More...
struct  TouchReleasedEvent
 Finger touch was released. More...
struct  PinchBeginEvent
 Finger pinch started. More...
struct  PinchUpdateEvent
 Finger pinch was updated. More...
struct  PinchEndEvent
 Finger pinch ended. More...
struct  KeymapChangedEvent
 Keyboard keymap was changed. More...
struct  ClipboardUpdatedEvent
 Clipboard was updated. More...
struct  DroppedFileEvent
 File was dropped. More...
struct  DroppedTextEvent
 Text was dropped. More...
struct  DropStartedEvent
 Drop was started. More...
struct  DropCompletedEvent
 Drop was completed. More...
struct  Event
 Data structure containing information about an event. More...
struct  EventPumpOptions
 Configuration options for an EventPump. More...
class  EventPump
 Persistent system for polling Event data and other user input from the host environment on demand. More...
class  ExternalApplication
 Utility class for opening external applications through the host environment. More...
struct  InputManagerPreferences
 User preferences for an InputManager. More...
struct  InputManagerOptions
 Configuration options for an InputManager. More...
class  InputManager
 System for mapping physical Input controls to abstract output numbers and processing input events that control their associated values. More...
class  KeyModifiers
 Set of key modifiers. More...
class  SimpleMessageBox
 Utility class for simple message boxes with an OK button to be shown to the user through the host environment. More...

Enumerations

enum class  ControllerType : uint8_t {
  UNKNOWN , STANDARD , XBOX_360 , XBOX_ONE ,
  PS3 , PS4 , PS5 , SWITCH_PRO ,
  SWITCH_JOYCON_LEFT , SWITCH_JOYCON_RIGHT , SWITCH_JOYCON_PAIR , GAMECUBE ,
  STEAM
}
 Common controller type categories. More...
enum class  ControllerButton : uint8_t {
  SOUTH , EAST , WEST , NORTH ,
  SELECT , GUIDE , START , LEFT_STICK ,
  RIGHT_STICK , LEFT_SHOULDER , RIGHT_SHOULDER , DPAD_UP ,
  DPAD_DOWN , DPAD_LEFT , DPAD_RIGHT , MISC1 ,
  LEFT_PADDLE1 , RIGHT_PADDLE1 , LEFT_PADDLE2 , RIGHT_PADDLE2 ,
  TOUCHPAD
}
 Physical controller button identifier. More...
enum class  ControllerAxis : uint8_t {
  LEFT_STICK_X = 0 , LEFT_STICK_Y = 1 , RIGHT_STICK_X = 2 , RIGHT_STICK_Y = 3 ,
  LEFT_TRIGGER = 4 , RIGHT_TRIGGER = 5 , INVALID = 255
}
 Physical controller axis identifier. More...
enum class  CursorStyle : uint8_t {
  DEFAULT , TEXT , WAIT , CROSSHAIR ,
  PROGRESS , RESIZE_DIAGONAL_NW_SE , RESIZE_DIAGONAL_NE_SW , RESIZE_HORIZONTAL ,
  RESIZE_VERTICAL , MOVE , NOT_ALLOWED , POINTER ,
  RESIZE_NW , RESIZE_N , RESIZE_NE , RESIZE_E ,
  RESIZE_SW , RESIZE_S , RESIZE_SE , RESIZE_W
}
 Visual mouse cursor style. More...
enum class  Input : uint8_t {
  UNKNOWN , KEY_A , KEY_B , KEY_C ,
  KEY_D , KEY_E , KEY_F , KEY_G ,
  KEY_H , KEY_I , KEY_J , KEY_K ,
  KEY_L , KEY_M , KEY_N , KEY_O ,
  KEY_P , KEY_Q , KEY_R , KEY_S ,
  KEY_T , KEY_U , KEY_V , KEY_W ,
  KEY_X , KEY_Y , KEY_Z , KEY_1 ,
  KEY_2 , KEY_3 , KEY_4 , KEY_5 ,
  KEY_6 , KEY_7 , KEY_8 , KEY_9 ,
  KEY_0 , KEY_ESCAPE , KEY_LEFT_CONTROL , KEY_RIGHT_CONTROL ,
  KEY_LEFT_SHIFT , KEY_RIGHT_SHIFT , KEY_LEFT_ALT , KEY_RIGHT_ALT ,
  KEY_MENU , KEY_LEFT_BRACKET , KEY_RIGHT_BRACKET , KEY_SEMICOLON ,
  KEY_COMMA , KEY_PERIOD , KEY_APOSTROPHE , KEY_SLASH ,
  KEY_BACKSLASH , KEY_GRAVE_ACCENT , KEY_NON_US_BACKSLASH , KEY_EQUALS ,
  KEY_MINUS , KEY_SPACE , KEY_RETURN , KEY_BACKSPACE ,
  KEY_TAB , KEY_PAGE_UP , KEY_PAGE_DOWN , KEY_END ,
  KEY_HOME , KEY_INSERT , KEY_DELETE , KEY_ARROW_UP ,
  KEY_ARROW_DOWN , KEY_ARROW_LEFT , KEY_ARROW_RIGHT , KEY_NUMPAD_PLUS ,
  KEY_NUMPAD_MINUS , KEY_NUMPAD_MULTIPLY , KEY_NUMPAD_DIVIDE , KEY_NUMPAD_1 ,
  KEY_NUMPAD_2 , KEY_NUMPAD_3 , KEY_NUMPAD_4 , KEY_NUMPAD_5 ,
  KEY_NUMPAD_6 , KEY_NUMPAD_7 , KEY_NUMPAD_8 , KEY_NUMPAD_9 ,
  KEY_NUMPAD_0 , KEY_F1 , KEY_F2 , KEY_F3 ,
  KEY_F4 , KEY_F5 , KEY_F6 , KEY_F7 ,
  KEY_F8 , KEY_F9 , KEY_F10 , KEY_F11 ,
  KEY_F12 , KEY_F13 , KEY_F14 , KEY_F15 ,
  KEY_PRINT_SCREEN , KEY_SCROLL_LOCK , KEY_PAUSE , MOUSE_BUTTON_LEFT ,
  MOUSE_BUTTON_RIGHT , MOUSE_BUTTON_MIDDLE , MOUSE_BUTTON_BACK , MOUSE_BUTTON_FORWARD ,
  MOUSE_SCROLL_UP , MOUSE_SCROLL_DOWN , MOUSE_SCROLL_LEFT , MOUSE_SCROLL_RIGHT ,
  MOUSE_MOTION_UP , MOUSE_MOTION_DOWN , MOUSE_MOTION_LEFT , MOUSE_MOTION_RIGHT ,
  CONTROLLER_BUTTON_SOUTH , CONTROLLER_BUTTON_EAST , CONTROLLER_BUTTON_WEST , CONTROLLER_BUTTON_NORTH ,
  CONTROLLER_BUTTON_SELECT , CONTROLLER_BUTTON_GUIDE , CONTROLLER_BUTTON_START , CONTROLLER_BUTTON_LEFT_STICK ,
  CONTROLLER_BUTTON_RIGHT_STICK , CONTROLLER_BUTTON_LEFT_SHOULDER , CONTROLLER_BUTTON_RIGHT_SHOULDER , CONTROLLER_BUTTON_DPAD_UP ,
  CONTROLLER_BUTTON_DPAD_DOWN , CONTROLLER_BUTTON_DPAD_LEFT , CONTROLLER_BUTTON_DPAD_RIGHT , CONTROLLER_BUTTON_MISC1 ,
  CONTROLLER_BUTTON_LEFT_PADDLE1 , CONTROLLER_BUTTON_RIGHT_PADDLE1 , CONTROLLER_BUTTON_LEFT_PADDLE2 , CONTROLLER_BUTTON_RIGHT_PADDLE2 ,
  CONTROLLER_BUTTON_TOUCHPAD , CONTROLLER_AXIS_LEFT_STICK_UP , CONTROLLER_AXIS_LEFT_STICK_DOWN , CONTROLLER_AXIS_LEFT_STICK_LEFT ,
  CONTROLLER_AXIS_LEFT_STICK_RIGHT , CONTROLLER_AXIS_RIGHT_STICK_UP , CONTROLLER_AXIS_RIGHT_STICK_DOWN , CONTROLLER_AXIS_RIGHT_STICK_LEFT ,
  CONTROLLER_AXIS_RIGHT_STICK_RIGHT , CONTROLLER_AXIS_LEFT_TRIGGER , CONTROLLER_AXIS_RIGHT_TRIGGER , TOUCH_FINGER_TAP ,
  TOUCH_FINGER_PRESSURE , TOUCH_FINGER_MOTION_UP , TOUCH_FINGER_MOTION_DOWN , TOUCH_FINGER_MOTION_LEFT ,
  TOUCH_FINGER_MOTION_RIGHT , PINCH_FINGERS , PINCH_FINGERS_MOTION_TOGETHER , PINCH_FINGERS_MOTION_APART
}
 General identifier for a specific control on a physical input device, such as a certain keyboard key, mouse button or joystick axis. More...
enum class  KeyCode : uint32_t {
  UNKNOWN = 0x00000000 , RETURN = 0x0000000D , ESCAPE = 0x0000001B , BACKSPACE = 0x00000008 ,
  TAB = 0x00000009 , SPACE = 0x00000020 , EXCLAMATION_POINT = 0x00000021 , DOUBLE_QUOTATION_MARK = 0x00000022 ,
  HASH = 0x00000023 , DOLLAR = 0x00000024 , PERCENT = 0x00000025 , AMPERSAND = 0x00000026 ,
  APOSTROPHE = 0x00000027 , LEFT_PARENTHESIS = 0x00000028 , RIGHT_PARENTHESIS = 0x00000029 , ASTERISK = 0x0000002A ,
  PLUS = 0x0000002B , COMMA = 0x0000002C , MINUS = 0x0000002D , PERIOD = 0x0000002E ,
  SLASH = 0x0000002F , ZERO = 0x00000030 , ONE = 0x00000031 , TWO = 0x00000032 ,
  THREE = 0x00000033 , FOUR = 0x00000034 , FIVE = 0x00000035 , SIX = 0x00000036 ,
  SEVEN = 0x00000037 , EIGHT = 0x00000038 , NINE = 0x00000039 , COLON = 0x0000003A ,
  SEMICOLON = 0x0000003B , LESS_THAN = 0x0000003C , EQUALS = 0x0000003D , GREATER_THAN = 0x0000003E ,
  QUESTION_MARK = 0x0000003F , AT = 0x00000040 , LEFT_BRACKET = 0x0000005B , BACKSLASH = 0x0000005C ,
  RIGHT_BRACKET = 0x0000005D , CARET = 0x0000005E , UNDERSCORE = 0x0000005F , GRAVE_ACCENT = 0x00000060 ,
  A = 0x00000061 , B = 0x00000062 , C = 0x00000063 , D = 0x00000064 ,
  E = 0x00000065 , F = 0x00000066 , G = 0x00000067 , H = 0x00000068 ,
  I = 0x00000069 , J = 0x0000006A , K = 0x0000006B , L = 0x0000006C ,
  M = 0x0000006D , N = 0x0000006E , O = 0x0000006F , P = 0x00000070 ,
  Q = 0x00000071 , R = 0x00000072 , S = 0x00000073 , T = 0x00000074 ,
  U = 0x00000075 , V = 0x00000076 , W = 0x00000077 , X = 0x00000078 ,
  Y = 0x00000079 , Z = 0x0000007A , LEFT_BRACE = 0x0000007B , PIPE = 0x0000007C ,
  RIGHT_BRACE = 0x0000007D , TILDE = 0x0000007E , DEL = 0x0000007F , PLUS_MINUS = 0x000000B1 ,
  CAPS_LOCK = 0x40000039 , F1 = 0x4000003A , F2 = 0x4000003B , F3 = 0x4000003C ,
  F4 = 0x4000003D , F5 = 0x4000003E , F6 = 0x4000003F , F7 = 0x40000040 ,
  F8 = 0x40000041 , F9 = 0x40000042 , F10 = 0x40000043 , F11 = 0x40000044 ,
  F12 = 0x40000045 , PRINT_SCREEN = 0x40000046 , SCROLL_LOCK = 0x40000047 , PAUSE = 0x40000048 ,
  INSERT = 0x40000049 , HOME = 0x4000004A , PAGE_UP = 0x4000004B , END = 0x4000004D ,
  PAGE_DOWN = 0x4000004E , RIGHT_ARROW = 0x4000004F , LEFT_ARROW = 0x40000050 , DOWN_ARROW = 0x40000051 ,
  UP_ARROW = 0x40000052 , NUM_LOCK = 0x40000053 , NUMPAD_DIVIDE = 0x40000054 , NUMPAD_MULTIPLY = 0x40000055 ,
  NUMPAD_MINUS = 0x40000056 , NUMPAD_PLUS = 0x40000057 , NUMPAD_ENTER = 0x40000058 , NUMPAD_ONE = 0x40000059 ,
  NUMPAD_TWO = 0x4000005A , NUMPAD_THREE = 0x4000005B , NUMPAD_FOUR = 0x4000005C , NUMPAD_FIVE = 0x4000005D ,
  NUMPAD_SIX = 0x4000005E , NUMPAD_SEVEN = 0x4000005F , NUMPAD_EIGHT = 0x40000060 , NUMPAD_NINE = 0x40000061 ,
  NUMPAD_ZERO = 0x40000062 , NUMPAD_PERIOD = 0x40000063 , APPLICATION = 0x40000065 , POWER = 0x40000066 ,
  NUMPAD_EQUALS = 0x40000067 , F13 = 0x40000068 , F14 = 0x40000069 , F15 = 0x4000006A ,
  F16 = 0x4000006B , F17 = 0x4000006C , F18 = 0x4000006D , F19 = 0x4000006E ,
  F20 = 0x4000006F , F21 = 0x40000070 , F22 = 0x40000071 , F23 = 0x40000072 ,
  F24 = 0x40000073 , EXECUTE = 0x40000074 , HELP = 0x40000075 , MENU = 0x40000076 ,
  SELECT = 0x40000077 , STOP = 0x40000078 , AGAIN = 0x40000079 , UNDO = 0x4000007A ,
  CUT = 0x4000007B , COPY = 0x4000007C , PASTE = 0x4000007D , FIND = 0x4000007E ,
  MUTE = 0x4000007F , VOLUME_UP = 0x40000080 , VOLUME_DOWN = 0x40000081 , NUMPAD_COMMA = 0x40000085 ,
  NUMPAD_EQUALS_AS400 = 0x40000086 , ALTERNATE_ERASE = 0x40000099 , SYS_REQ = 0x4000009A , CANCEL = 0x4000009B ,
  CLEAR = 0x4000009C , PRIOR = 0x4000009D , RETURN2 = 0x4000009E , SEPARATOR = 0x4000009F ,
  OUT_ = 0x400000A0 , OPER = 0x400000A1 , CLEAR_AGAIN = 0x400000A2 , CR_SEL = 0x400000A3 ,
  EX_SEL = 0x400000A4 , FRONT = 0x400000A5 , NUMPAD_00 = 0x400000B0 , NUMPAD_000 = 0x400000B1 ,
  THOUSANDS_SEPARATOR = 0x400000B2 , DECIMAL_SEPARATOR = 0x400000B3 , CURRENCY_UNIT = 0x400000B4 , CURRENCY_SUB_UNIT = 0x400000B5 ,
  NUMPAD_LEFT_PARENTHESIS = 0x400000B6 , NUMPAD_RIGHT_PARENTHESIS = 0x400000B7 , NUMPAD_LEFT_BRACE = 0x400000B8 , NUMPAD_RIGHT_BRACE = 0x400000B9 ,
  NUMPAD_TAB = 0x400000BA , NUMPAD_BACKSPACE = 0x400000BB , NUMPAD_A = 0x400000BC , NUMPAD_B = 0x400000BD ,
  NUMPAD_C = 0x400000BE , NUMPAD_D = 0x400000BF , NUMPAD_E = 0x400000C0 , NUMPAD_F = 0x400000C1 ,
  NUMPAD_XOR = 0x400000C2 , NUMPAD_POWER = 0x400000C3 , NUMPAD_PERCENT = 0x400000C4 , NUMPAD_LESS_THAN = 0x400000C5 ,
  NUMPAD_GREATER_THAN = 0x400000C6 , NUMPAD_AMPERSAND = 0x400000C7 , NUMPAD_DOUBLE_AMPERSAND = 0x400000C8 , NUMPAD_VERTICALBAR = 0x400000C9 ,
  NUMPAD_DOUBLE_VERTICAL_BAR = 0x400000CA , NUMPAD_COLON = 0x400000CB , NUMPAD_HASH = 0x400000CC , NUMPAD_SPACE = 0x400000CD ,
  NUMPAD_AT = 0x400000CE , NUMPAD_EXCLAMATION_POINT = 0x400000CF , NUMPAD_MEMORY_STORE = 0x400000D0 , NUMPAD_MEMORY_RECALL = 0x400000D1 ,
  NUMPAD_MEMORY_CLEAR = 0x400000D2 , NUMPAD_MEMORY_ADD = 0x400000D3 , NUMPAD_MEMORY_SUBTRACT = 0x400000D4 , NUMPAD_MEMORY_MULTIPLY = 0x400000D5 ,
  NUMPAD_MEMORY_DIVIDE = 0x400000D6 , NUMPAD_PLUS_MINUS = 0x400000D7 , NUMPAD_CLEAR = 0x400000D8 , NUMPAD_CLEAR_ENTRY = 0x400000D9 ,
  NUMPAD_BINARY = 0x400000DA , NUMPAD_OCTAL = 0x400000DB , NUMPAD_DECIMAL = 0x400000DC , NUMPAD_HEXADECIMAL = 0x400000DD ,
  LEFT_CONTROL = 0x400000E0 , LEFT_SHIFT = 0x400000E1 , LEFT_ALT = 0x400000E2 , LEFT_GUI = 0x400000E3 ,
  RIGHT_CONTROL = 0x400000E4 , RIGHT_SHIFT = 0x400000E5 , RIGHT_ALT = 0x400000E6 , RIGHT_GUI = 0x400000E7 ,
  MODE = 0x40000101 , SLEEP = 0x40000102 , WAKE = 0x40000103 , CHANNEL_INCREMENT = 0x40000104 ,
  CHANNEL_DECREMENT = 0x40000105 , MEDIA_PLAY = 0x40000106 , MEDIA_PAUSE = 0x40000107 , MEDIA_RECORD = 0x40000108 ,
  MEDIA_FAST_FORWARD = 0x40000109 , MEDIA_REWIND = 0x4000010A , MEDIA_NEXT_TRACK = 0x4000010B , MEDIA_PREVIOUS_TRACK = 0x4000010C ,
  MEDIA_STOP = 0x4000010D , MEDIA_EJECT = 0x4000010E , MEDIA_PLAY_PAUSE = 0x4000010F , MEDIA_SELECT = 0x40000110 ,
  AC_NEW = 0x40000111 , AC_OPEN = 0x40000112 , AC_CLOSE = 0x40000113 , AC_EXIT = 0x40000114 ,
  AC_SAVE = 0x40000115 , AC_PRINT = 0x40000116 , AC_PROPERTIES = 0x40000117 , AC_SEARCH = 0x40000118 ,
  AC_HOME = 0x40000119 , AC_BACK = 0x4000011A , AC_FORWARD = 0x4000011B , AC_STOP = 0x4000011C ,
  AC_REFRESH = 0x4000011D , AC_BOOKMARKS = 0x4000011E , SOFT_LEFT = 0x4000011F , SOFT_RIGHT = 0x40000120 ,
  CALL = 0x40000121 , END_CALL = 0x40000122 , LEFT_TAB = 0x20000001 , LEVEL5_SHIFT = 0x20000002 ,
  MULTI_KEY_COMPOSE = 0x20000003 , LEFT_META = 0x20000004 , RIGHT_META = 0x20000005 , LEFT_HYPER = 0x20000006 ,
  RIGHT_HYPER = 0x20000007
}
 Number corresponding to an abstract keyboard key that was translated from its physical location based on the current OS-level key mapping. More...
enum class  Scancode : uint16_t {
  UNKNOWN = 0 , A = 0x04 , B = 0x05 , C = 0x06 ,
  D = 0x07 , E = 0x08 , F = 0x09 , G = 0x0A ,
  H = 0x0B , I = 0x0C , J = 0x0D , K = 0x0E ,
  L = 0x0F , M = 0x10 , N = 0x11 , O = 0x12 ,
  P = 0x13 , Q = 0x14 , R = 0x15 , S = 0x16 ,
  T = 0x17 , U = 0x18 , V = 0x19 , W = 0x1A ,
  X = 0x1B , Y = 0x1C , Z = 0x1D , ONE = 0x1E ,
  TWO = 0x1F , THREE = 0x20 , FOUR = 0x21 , FIVE = 0x22 ,
  SIX = 0x23 , SEVEN = 0x24 , EIGHT = 0x25 , NINE = 0x26 ,
  ZERO = 0x27 , RETURN = 0x28 , ESCAPE = 0x29 , BACKSPACE = 0x2A ,
  TAB = 0x2B , SPACE = 0x2C , MINUS = 0x2D , EQUALS = 0x2E ,
  LEFT_BRACKET = 0x2F , RIGHT_BRACKET = 0x30 , BACKSLASH = 0x31 , NON_US_HASH = 0x32 ,
  SEMICOLON = 0x33 , APOSTROPHE = 0x34 , GRAVE_ACCENT = 0x35 , COMMA = 0x36 ,
  PERIOD = 0x37 , SLASH = 0x38 , CAPS_LOCK = 0x39 , F1 = 0x3A ,
  F2 = 0x3B , F3 = 0x3C , F4 = 0x3D , F5 = 0x3E ,
  F6 = 0x3F , F7 = 0x40 , F8 = 0x41 , F9 = 0x42 ,
  F10 = 0x43 , F11 = 0x44 , F12 = 0x45 , PRINT_SCREEN = 0x46 ,
  SCROLL_LOCK = 0x47 , PAUSE = 0x48 , INSERT = 0x49 , HOME = 0x4A ,
  PAGE_UP = 0x4B , DEL = 0x4C , END = 0x4D , PAGE_DOWN = 0x4E ,
  RIGHT_ARROW = 0x4F , LEFT_ARROW = 0x50 , DOWN_ARROW = 0x51 , UP_ARROW = 0x52 ,
  NUM_LOCK = 0x53 , NUMPAD_DIVIDE = 0x54 , NUMPAD_MULTIPLY = 0x55 , NUMPAD_MINUS = 0x56 ,
  NUMPAD_PLUS = 0x57 , NUMPAD_ENTER = 0x58 , NUMPAD_ONE = 0x59 , NUMPAD_TWO = 0x5A ,
  NUMPAD_THREE = 0x5B , NUMPAD_FOUR = 0x5C , NUMPAD_FIVE = 0x5D , NUMPAD_SIX = 0x5E ,
  NUMPAD_SEVEN = 0x5F , NUMPAD_EIGHT = 0x60 , NUMPAD_NINE = 0x61 , NUMPAD_ZERO = 0x62 ,
  NUMPAD_PERIOD = 0x63 , NON_US_BACKSLASH = 0x64 , APPLICATION = 0x65 , POWER = 0x66 ,
  NUMPAD_EQUALS = 0x67 , F13 = 0x68 , F14 = 0x69 , F15 = 0x6A ,
  F16 = 0x6B , F17 = 0x6C , F18 = 0x6D , F19 = 0x6E ,
  F20 = 0x6F , F21 = 0x70 , F22 = 0x71 , F23 = 0x72 ,
  F24 = 0x73 , EXECUTE = 0x74 , HELP = 0x75 , MENU = 0x76 ,
  SELECT = 0x77 , STOP = 0x78 , AGAIN = 0x79 , UNDO = 0x7A ,
  CUT = 0x7B , COPY = 0x7C , PASTE = 0x7D , FIND = 0x7E ,
  MUTE = 0x7F , VOLUME_UP = 0x80 , VOLUME_DOWN = 0x81 , NUMPAD_COMMA = 0x85 ,
  NUMPAD_EQUALS_AS400 = 0x86 , INTERNATIONAL1 = 0x87 , INTERNATIONAL2 = 0x88 , INTERNATIONAL3 = 0x89 ,
  INTERNATIONAL4 = 0x8A , INTERNATIONAL5 = 0x8B , INTERNATIONAL6 = 0x8C , INTERNATIONAL7 = 0x8D ,
  INTERNATIONAL8 = 0x8E , INTERNATIONAL9 = 0x8F , LANG1 = 0x90 , LANG2 = 0x91 ,
  LANG3 = 0x92 , LANG4 = 0x93 , LANG5 = 0x94 , LANG6 = 0x95 ,
  LANG7 = 0x96 , LANG8 = 0x97 , LANG9 = 0x98 , ALTERNATE_ERASE = 0x99 ,
  SYS_REQ = 0x9A , CANCEL = 0x9B , CLEAR = 0x9C , PRIOR = 0x9D ,
  RETURN2 = 0x9E , SEPARATOR = 0x9F , OUT_ = 0xA0 , OPER = 0xA1 ,
  CLEAR_AGAIN = 0xA2 , CR_SEL = 0xA3 , EX_SEL = 0xA4 , FRONT = 0xA5 ,
  NUMPAD_00 = 0xB0 , NUMPAD_000 = 0xB1 , THOUSANDS_SEPARATOR = 0xB2 , DECIMAL_SEPARATOR = 0xB3 ,
  CURRENCY_UNIT = 0xB4 , CURRENCY_SUB_UNIT = 0xB5 , NUMPAD_LEFT_PARENTHESIS = 0xB6 , NUMPAD_RIGHT_PARENTHESIS = 0xB7 ,
  NUMPAD_LEFT_BRACE = 0xB8 , NUMPAD_RIGHT_BRACE = 0xB9 , NUMPAD_TAB = 0xBA , NUMPAD_BACKSPACE = 0xBB ,
  NUMPAD_A = 0xBC , NUMPAD_B = 0xBD , NUMPAD_C = 0xBE , NUMPAD_D = 0xBF ,
  NUMPAD_E = 0xC0 , NUMPAD_F = 0xC1 , NUMPAD_XOR = 0xC2 , NUMPAD_POWER = 0xC3 ,
  NUMPAD_PERCENT = 0xC4 , NUMPAD_LESS_THAN = 0xC5 , NUMPAD_GREATER_THAN = 0xC6 , NUMPAD_AMPERSAND = 0xC7 ,
  NUMPAD_DOUBLE_AMPERSAND = 0xC8 , NUMPAD_VERTICAL_BAR = 0xC9 , NUMPAD_DOUBLE_VERTICAL_BAR = 0xCA , NUMPAD_COLON = 0xCB ,
  NUMPAD_HASH = 0xCC , NUMPAD_SPACE = 0xCD , NUMPAD_AT = 0xCE , NUMPAD_EXCLAMATION_POINT = 0xCF ,
  NUMPAD_MEMORY_STORE = 0xD0 , NUMPAD_MEMORY_RECALL = 0xD1 , NUMPAD_MEMORY_CLEAR = 0xD2 , NUMPAD_MEMORY_ADD = 0xD3 ,
  NUMPAD_MEMORY_SUBTRACT = 0xD4 , NUMPAD_MEMORY_MULTIPLY = 0xD5 , NUMPAD_MEMORY_DIVIDE = 0xD6 , NUMPAD_PLUS_MINUS = 0xD7 ,
  NUMPAD_CLEAR = 0xD8 , NUMPAD_CLEAR_ENTRY = 0xD9 , NUMPAD_BINARY = 0xDA , NUMPAD_OCTAL = 0xDB ,
  NUMPAD_DECIMAL = 0xDC , NUMPAD_HEXADECIMAL = 0xDD , LEFT_CONTROL = 0xE0 , LEFT_SHIFT = 0xE1 ,
  LEFT_ALT = 0xE2 , LEFT_GUI = 0xE3 , RIGHT_CONTROL = 0xE4 , RIGHT_SHIFT = 0xE5 ,
  RIGHT_ALT = 0xE6 , RIGHT_GUI = 0xE7 , MODE = 257 , SLEEP = 258 ,
  WAKE = 259 , CHANNEL_INCREMENT = 260 , CHANNEL_DECREMENT = 261 , MEDIA_PLAY = 262 ,
  MEDIA_PAUSE = 263 , MEDIA_RECORD = 264 , MEDIA_FAST_FORWARD = 265 , MEDIA_REWIND = 266 ,
  MEDIA_NEXT_TRACK = 267 , MEDIA_PREVIOUS_TRACK = 268 , MEDIA_STOP = 269 , MEDIA_EJECT = 270 ,
  MEDIA_PLAY_PAUSE = 271 , MEDIA_SELECT = 272 , AC_NEW = 273 , AC_OPEN = 274 ,
  AC_CLOSE = 275 , AC_EXIT = 276 , AC_SAVE = 277 , AC_PRINT = 278 ,
  AC_PROPERTIES = 279 , AC_SEARCH = 280 , AC_HOME = 281 , AC_BACK = 282 ,
  AC_FORWARD = 283 , AC_STOP = 284 , AC_REFRESH = 285 , AC_BOOKMARKS = 286 ,
  SOFT_LEFT = 287 , SOFT_RIGHT = 288 , CALL = 289 , END_CALL = 290
}
 Number corresponding to a physical keyboard key location, ignoring the OS-level key mapping. More...
enum class  KeyModifier : uint16_t {
  LEFT_SHIFT = 1 << 0 , RIGHT_SHIFT = 1 << 1 , LEFT_CONTROL = 1 << 6 , RIGHT_CONTROL = 1 << 7 ,
  LEFT_ALT = 1 << 8 , RIGHT_ALT = 1 << 9 , LEFT_GUI = 1 << 10 , RIGHT_GUI = 1 << 11 ,
  NUM_LOCK = 1 << 12 , CAPS_LOCK = 1 << 13 , MODE = 1 << 14 , SCROLL_LOCK = 1 << 15
}
 Key modifier. More...
enum class  MouseButton : uint8_t {
  LEFT = 1 , MIDDLE = 2 , RIGHT = 3 , BACK = 4 ,
  FORWARD = 5
}
 Physical mouse button identifier. More...
enum class  MessageType : uint8_t { ERROR_MESSAGE , WARNING_MESSAGE , INFO_MESSAGE }
 Type of message contained in a message box. More...

Functions

constexpr size_t getInputIndex (Input input) noexcept
 Get the 0-based index of an Input.
constexpr StringView getInputIdentifier (Input input) noexcept
 Get the identifier string of an Input, e.g.
constexpr StringView getInputString (Input input) noexcept
 Get a short human-readable string description of an Input in English, e.g. "K", "Left Click" or "Right Shoulder Button".
constexpr Input findInputByIdentifier (StringView identifier) noexcept
 Find the Input corresponding to a given identifier.
constexpr KeyModifiers operator~ (KeyModifier a) noexcept
 Get the complement of a key modifier.
constexpr KeyModifiers operator| (KeyModifier a, KeyModifier b) noexcept
 Get the union of two key modifiers.

Variables

constexpr size_t INPUT_COUNT
 Total number of inputs that exist in the Input enumeration.

Enumeration Type Documentation

◆ ControllerType

enum class grem::events::ControllerType : uint8_t
strong

Common controller type categories.

Useful for deciding which button prompts to show, or as a hint for which inputs are available, etc.

Enumerator
UNKNOWN 

Unknown controller type.

STANDARD 

Standard controller type.

XBOX_360 

Microsoft Xbox 360-like controller.

XBOX_ONE 

Microsoft Xbox One-like controller.

PS3 

Sony Playstation 3-like controller.

PS4 

Sony Playstation 4-like controller.

PS5 

Sony Playstation 5-like controller.

SWITCH_PRO 

Nintendo Switch Pro-like controller.

SWITCH_JOYCON_LEFT 

Nintendo Switch Left Joycon-like controller.

SWITCH_JOYCON_RIGHT 

Nintendo Switch Right Joycon-like controller.

SWITCH_JOYCON_PAIR 

Nintendo Switch Joycon Pair-like controller.

GAMECUBE 

Nintendo Gamecube-like controller.

STEAM 

Steam Controller-like controller.

◆ ControllerButton

enum class grem::events::ControllerButton : uint8_t
strong

Physical controller button identifier.

Enumerator
SOUTH 

South face button (A/Cross).

EAST 

East face button (B/Circle).

WEST 

West face button (X/Square).

NORTH 

North face button (Y/Triangle).

SELECT 

Select button (Select/View/Share).

GUIDE 

Guide button.

START 

Start button (Start/Menu/Options).

LEFT_STICK 

Left analog stick button (L Stick/L3).

RIGHT_STICK 

Right analog stick button (R Stick/R3).

LEFT_SHOULDER 

Left shoulder button (L Bumper/L1).

RIGHT_SHOULDER 

Right shoulder button (R Bumper/R1).

DPAD_UP 

D-pad up.

DPAD_DOWN 

D-pad down.

DPAD_LEFT 

D-pad left.

DPAD_RIGHT 

D-pad right.

MISC1 

Misc1 button.

LEFT_PADDLE1 

Left paddle 1.

RIGHT_PADDLE1 

Right paddle 1.

LEFT_PADDLE2 

Left paddle 2.

RIGHT_PADDLE2 

Right paddle 2.

TOUCHPAD 

Touchpad button.

◆ ControllerAxis

enum class grem::events::ControllerAxis : uint8_t
strong

Physical controller axis identifier.

Enumerator
LEFT_STICK_X 

Horizontal movement of the left analog stick.

LEFT_STICK_Y 

Vertical movement of the left analog stick.

RIGHT_STICK_X 

Horizontal movement of the right analog stick.

RIGHT_STICK_Y 

Vertical movement of the right analog stick.

LEFT_TRIGGER 

Movement of the left trigger.

RIGHT_TRIGGER 

Movement of the right trigger.

INVALID 

Invalid axis.

◆ CursorStyle

enum class grem::events::CursorStyle : uint8_t
strong

Visual mouse cursor style.

Enumerator
DEFAULT 

Default cursor. Usually an arrow.

TEXT 

Text selection cursor. Usually an I-beam.

WAIT 

Waiting cursor. Usually an hourglass, watch or spinning ball.

CROSSHAIR 

Crosshair cursor.

PROGRESS 

Waiting cursor indicating that the app is still interactive. Usually WAIT with an arrow.

RESIZE_DIAGONAL_NW_SE 

Diagonal double arrow cursor pointing northwest and southeast.

RESIZE_DIAGONAL_NE_SW 

Diagonal double arrow cursor pointing northeast and southwest.

RESIZE_HORIZONTAL 

Horizontal double arrow cursor pointing east and west.

RESIZE_VERTICAL 

Vertical double arrow cursor pointing north and south.

MOVE 

Four-pointed arrow cursor.

NOT_ALLOWED 

Not allowed cursor. Usually a slashed circle or crossbones.

POINTER 

Pointer cursor that indicates a link. Usually a pointing hand.

RESIZE_NW 

Diagonal double arrow cursor pointing northwest. May be a single or double arrow.

RESIZE_N 

Diagonal double arrow cursor pointing north. May be a single or double arrow.

RESIZE_NE 

Diagonal double arrow cursor pointing northeast. May be a single or double arrow.

RESIZE_E 

Diagonal double arrow cursor pointing east. May be a single or double arrow.

RESIZE_SW 

Diagonal double arrow cursor pointing southwest. May be a single or double arrow.

RESIZE_S 

Diagonal double arrow cursor pointing south. May be a single or double arrow.

RESIZE_SE 

Diagonal double arrow cursor pointing southeast. May be a single or double arrow.

RESIZE_W 

Diagonal double arrow cursor pointing west. May be a single or double arrow.

◆ Input

enum class grem::events::Input : uint8_t
strong

General identifier for a specific control on a physical input device, such as a certain keyboard key, mouse button or joystick axis.

Enumerator
UNKNOWN 

Unknown input.

KEY_A 

Keyboard A key.

KEY_B 

Keyboard B key.

KEY_C 

Keyboard C key.

KEY_D 

Keyboard D key.

KEY_E 

Keyboard E key.

KEY_F 

Keyboard F key.

KEY_G 

Keyboard G key.

KEY_H 

Keyboard H key.

KEY_I 

Keyboard I key.

KEY_J 

Keyboard J key.

KEY_K 

Keyboard K key.

KEY_L 

Keyboard L key.

KEY_M 

Keyboard M key.

KEY_N 

Keyboard N key.

KEY_O 

Keyboard O key.

KEY_P 

Keyboard P key.

KEY_Q 

Keyboard Q key.

KEY_R 

Keyboard R key.

KEY_S 

Keyboard S key.

KEY_T 

Keyboard T key.

KEY_U 

Keyboard U key.

KEY_V 

Keyboard V key.

KEY_W 

Keyboard W key.

KEY_X 

Keyboard GREM_X_MACRO key.

KEY_Y 

Keyboard Y key.

KEY_Z 

Keyboard Z key.

KEY_1 

Keyboard 1 key.

KEY_2 

Keyboard 2 key.

KEY_3 

Keyboard 3 key.

KEY_4 

Keyboard 4 key.

KEY_5 

Keyboard 5 key.

KEY_6 

Keyboard 6 key.

KEY_7 

Keyboard 7 key.

KEY_8 

Keyboard 8 key.

KEY_9 

Keyboard 9 key.

KEY_0 

Keyboard 0 key.

KEY_ESCAPE 

Keyboard escape key.

KEY_LEFT_CONTROL 

Keyboard left control key.

KEY_RIGHT_CONTROL 

Keyboard right control key.

KEY_LEFT_SHIFT 

Keyboard left shift key.

KEY_RIGHT_SHIFT 

Keyboard right shift key.

KEY_LEFT_ALT 

Keyboard left alt key.

KEY_RIGHT_ALT 

Keyboard right alt key.

KEY_MENU 

Keyboard menu key.

KEY_LEFT_BRACKET 

Keyboard [ key.

KEY_RIGHT_BRACKET 

Keyboard ] key.

KEY_SEMICOLON 

Keyboard ; key.

KEY_COMMA 

Keyboard , key.

KEY_PERIOD 

Keyboard . key.

KEY_APOSTROPHE 

Keyboard ' key.

KEY_SLASH 

Keyboard / key.

KEY_BACKSLASH 

Keyboard \ key.

KEY_GRAVE_ACCENT 

Keyboard ` key.

KEY_NON_US_BACKSLASH 

Keyboard < key (ISO layout only), AKA "non-US backslash".

KEY_EQUALS 

Keyboard = key.

KEY_MINUS 

Keyboard - key.

KEY_SPACE 

Keyboard space key.

KEY_RETURN 

Keyboard return key.

KEY_BACKSPACE 

Keyboard backspace key.

KEY_TAB 

Keyboard tab key.

KEY_PAGE_UP 

Keyboard page up key.

KEY_PAGE_DOWN 

Keyboard page down key.

KEY_END 

Keyboard end key.

KEY_HOME 

Keyboard home key.

KEY_INSERT 

Keyboard insert key.

KEY_DELETE 

Keyboard delete key.

KEY_ARROW_UP 

Keyboard up arrow key.

KEY_ARROW_DOWN 

Keyboard down arrow key.

KEY_ARROW_LEFT 

Keyboard left arrow key.

KEY_ARROW_RIGHT 

Keyboard right arrow key.

KEY_NUMPAD_PLUS 

Keyboard numpad + key.

KEY_NUMPAD_MINUS 

Keyboard numpad - key.

KEY_NUMPAD_MULTIPLY 

Keyboard numpad * key.

KEY_NUMPAD_DIVIDE 

Keyboard numpad / key.

KEY_NUMPAD_1 

Keyboard numpad 1 key.

KEY_NUMPAD_2 

Keyboard numpad 2 key.

KEY_NUMPAD_3 

Keyboard numpad 3 key.

KEY_NUMPAD_4 

Keyboard numpad 4 key.

KEY_NUMPAD_5 

Keyboard numpad 5 key.

KEY_NUMPAD_6 

Keyboard numpad 6 key.

KEY_NUMPAD_7 

Keyboard numpad 7 key.

KEY_NUMPAD_8 

Keyboard numpad 8 key.

KEY_NUMPAD_9 

Keyboard numpad 9 key.

KEY_NUMPAD_0 

Keyboard numpad 0 key.

KEY_F1 

Keyboard F1 key.

KEY_F2 

Keyboard F2 key.

KEY_F3 

Keyboard F3 key.

KEY_F4 

Keyboard F4 key.

KEY_F5 

Keyboard F5 key.

KEY_F6 

Keyboard F6 key.

KEY_F7 

Keyboard F7 key.

KEY_F8 

Keyboard F8 key.

KEY_F9 

Keyboard F9 key.

KEY_F10 

Keyboard F10 key.

KEY_F11 

Keyboard F11 key.

KEY_F12 

Keyboard F12 key.

KEY_F13 

Keyboard F13 key.

KEY_F14 

Keyboard F14 key.

KEY_F15 

Keyboard F15 key.

KEY_PRINT_SCREEN 

Keyboard PrtSc key.

KEY_SCROLL_LOCK 

Keyboard Scroll Lock key.

KEY_PAUSE 

Keyboard Pause key.

MOUSE_BUTTON_LEFT 

Mouse left click.

MOUSE_BUTTON_RIGHT 

Mouse right click.

MOUSE_BUTTON_MIDDLE 

Mouse middle click.

MOUSE_BUTTON_BACK 

Mouse back button.

MOUSE_BUTTON_FORWARD 

Mouse forward button.

MOUSE_SCROLL_UP 

Mouse scroll wheel upward movement.

MOUSE_SCROLL_DOWN 

Mouse scroll wheel downward movement.

MOUSE_SCROLL_LEFT 

Mouse scroll wheel leftward movement.

MOUSE_SCROLL_RIGHT 

Mouse scroll wheel rightward movement.

MOUSE_MOTION_UP 

Mouse up movement.

MOUSE_MOTION_DOWN 

Mouse down movement.

MOUSE_MOTION_LEFT 

Mouse left movement.

MOUSE_MOTION_RIGHT 

Mouse right movement.

CONTROLLER_BUTTON_SOUTH 

Controller south face button (A/Cross).

CONTROLLER_BUTTON_EAST 

Controller east face button (B/Circle).

CONTROLLER_BUTTON_WEST 

Controller west face button (GREM_X_MACRO/Square).

CONTROLLER_BUTTON_NORTH 

Controller north face button (Y/Triangle).

CONTROLLER_BUTTON_SELECT 

Controller select button (Select/View/Share).

CONTROLLER_BUTTON_GUIDE 

Controller guide button.

CONTROLLER_BUTTON_START 

Controller start button (Start/Menu/Options).

CONTROLLER_BUTTON_LEFT_STICK 

Controller left analog stick button (L Stick/L3).

CONTROLLER_BUTTON_RIGHT_STICK 

Controller right analog stick button (R Stick/R3).

CONTROLLER_BUTTON_LEFT_SHOULDER 

Controller left shoulder button (L Bumper/L1).

CONTROLLER_BUTTON_RIGHT_SHOULDER 

Controller right shoulder button (R Bumper/R1).

CONTROLLER_BUTTON_DPAD_UP 

Controller D-pad up.

CONTROLLER_BUTTON_DPAD_DOWN 

Controller D-pad down.

CONTROLLER_BUTTON_DPAD_LEFT 

Controller D-pad left.

CONTROLLER_BUTTON_DPAD_RIGHT 

Controller D-pad right.

CONTROLLER_BUTTON_MISC1 

Controller misc1 button.

CONTROLLER_BUTTON_LEFT_PADDLE1 

Controller left paddle 1.

CONTROLLER_BUTTON_RIGHT_PADDLE1 

Controller right paddle 1.

CONTROLLER_BUTTON_LEFT_PADDLE2 

Controller left paddle 2.

CONTROLLER_BUTTON_RIGHT_PADDLE2 

Controller right paddle 2.

CONTROLLER_BUTTON_TOUCHPAD 

Controller touchpad button.

CONTROLLER_AXIS_LEFT_STICK_UP 

Controller left analog stick upward movement.

CONTROLLER_AXIS_LEFT_STICK_DOWN 

Controller left analog stick downward movement.

CONTROLLER_AXIS_LEFT_STICK_LEFT 

Controller left analog stick leftward movement.

CONTROLLER_AXIS_LEFT_STICK_RIGHT 

Controller left analog stick rightward movement.

CONTROLLER_AXIS_RIGHT_STICK_UP 

Controller right analog stick upward movement.

CONTROLLER_AXIS_RIGHT_STICK_DOWN 

Controller right analog stick downward movement.

CONTROLLER_AXIS_RIGHT_STICK_LEFT 

Controller right analog stick leftward movement.

CONTROLLER_AXIS_RIGHT_STICK_RIGHT 

Controller right analog stick rightward movement.

CONTROLLER_AXIS_LEFT_TRIGGER 

Controller left trigger (L Trigger/L2).

CONTROLLER_AXIS_RIGHT_TRIGGER 

Controller right trigger (R Trigger/R2).

TOUCH_FINGER_TAP 

Finger tap.

TOUCH_FINGER_PRESSURE 

Finger pressure.

TOUCH_FINGER_MOTION_UP 

Finger up movement.

TOUCH_FINGER_MOTION_DOWN 

Finger down movement.

TOUCH_FINGER_MOTION_LEFT 

Finger left movement.

TOUCH_FINGER_MOTION_RIGHT 

Finger right movement.

PINCH_FINGERS 

Finger pinch.

PINCH_FINGERS_MOTION_TOGETHER 

Finger pinch "zoom out" movement.

PINCH_FINGERS_MOTION_APART 

Finger pinch "zoom in" movement.

◆ KeyCode

enum class grem::events::KeyCode : uint32_t
strong

Number corresponding to an abstract keyboard key that was translated from its physical location based on the current OS-level key mapping.

The enumerand values are based on the SDLK_ constants from SDL3, which in turn are based on Unicode code points (when the key corresponds to a character, which can be checked with unicode::isValidCodePoint()).

Note
The list of enumerands is not exhaustive, i.e. there are many possible key codes without an explicit name in this enum.
See also
Scancode
Enumerator
UNKNOWN 

Unknown key.

RETURN 

'\r'

ESCAPE 

'\x1B'

BACKSPACE 

'\b'

TAB 

'\t'

SPACE 

' '

EXCLAMATION_POINT 

'!'

DOUBLE_QUOTATION_MARK 

'"'

HASH 

'#'

DOLLAR 

'$'

PERCENT 

''

AMPERSAND 

'&'

APOSTROPHE 

'\''

LEFT_PARENTHESIS 

'('

RIGHT_PARENTHESIS 

')'

ASTERISK 

'*'

PLUS 

'+'

COMMA 

','

MINUS 

'-'

PERIOD 

'.'

SLASH 

'/'

ZERO 

'0'

ONE 

'1'

TWO 

'2'

THREE 

'3'

FOUR 

'4'

FIVE 

'5'

SIX 

'6'

SEVEN 

'7'

EIGHT 

'8'

NINE 

'9'

COLON 

':'

SEMICOLON 

';'

LESS_THAN 

'<'

EQUALS 

'='

GREATER_THAN 

'>'

QUESTION_MARK 

'?'

AT 

'@'

LEFT_BRACKET 

'['

BACKSLASH 

'\\'

RIGHT_BRACKET 

']'

CARET 

'^'

UNDERSCORE 

'_'

GRAVE_ACCENT 

''`

A 

'a'

B 

'b'

C 

'c'

D 

'd'

E 

'e'

F 

'f'

G 

'g'

H 

'h'

I 

'i'

J 

'j'

K 

'k'

L 

'l'

M 

'm'

N 

'n'

O 

'o'

P 

'p'

Q 

'q'

R 

'r'

S 

's'

T 

't'

U 

'u'

V 

'v'

W 

'w'

X 

'x'

Y 

'y'

Z 

'z'

LEFT_BRACE 

'{'

PIPE 

'|'

RIGHT_BRACE 

'}'

TILDE 

'~'

DEL 

'\x7F'

PLUS_MINUS 

'\xB1'

CAPS_LOCK 

Keyboard Caps Lock.

F1 

Keyboard F1.

F2 

Keyboard F2.

F3 

Keyboard F3.

F4 

Keyboard F4.

F5 

Keyboard F5.

F6 

Keyboard F6.

F7 

Keyboard F7.

F8 

Keyboard F8.

F9 

Keyboard F9.

F10 

Keyboard F10.

F11 

Keyboard F11.

F12 

Keyboard F12.

PRINT_SCREEN 

Keyboard PrintScreen.

SCROLL_LOCK 

Keyboard Scroll Lock.

PAUSE 

Keyboard Pause.

INSERT 

Keyboard Insert.

HOME 

Keyboard Home.

PAGE_UP 

Keyboard PageUp.

END 

Keyboard End.

PAGE_DOWN 

Keyboard PageDown.

RIGHT_ARROW 

Keyboard RightArrow.

LEFT_ARROW 

Keyboard LeftArrow.

DOWN_ARROW 

Keyboard DownArrow.

UP_ARROW 

Keyboard UpArrow.

NUM_LOCK 

Keyboard Num Lock and Clear.

NUMPAD_DIVIDE 

Keypad /.

NUMPAD_MULTIPLY 

Keypad *.

NUMPAD_MINUS 

Keypad -.

NUMPAD_PLUS 

Keypad +.

NUMPAD_ENTER 

Keypad ENTER.

NUMPAD_ONE 

Keypad 1 and End.

NUMPAD_TWO 

Keypad 2 and Down Arrow.

NUMPAD_THREE 

Keypad 3 and PageDn.

NUMPAD_FOUR 

Keypad 4 and Left Arrow.

NUMPAD_FIVE 

Keypad 5.

NUMPAD_SIX 

Keypad 6 and Right Arrow.

NUMPAD_SEVEN 

Keypad 7 and Home.

NUMPAD_EIGHT 

Keypad 8 and Up Arrow.

NUMPAD_NINE 

Keypad 9 and PageUp.

NUMPAD_ZERO 

Keypad 0 and Insert.

NUMPAD_PERIOD 

Keypad . and Delete.

APPLICATION 

Keyboard Application.

POWER 

Keyboard Power.

NUMPAD_EQUALS 

Keypad =.

F13 

Keyboard F13.

F14 

Keyboard F14.

F15 

Keyboard F15.

F16 

Keyboard F16.

F17 

Keyboard F17.

F18 

Keyboard F18.

F19 

Keyboard F19.

F20 

Keyboard F20.

F21 

Keyboard F21.

F22 

Keyboard F22.

F23 

Keyboard F23.

F24 

Keyboard F24.

EXECUTE 

Keyboard Execute.

HELP 

Keyboard Help.

MENU 

Keyboard Menu.

SELECT 

Keyboard Select.

STOP 

Keyboard Stop.

AGAIN 

Keyboard Again.

UNDO 

Keyboard Undo.

CUT 

Keyboard Cut.

COPY 

Keyboard Copy.

PASTE 

Keyboard Paste.

FIND 

Keyboard Find.

MUTE 

Keyboard Mute.

VOLUME_UP 

Keyboard Volume Up.

VOLUME_DOWN 

Keyboard Volume Down.

NUMPAD_COMMA 

Keypad Comma.

NUMPAD_EQUALS_AS400 

Keypad Equal Sign.

ALTERNATE_ERASE 

Keyboard Alternate Erase (Erase-Eaze).

SYS_REQ 

Keyboard SysReq/Attention.

CANCEL 

Keyboard Cancel.

CLEAR 

Keyboard Clear.

PRIOR 

Keyboard Prior.

RETURN2 

Keyboard Return.

SEPARATOR 

Keyboard Separator.

OUT_ 

Keyboard Out.

OPER 

Keyboard Oper.

CLEAR_AGAIN 

Keyboard Clear/Again.

CR_SEL 

Keyboard CrSel/Props.

EX_SEL 

Keyboard ExSel.

FRONT 

Keyboard Front (Sun keyboards).

NUMPAD_00 

Keypad 00.

NUMPAD_000 

Keypad 000.

THOUSANDS_SEPARATOR 

Thousands Separator.

DECIMAL_SEPARATOR 

Decimal Separator.

CURRENCY_UNIT 

Currency Unit.

CURRENCY_SUB_UNIT 

Currency Sub-unit.

NUMPAD_LEFT_PARENTHESIS 

Keypad (.

NUMPAD_RIGHT_PARENTHESIS 

Keypad ).

NUMPAD_LEFT_BRACE 

Keypad {.

NUMPAD_RIGHT_BRACE 

Keypad }.

NUMPAD_TAB 

Keypad Tab.

NUMPAD_BACKSPACE 

Keypad Backspace.

NUMPAD_A 

Keypad A.

NUMPAD_B 

Keypad B.

NUMPAD_C 

Keypad C.

NUMPAD_D 

Keypad D.

NUMPAD_E 

Keypad E.

NUMPAD_F 

Keypad F.

NUMPAD_XOR 

Keypad XOR.

NUMPAD_POWER 

Keypad ^.

NUMPAD_PERCENT 

Keypad %.

NUMPAD_LESS_THAN 

Keypad <.

NUMPAD_GREATER_THAN 

Keypad >.

NUMPAD_AMPERSAND 

Keypad &.

NUMPAD_DOUBLE_AMPERSAND 

Keypad &&.

NUMPAD_VERTICALBAR 

Keypad |.

NUMPAD_DOUBLE_VERTICAL_BAR 

Keypad ||.

NUMPAD_COLON 

Keypad :

NUMPAD_HASH 

Keypad #.

NUMPAD_SPACE 

Keypad Space.

NUMPAD_AT 

Keypad .

NUMPAD_EXCLAMATION_POINT 

Keypad !

NUMPAD_MEMORY_STORE 

Keypad Memory Store.

NUMPAD_MEMORY_RECALL 

Keypad Memory Recall.

NUMPAD_MEMORY_CLEAR 

Keypad Memory Clear.

NUMPAD_MEMORY_ADD 

Keypad Memory Add.

NUMPAD_MEMORY_SUBTRACT 

Keypad Memory Subtract.

NUMPAD_MEMORY_MULTIPLY 

Keypad Memory Multiply.

NUMPAD_MEMORY_DIVIDE 

Keypad Memory Divide.

NUMPAD_PLUS_MINUS 

Keypad +/-.

NUMPAD_CLEAR 

Keypad Clear.

NUMPAD_CLEAR_ENTRY 

Keypad Clear Entry.

NUMPAD_BINARY 

Keypad Binary.

NUMPAD_OCTAL 

Keypad Octal.

NUMPAD_DECIMAL 

Keypad Decimal.

NUMPAD_HEXADECIMAL 

Keypad Hexadecimal.

LEFT_CONTROL 

Keyboard LeftControl.

LEFT_SHIFT 

Keyboard LeftShift.

LEFT_ALT 

Keyboard LeftAlt (Alt, Option).

LEFT_GUI 

Keyboard Left GUI (Windows, Command, Meta).

RIGHT_CONTROL 

Keyboard RightControl.

RIGHT_SHIFT 

Keyboard RightShift.

RIGHT_ALT 

Keyboard RightAlt (Alt Gr, Option).

RIGHT_GUI 

Keyboard Right GUI (Windows, Command, Meta).

MODE 

Mode.

SLEEP 

Sleep.

WAKE 

Wake.

CHANNEL_INCREMENT 

Channel Increment.

CHANNEL_DECREMENT 

Channel Decrement.

MEDIA_PLAY 

Play.

MEDIA_PAUSE 

Pause.

MEDIA_RECORD 

Record.

MEDIA_FAST_FORWARD 

Fast Forward.

MEDIA_REWIND 

Rewind.

MEDIA_NEXT_TRACK 

Next Track.

MEDIA_PREVIOUS_TRACK 

Previous Track.

MEDIA_STOP 

Stop.

MEDIA_EJECT 

Eject.

MEDIA_PLAY_PAUSE 

Play/Pause.

MEDIA_SELECT 

Media Select.

AC_NEW 

AC New.

AC_OPEN 

AC Open.

AC_CLOSE 

AC Close.

AC_EXIT 

AC Exit.

AC_SAVE 

AC Save.

AC_PRINT 

AC Print.

AC_PROPERTIES 

AC Properties.

AC_SEARCH 

AC Search.

AC_HOME 

AC Home.

AC_BACK 

AC Back.

AC_FORWARD 

AC Forward.

AC_STOP 

AC Stop.

AC_REFRESH 

AC Refresh.

AC_BOOKMARKS 

AC Bookmarks.

SOFT_LEFT 

Bottom left multi-function feature key on phones.

SOFT_RIGHT 

Bottom right multi-function feature key on phones.

CALL 

Used for accepting phone calls.

END_CALL 

Used for rejecting phone calls.

LEFT_TAB 

Extended key Left Tab.

LEVEL5_SHIFT 

Extended key Level 5 Shift.

MULTI_KEY_COMPOSE 

Extended key Multi-key Compose.

LEFT_META 

Extended key Left Meta.

RIGHT_META 

Extended key Left Meta.

LEFT_HYPER 

Extended key Left Hyper.

RIGHT_HYPER 

Extended key Left Hyper.

◆ Scancode

enum class grem::events::Scancode : uint16_t
strong

Number corresponding to a physical keyboard key location, ignoring the OS-level key mapping.

The enumerand values are based on the SDL_SCANCODE_ constants from SDL3, which in turn are based on the USB usage page standard: https://usb.org/sites/default/files/hut1_5.pdf

Note
The list of enumerands is not exhaustive, i.e. there are many possible scancodes without an explicit name in this enum.
See also
KeyCode
Enumerator
UNKNOWN 

Unknown key.

A 

Keyboard a and A.

B 

Keyboard b and B.

C 

Keyboard c and C.

D 

Keyboard d and D.

E 

Keyboard e and E.

F 

Keyboard f and F.

G 

Keyboard g and G.

H 

Keyboard h and H.

I 

Keyboard i and I.

J 

Keyboard j and J.

K 

Keyboard k and K.

L 

Keyboard l and L.

M 

Keyboard m and M.

N 

Keyboard n and N.

O 

Keyboard o and O.

P 

Keyboard p and P.

Q 

Keyboard q and Q.

R 

Keyboard r and R.

S 

Keyboard s and S.

T 

Keyboard t and T.

U 

Keyboard u and U.

V 

Keyboard v and V.

W 

Keyboard w and W.

X 

Keyboard x and X.

Y 

Keyboard y and Y.

Z 

Keyboard z and Z.

ONE 

Keyboard 1 and !

TWO 

Keyboard 2 and .

THREE 

Keyboard 3 and #.

FOUR 

Keyboard 4 and $.

FIVE 

Keyboard 5 and %.

SIX 

Keyboard 6 and ^.

SEVEN 

Keyboard 7 and &.

EIGHT 

Keyboard 8 and *.

NINE 

Keyboard 9 and (.

ZERO 

Keyboard 0 and ).

RETURN 

Keyboard Return (ENTER).

ESCAPE 

Keyboard ESCAPE.

BACKSPACE 

Keyboard DELETE (Backspace).

TAB 

Keyboard Tab.

SPACE 

Keyboard Spacebar.

MINUS 

Keyboard - and (underscore).

EQUALS 

Keyboard = and +.

LEFT_BRACKET 

Keyboard [ and {.

RIGHT_BRACKET 

Keyboard ] and }.

BACKSLASH 

Keyboard \ and |.

NON_US_HASH 

Keyboard Non-US # and ~.

SEMICOLON 

Keyboard ; and :

APOSTROPHE 

Keyboard ' and ".

GRAVE_ACCENT 

Keyboard Grave Accent and Tilde.

COMMA 

Keyboard , and <.

PERIOD 

Keyboard . and >.

SLASH 

Keyboard / and ?

CAPS_LOCK 

Keyboard Caps Lock.

F1 

Keyboard F1.

F2 

Keyboard F2.

F3 

Keyboard F3.

F4 

Keyboard F4.

F5 

Keyboard F5.

F6 

Keyboard F6.

F7 

Keyboard F7.

F8 

Keyboard F8.

F9 

Keyboard F9.

F10 

Keyboard F10.

F11 

Keyboard F11.

F12 

Keyboard F12.

PRINT_SCREEN 

Keyboard PrintScreen.

SCROLL_LOCK 

Keyboard Scroll Lock.

PAUSE 

Keyboard Pause.

INSERT 

Keyboard Insert.

HOME 

Keyboard Home.

PAGE_UP 

Keyboard PageUp.

DEL 

Keyboard Delete Forward.

END 

Keyboard End.

PAGE_DOWN 

Keyboard PageDown.

RIGHT_ARROW 

Keyboard RightArrow.

LEFT_ARROW 

Keyboard LeftArrow.

DOWN_ARROW 

Keyboard DownArrow.

UP_ARROW 

Keyboard UpArrow.

NUM_LOCK 

Keypad Num Lock and Clear.

NUMPAD_DIVIDE 

Keypad /.

NUMPAD_MULTIPLY 

Keypad *.

NUMPAD_MINUS 

Keypad -.

NUMPAD_PLUS 

Keypad +.

NUMPAD_ENTER 

Keypad ENTER.

NUMPAD_ONE 

Keypad 1 and End.

NUMPAD_TWO 

Keypad 2 and Down Arrow.

NUMPAD_THREE 

Keypad 3 and PageDn.

NUMPAD_FOUR 

Keypad 4 and Left Arrow.

NUMPAD_FIVE 

Keypad 5.

NUMPAD_SIX 

Keypad 6 and Right Arrow.

NUMPAD_SEVEN 

Keypad 7 and Home.

NUMPAD_EIGHT 

Keypad 8 and Up Arrow.

NUMPAD_NINE 

Keypad 9 and PageUp.

NUMPAD_ZERO 

Keypad 0 and Insert.

NUMPAD_PERIOD 

Keypad . and Delete.

NON_US_BACKSLASH 

Keyboard Non-US \ and |.

APPLICATION 

Keyboard Application.

POWER 

Keyboard Power.

NUMPAD_EQUALS 

Keypad =.

F13 

Keyboard F13.

F14 

Keyboard F14.

F15 

Keyboard F15.

F16 

Keyboard F16.

F17 

Keyboard F17.

F18 

Keyboard F18.

F19 

Keyboard F19.

F20 

Keyboard F20.

F21 

Keyboard F21.

F22 

Keyboard F22.

F23 

Keyboard F23.

F24 

Keyboard F24.

EXECUTE 

Keyboard Execute.

HELP 

Keyboard Help.

MENU 

Keyboard Menu.

SELECT 

Keyboard Select.

STOP 

Keyboard Stop.

AGAIN 

Keyboard Again.

UNDO 

Keyboard Undo.

CUT 

Keyboard Cut.

COPY 

Keyboard Copy.

PASTE 

Keyboard Paste.

FIND 

Keyboard Find.

MUTE 

Keyboard Mute.

VOLUME_UP 

Keyboard Volume Up.

VOLUME_DOWN 

Keyboard Volume Down.

NUMPAD_COMMA 

Keypad Comma.

NUMPAD_EQUALS_AS400 

Keypad Equal Sign.

INTERNATIONAL1 

Keyboard International1 (Used on Asian keyboards, see footnotes in USB doc).

INTERNATIONAL2 

Keyboard International2.

INTERNATIONAL3 

Keyboard International3 (Yen).

INTERNATIONAL4 

Keyboard International4.

INTERNATIONAL5 

Keyboard International5.

INTERNATIONAL6 

Keyboard International6.

INTERNATIONAL7 

Keyboard International7.

INTERNATIONAL8 

Keyboard International8.

INTERNATIONAL9 

Keyboard International9.

LANG1 

Keyboard LANG1 (Hangul/English toggle).

LANG2 

Keyboard LANG2 (Hanja conversion).

LANG3 

Keyboard LANG3 (Katakana).

LANG4 

Keyboard LANG4 (Hiragana).

LANG5 

Keyboard LANG5 (Zenkaku/Hankaku).

LANG6 

Keyboard LANG6.

LANG7 

Keyboard LANG7.

LANG8 

Keyboard LANG8.

LANG9 

Keyboard LANG9.

ALTERNATE_ERASE 

Keyboard Alternate Erase (Erase-Eaze).

SYS_REQ 

Keyboard SysReq/Attention.

CANCEL 

Keyboard Cancel.

CLEAR 

Keyboard Clear.

PRIOR 

Keyboard Prior.

RETURN2 

Keyboard Return.

SEPARATOR 

Keyboard Separator.

OUT_ 

Keyboard Out.

OPER 

Keyboard Oper.

CLEAR_AGAIN 

Keyboard Clear/Again.

CR_SEL 

Keyboard CrSel/Props.

EX_SEL 

Keyboard ExSel.

FRONT 

Keyboard Front (Sun keyboards).

NUMPAD_00 

Keypad 00.

NUMPAD_000 

Keypad 000.

THOUSANDS_SEPARATOR 

Thousands Separator.

DECIMAL_SEPARATOR 

Decimal Separator.

CURRENCY_UNIT 

Currency Unit.

CURRENCY_SUB_UNIT 

Currency Sub-unit.

NUMPAD_LEFT_PARENTHESIS 

Keypad (.

NUMPAD_RIGHT_PARENTHESIS 

Keypad ).

NUMPAD_LEFT_BRACE 

Keypad {.

NUMPAD_RIGHT_BRACE 

Keypad }.

NUMPAD_TAB 

Keypad Tab.

NUMPAD_BACKSPACE 

Keypad Backspace.

NUMPAD_A 

Keypad A.

NUMPAD_B 

Keypad B.

NUMPAD_C 

Keypad C.

NUMPAD_D 

Keypad D.

NUMPAD_E 

Keypad E.

NUMPAD_F 

Keypad F.

NUMPAD_XOR 

Keypad XOR.

NUMPAD_POWER 

Keypad ^.

NUMPAD_PERCENT 

Keypad %.

NUMPAD_LESS_THAN 

Keypad <.

NUMPAD_GREATER_THAN 

Keypad >.

NUMPAD_AMPERSAND 

Keypad &.

NUMPAD_DOUBLE_AMPERSAND 

Keypad &&.

NUMPAD_VERTICAL_BAR 

Keypad |.

NUMPAD_DOUBLE_VERTICAL_BAR 

Keypad ||.

NUMPAD_COLON 

Keypad :

NUMPAD_HASH 

Keypad #.

NUMPAD_SPACE 

Keypad Space.

NUMPAD_AT 

Keypad .

NUMPAD_EXCLAMATION_POINT 

Keypad !

NUMPAD_MEMORY_STORE 

Keypad Memory Store.

NUMPAD_MEMORY_RECALL 

Keypad Memory Recall.

NUMPAD_MEMORY_CLEAR 

Keypad Memory Clear.

NUMPAD_MEMORY_ADD 

Keypad Memory Add.

NUMPAD_MEMORY_SUBTRACT 

Keypad Memory Subtract.

NUMPAD_MEMORY_MULTIPLY 

Keypad Memory Multiply.

NUMPAD_MEMORY_DIVIDE 

Keypad Memory Divide.

NUMPAD_PLUS_MINUS 

Keypad +/-.

NUMPAD_CLEAR 

Keypad Clear.

NUMPAD_CLEAR_ENTRY 

Keypad Clear Entry.

NUMPAD_BINARY 

Keypad Binary.

NUMPAD_OCTAL 

Keypad Octal.

NUMPAD_DECIMAL 

Keypad Decimal.

NUMPAD_HEXADECIMAL 

Keypad Hexadecimal.

LEFT_CONTROL 

Keyboard LeftControl.

LEFT_SHIFT 

Keyboard LeftShift.

LEFT_ALT 

Keyboard LeftAlt (Alt, Option).

LEFT_GUI 

Keyboard Left GUI (Windows, Command, Meta).

RIGHT_CONTROL 

Keyboard RightControl.

RIGHT_SHIFT 

Keyboard RightShift.

RIGHT_ALT 

Keyboard RightAlt (Alt Gr, Option).

RIGHT_GUI 

Keyboard Right GUI (Windows, Command, Meta).

MODE 

Mode.

SLEEP 

Sleep.

WAKE 

Wake.

CHANNEL_INCREMENT 

Channel Increment.

CHANNEL_DECREMENT 

Channel Decrement.

MEDIA_PLAY 

Play.

MEDIA_PAUSE 

Pause.

MEDIA_RECORD 

Record.

MEDIA_FAST_FORWARD 

Fast Forward.

MEDIA_REWIND 

Rewind.

MEDIA_NEXT_TRACK 

Next Track.

MEDIA_PREVIOUS_TRACK 

Previous Track.

MEDIA_STOP 

Stop.

MEDIA_EJECT 

Eject.

MEDIA_PLAY_PAUSE 

Play/Pause.

MEDIA_SELECT 

Media Select.

AC_NEW 

AC New.

AC_OPEN 

AC Open.

AC_CLOSE 

AC Close.

AC_EXIT 

AC Exit.

AC_SAVE 

AC Save.

AC_PRINT 

AC Print.

AC_PROPERTIES 

AC Properties.

AC_SEARCH 

AC Search.

AC_HOME 

AC Home.

AC_BACK 

AC Back.

AC_FORWARD 

AC Forward.

AC_STOP 

AC Stop.

AC_REFRESH 

AC Refresh.

AC_BOOKMARKS 

AC Bookmarks.

SOFT_LEFT 

Bottom left multi-function feature key on phones.

SOFT_RIGHT 

Bottom right multi-function feature key on phones.

CALL 

Used for accepting phone calls.

END_CALL 

Used for rejecting phone calls.

◆ KeyModifier

enum class grem::events::KeyModifier : uint16_t
strong

Key modifier.

See also
KeyModifiers
Enumerator
LEFT_SHIFT 

Left shift.

RIGHT_SHIFT 

Right shift.

LEFT_CONTROL 

Left control.

RIGHT_CONTROL 

Right control.

LEFT_ALT 

Left alt.

RIGHT_ALT 

Right alt.

LEFT_GUI 

Left GUI.

RIGHT_GUI 

Right GUI.

NUM_LOCK 

Number lock.

CAPS_LOCK 

Capital lock.

MODE 

Mode.

SCROLL_LOCK 

Scroll lock.

◆ MouseButton

enum class grem::events::MouseButton : uint8_t
strong

Physical mouse button identifier.

The enumerand values are based on the SDL_BUTTON_ constants from SDL3.

Enumerator
LEFT 

Left click.

MIDDLE 

Middle click.

RIGHT 

Right click.

BACK 

Back button.

FORWARD 

Forward button.

◆ MessageType

enum class grem::events::MessageType : uint8_t
strong

Type of message contained in a message box.

Enumerator
ERROR_MESSAGE 

Indicates that an error occured.

WARNING_MESSAGE 

Warns the user about a potential error.

INFO_MESSAGE 

Provides general information.

Function Documentation

◆ getInputIndex()

size_t grem::events::getInputIndex ( Input input)
nodiscardconstexprnoexcept

Get the 0-based index of an Input.

Parameters
inputvalid input value to get the index of.
Returns
an integer between 0 (inclusive) and INPUT_COUNT (exclusive) that uniquely identifies the given input.

◆ getInputIdentifier()

StringView grem::events::getInputIdentifier ( Input input)
nodiscardconstexprnoexcept

Get the identifier string of an Input, e.g.

"key_k", "mouse_button_left" or "controller_button_right_shoulder".

Parameters
inputvalid input value to get the identifier of.
Returns
an ASCII string that uniquely identifies the given input, starts with a lowercase letter and only contains lowercase letters, decimal digits and underscores.
See also
findInputByIdentifier()

◆ getInputString()

StringView grem::events::getInputString ( Input input)
nodiscardconstexprnoexcept

Get a short human-readable string description of an Input in English, e.g. "K", "Left Click" or "Right Shoulder Button".

Parameters
inputvalid input value to get the string of.
Returns
an ASCII string that describes the given input in English and may contain both letter and non-letter characters, such as numbers, symbols and spaces.
Remarks
The strings from this function may be useful as a baseline for showing input prompts to the user, but since the strings are always in English, they should generally be passed through a translation system before being being shown, if your application has one.

◆ findInputByIdentifier()

Input grem::events::findInputByIdentifier ( StringView identifier)
nodiscardconstexprnoexcept

Find the Input corresponding to a given identifier.

Parameters
identifierthe identifier string to search for.
Returns
if found, returns the input value whose identifier matches the given string. Otherwise, returns Input::UNKNOWN.
See also
getInputIdentifier()

◆ operator~()

KeyModifiers grem::events::operator~ ( KeyModifier a)
constexprnoexcept

Get the complement of a key modifier.

Parameters
athe key modifier to invert.
Returns
a set containing all possible key modifiers except the given key modifier.

◆ operator|()

KeyModifiers grem::events::operator| ( KeyModifier a,
KeyModifier b )
constexprnoexcept

Get the union of two key modifiers.

Parameters
afirst key modifier.
bsecond key modifier.
Returns
a set containing both a and b.

Variable Documentation

◆ INPUT_COUNT

size_t grem::events::INPUT_COUNT
inlineconstexpr

Total number of inputs that exist in the Input enumeration.