KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Definitions for using the keyboard device. More...
Go to the source code of this file.
Data Structures | |
struct | kbd_keymap_t |
Keyboard keymap. More... | |
struct | kbd_cond_t |
Keyboard raw condition structure. More... | |
struct | kbd_state_t |
Keyboard status structure. More... | |
Macros | |
#define | KBD_MOD_LCTRL (1<<0) |
#define | KBD_MOD_LSHIFT (1<<1) |
#define | KBD_MOD_LALT (1<<2) |
#define | KBD_MOD_S1 (1<<3) |
#define | KBD_MOD_RCTRL (1<<4) |
#define | KBD_MOD_RSHIFT (1<<5) |
#define | KBD_MOD_RALT (1<<6) |
#define | KBD_MOD_S2 (1<<7) |
#define | KBD_LED_NUMLOCK (1<<0) |
#define | KBD_LED_CAPSLOCK (1<<1) |
#define | KBD_LED_SCRLOCK (1<<2) |
#define | KBD_KEY_NONE 0x00 |
#define | KBD_KEY_ERROR 0x01 |
#define | KBD_KEY_ERR2 0x02 |
#define | KBD_KEY_ERR3 0x03 |
#define | KBD_KEY_A 0x04 |
#define | KBD_KEY_B 0x05 |
#define | KBD_KEY_C 0x06 |
#define | KBD_KEY_D 0x07 |
#define | KBD_KEY_E 0x08 |
#define | KBD_KEY_F 0x09 |
#define | KBD_KEY_G 0x0a |
#define | KBD_KEY_H 0x0b |
#define | KBD_KEY_I 0x0c |
#define | KBD_KEY_J 0x0d |
#define | KBD_KEY_K 0x0e |
#define | KBD_KEY_L 0x0f |
#define | KBD_KEY_M 0x10 |
#define | KBD_KEY_N 0x11 |
#define | KBD_KEY_O 0x12 |
#define | KBD_KEY_P 0x13 |
#define | KBD_KEY_Q 0x14 |
#define | KBD_KEY_R 0x15 |
#define | KBD_KEY_S 0x16 |
#define | KBD_KEY_T 0x17 |
#define | KBD_KEY_U 0x18 |
#define | KBD_KEY_V 0x19 |
#define | KBD_KEY_W 0x1a |
#define | KBD_KEY_X 0x1b |
#define | KBD_KEY_Y 0x1c |
#define | KBD_KEY_Z 0x1d |
#define | KBD_KEY_1 0x1e |
#define | KBD_KEY_2 0x1f |
#define | KBD_KEY_3 0x20 |
#define | KBD_KEY_4 0x21 |
#define | KBD_KEY_5 0x22 |
#define | KBD_KEY_6 0x23 |
#define | KBD_KEY_7 0x24 |
#define | KBD_KEY_8 0x25 |
#define | KBD_KEY_9 0x26 |
#define | KBD_KEY_0 0x27 |
#define | KBD_KEY_ENTER 0x28 |
#define | KBD_KEY_ESCAPE 0x29 |
#define | KBD_KEY_BACKSPACE 0x2a |
#define | KBD_KEY_TAB 0x2b |
#define | KBD_KEY_SPACE 0x2c |
#define | KBD_KEY_MINUS 0x2d |
#define | KBD_KEY_PLUS 0x2e |
#define | KBD_KEY_LBRACKET 0x2f |
#define | KBD_KEY_RBRACKET 0x30 |
#define | KBD_KEY_BACKSLASH 0x31 |
#define | KBD_KEY_SEMICOLON 0x33 |
#define | KBD_KEY_QUOTE 0x34 |
#define | KBD_KEY_TILDE 0x35 |
#define | KBD_KEY_COMMA 0x36 |
#define | KBD_KEY_PERIOD 0x37 |
#define | KBD_KEY_SLASH 0x38 |
#define | KBD_KEY_CAPSLOCK 0x39 |
#define | KBD_KEY_F1 0x3a |
#define | KBD_KEY_F2 0x3b |
#define | KBD_KEY_F3 0x3c |
#define | KBD_KEY_F4 0x3d |
#define | KBD_KEY_F5 0x3e |
#define | KBD_KEY_F6 0x3f |
#define | KBD_KEY_F7 0x40 |
#define | KBD_KEY_F8 0x41 |
#define | KBD_KEY_F9 0x42 |
#define | KBD_KEY_F10 0x43 |
#define | KBD_KEY_F11 0x44 |
#define | KBD_KEY_F12 0x45 |
#define | KBD_KEY_PRINT 0x46 |
#define | KBD_KEY_SCRLOCK 0x47 |
#define | KBD_KEY_PAUSE 0x48 |
#define | KBD_KEY_INSERT 0x49 |
#define | KBD_KEY_HOME 0x4a |
#define | KBD_KEY_PGUP 0x4b |
#define | KBD_KEY_DEL 0x4c |
#define | KBD_KEY_END 0x4d |
#define | KBD_KEY_PGDOWN 0x4e |
#define | KBD_KEY_RIGHT 0x4f |
#define | KBD_KEY_LEFT 0x50 |
#define | KBD_KEY_DOWN 0x51 |
#define | KBD_KEY_UP 0x52 |
#define | KBD_KEY_PAD_NUMLOCK 0x53 |
#define | KBD_KEY_PAD_DIVIDE 0x54 |
#define | KBD_KEY_PAD_MULTIPLY 0x55 |
#define | KBD_KEY_PAD_MINUS 0x56 |
#define | KBD_KEY_PAD_PLUS 0x57 |
#define | KBD_KEY_PAD_ENTER 0x58 |
#define | KBD_KEY_PAD_1 0x59 |
#define | KBD_KEY_PAD_2 0x5a |
#define | KBD_KEY_PAD_3 0x5b |
#define | KBD_KEY_PAD_4 0x5c |
#define | KBD_KEY_PAD_5 0x5d |
#define | KBD_KEY_PAD_6 0x5e |
#define | KBD_KEY_PAD_7 0x5f |
#define | KBD_KEY_PAD_8 0x60 |
#define | KBD_KEY_PAD_9 0x61 |
#define | KBD_KEY_PAD_0 0x62 |
#define | KBD_KEY_PAD_PERIOD 0x63 |
#define | KBD_KEY_S3 0x65 |
#define | KBD_REGION_JP 1 |
Japanese keyboard. | |
#define | KBD_REGION_US 2 |
US keyboard. | |
#define | KBD_REGION_UK 3 |
UK keyboard. | |
#define | KBD_REGION_DE 4 |
German keyboard. | |
#define | KBD_REGION_FR 5 |
French keyboard. | |
#define | KBD_REGION_IT 6 |
Italian keyboard (not supported yet) | |
#define | KBD_REGION_ES 7 |
Spanish keyboard. | |
#define | KEY_STATE_NONE 0 |
#define | KEY_STATE_WAS_PRESSED 1 |
#define | KEY_STATE_PRESSED 2 |
#define | MAX_PRESSED_KEYS 6 |
Maximum number of keys the DC can read simultaneously. | |
#define | MAX_KBD_KEYS 256 |
Maximum number of keys a DC keyboard can have. | |
#define | KBD_QUEUE_SIZE 16 |
Size of a keyboard queue. | |
Functions | |
void | kbd_set_queue (int active) |
Activate or deactivate global key queueing. | |
int | kbd_get_key (void) |
Pop a key off the global keyboard queue. | |
int | kbd_queue_pop (maple_device_t *dev, int xlat) |
Pop a key off a specific keyboard's queue. | |
Definitions for using the keyboard device.
This file contains the definitions needed to access the Maple keyboard device. Obviously, this corresponds to the MAPLE_FUNC_KEYBOARD function code.