libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
KeyboardScancodes.h File Reference
#include <string>
Include dependency graph for KeyboardScancodes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Ship
 Core namespace for the libultraship engine framework.
 

Typedefs

typedef enum Ship::KbEventType Ship::KbEventType
 Identifies the type of a keyboard event delivered to the input mapping system.
 
typedef enum Ship::KbScancode Ship::KbScancode
 Platform-independent keyboard scan codes used by the input mapping system.
 
typedef enum Ship::MouseBtn Ship::MouseBtn
 Identifies a mouse button delivered to the input mapping system.
 
typedef enum Ship::WheelDirection Ship::WheelDirection
 Identifies a scroll-wheel direction delivered to the input mapping system.
 

Enumerations

enum  Ship::KbEventType { Ship::LUS_KB_EVENT_KEY_DOWN = 0 , Ship::LUS_KB_EVENT_KEY_UP = 1 , Ship::LUS_KB_EVENT_ALL_KEYS_UP = 2 , Ship::LUS_KB_EVENT_MAX }
 Identifies the type of a keyboard event delivered to the input mapping system. More...
 
enum  Ship::KbScancode {
  Ship::LUS_KB_UNKNOWN = 0 , Ship::LUS_KB_ESCAPE = 1 , Ship::LUS_KB_1 = 2 , Ship::LUS_KB_2 = 3 ,
  Ship::LUS_KB_3 = 4 , Ship::LUS_KB_4 = 5 , Ship::LUS_KB_5 = 6 , Ship::LUS_KB_6 = 7 ,
  Ship::LUS_KB_7 = 8 , Ship::LUS_KB_8 = 9 , Ship::LUS_KB_9 = 10 , Ship::LUS_KB_0 = 11 ,
  Ship::LUS_KB_OEM_MINUS = 12 , Ship::LUS_KB_OEM_PLUS = 13 , Ship::LUS_KB_BACKSPACE = 14 , Ship::LUS_KB_TAB = 15 ,
  Ship::LUS_KB_Q = 16 , Ship::LUS_KB_W = 17 , Ship::LUS_KB_E = 18 , Ship::LUS_KB_R = 19 ,
  Ship::LUS_KB_T = 20 , Ship::LUS_KB_Y = 21 , Ship::LUS_KB_U = 22 , Ship::LUS_KB_I = 23 ,
  Ship::LUS_KB_O = 24 , Ship::LUS_KB_P = 25 , Ship::LUS_KB_OEM_4 = 26 , Ship::LUS_KB_OEM_6 = 27 ,
  Ship::LUS_KB_ENTER = 28 , Ship::LUS_KB_CONTROL = 29 , Ship::LUS_KB_A = 30 , Ship::LUS_KB_S = 31 ,
  Ship::LUS_KB_D = 32 , Ship::LUS_KB_F = 33 , Ship::LUS_KB_G = 34 , Ship::LUS_KB_H = 35 ,
  Ship::LUS_KB_J = 36 , Ship::LUS_KB_K = 37 , Ship::LUS_KB_L = 38 , Ship::LUS_KB_OEM_1 = 39 ,
  Ship::LUS_KB_OEM_7 = 40 , Ship::LUS_KB_OEM_3 = 41 , Ship::LUS_KB_SHIFT = 42 , Ship::LUS_KB_OEM_5 = 43 ,
  Ship::LUS_KB_Z = 44 , Ship::LUS_KB_X = 45 , Ship::LUS_KB_C = 46 , Ship::LUS_KB_V = 47 ,
  Ship::LUS_KB_B = 48 , Ship::LUS_KB_N = 49 , Ship::LUS_KB_M = 50 , Ship::LUS_KB_OEM_COMMA = 51 ,
  Ship::LUS_KB_OEM_PERIOD = 52 , Ship::LUS_KB_OEM_2 = 53 , Ship::LUS_KB_RSHIFT = 54 , Ship::LUS_KB_MULTIPLY = 55 ,
  Ship::LUS_KB_ALT = 56 , Ship::LUS_KB_SPACE = 57 , Ship::LUS_KB_CAPSLOCK = 58 , Ship::LUS_KB_F1 = 59 ,
  Ship::LUS_KB_F2 = 60 , Ship::LUS_KB_F3 = 61 , Ship::LUS_KB_F4 = 62 , Ship::LUS_KB_F5 = 63 ,
  Ship::LUS_KB_F6 = 64 , Ship::LUS_KB_F7 = 65 , Ship::LUS_KB_F8 = 66 , Ship::LUS_KB_F9 = 67 ,
  Ship::LUS_KB_F10 = 68 , Ship::LUS_KB_PAUSE = 69 , Ship::LUS_KB_SCROLL = 70 , Ship::LUS_KB_NUMPAD7 = 71 ,
  Ship::LUS_KB_NUMPAD8 = 72 , Ship::LUS_KB_NUMPAD9 = 73 , Ship::LUS_KB_SUBTRACT = 74 , Ship::LUS_KB_NUMPAD4 = 75 ,
  Ship::LUS_KB_NUMPAD5 = 76 , Ship::LUS_KB_NUMPAD6 = 77 , Ship::LUS_KB_ADD = 78 , Ship::LUS_KB_NUMPAD1 = 79 ,
  Ship::LUS_KB_NUMPAD2 = 80 , Ship::LUS_KB_NUMPAD3 = 81 , Ship::LUS_KB_NUMPAD0 = 82 , Ship::LUS_KB_NUMPAD_DEL = 83 ,
  Ship::LUS_KB_PRINTSCREEN = 84 , Ship::LUS_KB_F11 = 87 , Ship::LUS_KB_F12 = 88 , Ship::LUS_KB_F13 = 124 ,
  Ship::LUS_KB_F14 = 125 , Ship::LUS_KB_F15 = 126 , Ship::LUS_KB_F16 = 127 , Ship::LUS_KB_F17 = 128 ,
  Ship::LUS_KB_F18 = 129 , Ship::LUS_KB_F19 = 130 , Ship::LUS_KB_F20 = 131 , Ship::LUS_KB_F21 = 132 ,
  Ship::LUS_KB_F22 = 133 , Ship::LUS_KB_F23 = 134 , Ship::LUS_KB_F24 = 135 , Ship::LUS_KB_ARROWKEY_UP = 328 ,
  Ship::LUS_KB_ARROWKEY_LEFT = 331 , Ship::LUS_KB_ARROWKEY_RIGHT = 333 , Ship::LUS_KB_ARROWKEY_DOWN = 336 , Ship::LUS_KB_MAX
}
 Platform-independent keyboard scan codes used by the input mapping system. More...
 
enum  Ship::MouseBtn {
  Ship::LUS_MOUSE_BTN_LEFT , Ship::LUS_MOUSE_BTN_MIDDLE , Ship::LUS_MOUSE_BTN_RIGHT , Ship::LUS_MOUSE_BTN_BACKWARD ,
  Ship::LUS_MOUSE_BTN_FORWARD , Ship::LUS_MOUSE_BTN_COUNT , Ship::LUS_MOUSE_BTN_UNKNOWN
}
 Identifies a mouse button delivered to the input mapping system. More...
 
enum  Ship::WheelDirection {
  Ship::LUS_WHEEL_NONE , Ship::LUS_WHEEL_LEFT , Ship::LUS_WHEEL_RIGHT , Ship::LUS_WHEEL_UP ,
  Ship::LUS_WHEEL_DOWN , Ship::LUS_WHEEL_UNKNOWN
}
 Identifies a scroll-wheel direction delivered to the input mapping system. More...
 

Variables

static std::string Ship::mouseBtnNames [7]
 Human-readable names for each MouseBtn enumerator.
 
static std::string Ship::wheelDirectionNames [6]
 Human-readable names for each WheelDirection enumerator.