Search
lxdream.org :: lxdream/src/dckeysyms.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dckeysyms.h
changeset 608:4f588e52bce0
next611:0c5f53a87501
author nkeynes
date Sat Jan 26 02:45:27 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Bug #50: Implement mouse and keyboard
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/dckeysyms.h Sat Jan 26 02:45:27 2008 +0000
1.3 @@ -0,0 +1,133 @@
1.4 +/**
1.5 + * $Id: dckeysyms.h 602 2008-01-15 20:50:23Z nkeynes $
1.6 + *
1.7 + * Keysym definitions for the dreamcast keyboard.
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +#ifndef lxdream_dckeysyms_H
1.23 +#define lxdream_dckeysyms_H 1
1.24 +
1.25 +
1.26 +#define DCKB_NONE 0x00
1.27 +#define DCKB_ERROR 0x01
1.28 +#define DCKB_A 0x04
1.29 +#define DCKB_B 0x05
1.30 +#define DCKB_C 0x06
1.31 +#define DCKB_D 0x07
1.32 +#define DCKB_E 0x08
1.33 +#define DCKB_F 0x09
1.34 +#define DCKB_G 0x0A
1.35 +#define DCKB_H 0x0B
1.36 +#define DCKB_I 0x0C
1.37 +#define DCKB_J 0x0D
1.38 +#define DCKB_K 0x0E
1.39 +#define DCKB_L 0x0F
1.40 +#define DCKB_M 0x10
1.41 +#define DCKB_N 0x11
1.42 +#define DCKB_O 0x12
1.43 +#define DCKB_P 0x13
1.44 +#define DCKB_Q 0x14
1.45 +#define DCKB_R 0x15
1.46 +#define DCKB_S 0x16
1.47 +#define DCKB_T 0x17
1.48 +#define DCKB_U 0x18
1.49 +#define DCKB_V 0x19
1.50 +#define DCKB_W 0x1A
1.51 +#define DCKB_X 0x1B
1.52 +#define DCKB_Y 0x1C
1.53 +#define DCKB_Z 0x1D
1.54 +#define DCKB_1 0x1E
1.55 +#define DCKB_2 0x1F
1.56 +#define DCKB_3 0x20
1.57 +#define DCKB_4 0x21
1.58 +#define DCKB_5 0x22
1.59 +#define DCKB_6 0x23
1.60 +#define DCKB_7 0x24
1.61 +#define DCKB_8 0x25
1.62 +#define DCKB_9 0x26
1.63 +#define DCKB_0 0x27
1.64 +#define DCKB_ENTER 0x28
1.65 +#define DCKB_ESCAPE 0x29
1.66 +#define DCKB_BACKSPACE 0x2A
1.67 +#define DCKB_TAB 0x2B
1.68 +#define DCKB_SPACE 0x2C
1.69 +#define DCKB_MINUS 0x2D
1.70 +#define DCKB_EQUAL 0x2E
1.71 +#define DCKB_LBRACKET 0x2F
1.72 +#define DCKB_RBRACKET 0x30
1.73 +#define DCKB_BACKSLASH 0x31
1.74 +#define DCKB_SEMICOLON 0x33
1.75 +#define DCKB_QUOTE 0x34
1.76 +#define DCKB_BACKQUOTE 0x35
1.77 +#define DCKB_COMMA 0x36
1.78 +#define DCKB_PERIOD 0x37
1.79 +#define DCKB_SLASH 0x38
1.80 +#define DCKB_CAPSLOCK 0x39
1.81 +#define DCKB_F1 0x3A
1.82 +#define DCKB_F2 0x3B
1.83 +#define DCKB_F3 0x3C
1.84 +#define DCKB_F4 0x3D
1.85 +#define DCKB_F5 0x3E
1.86 +#define DCKB_F6 0x3F
1.87 +#define DCKB_F7 0x40
1.88 +#define DCKB_F8 0x41
1.89 +#define DCKB_F9 0x42
1.90 +#define DCKB_F10 0x43
1.91 +#define DCKB_F11 0x44
1.92 +#define DCKB_F12 0x45
1.93 +#define DCKB_PRINTSCR 0x46
1.94 +#define DCKB_SCROLLLOCK 0x47
1.95 +#define DCKB_PAUSE 0x48
1.96 +#define DCKB_INSERT 0x49
1.97 +#define DCKB_HOME 0x4A
1.98 +#define DCKB_PAGEUP 0x4B
1.99 +#define DCKB_DELETE 0x4C
1.100 +#define DCKB_END 0x4D
1.101 +#define DCKB_PAGEDOWN 0x4E
1.102 +#define DCKB_RIGHT 0x4F
1.103 +#define DCKB_LEFT 0x50
1.104 +#define DCKB_DOWN 0x51
1.105 +#define DCKB_UP 0x52
1.106 +#define DCKB_NUMLOCK 0x53
1.107 +#define DCKB_KP_SLASH 0x54
1.108 +#define DCKB_KP_STAR 0x55
1.109 +#define DCKB_KP_MINUS 0x56
1.110 +#define DCKB_KP_PLUS 0x57
1.111 +#define DCKB_KP_ENTER 0x58
1.112 +#define DCKB_KP_1 0x59
1.113 +#define DCKB_KP_2 0x5A
1.114 +#define DCKB_KP_3 0x5B
1.115 +#define DCKB_KP_4 0x5C
1.116 +#define DCKB_KP_5 0x5D
1.117 +#define DCKB_KP_6 0x5E
1.118 +#define DCKB_KP_7 0x5F
1.119 +#define DCKB_KP_8 0x60
1.120 +#define DCKB_KP_9 0x61
1.121 +#define DCKB_KP_0 0x62
1.122 +#define DCKB_KP_PERIOD 0x63
1.123 +#define DCKB_S3 0x65
1.124 +
1.125 +/* Modifier keys */
1.126 +
1.127 +#define DCKB_CONTROL_L 0xFF01
1.128 +#define DCKB_SHIFT_L 0xFF02
1.129 +#define DCKB_ALT_L 0xFF04
1.130 +#define DCKB_S1 0xFF08
1.131 +#define DCKB_CONTROL_R 0xFF10
1.132 +#define DCKB_SHIFT_R 0xFF20
1.133 +#define DCKB_ALT_R 0xFF40
1.134 +#define DCKB_S2 0xFF80
1.135 +
1.136 +#endif /* !lxdream_dckeysyms_H */
.