added 3dengfx into the repo, probably not the correct version for this
[summerhack] / src / 3dengfx / src / fxwt / keysyms.hpp
1 /*
2 This file is part of fxwt, the window system toolkit of 3dengfx.
3
4 Copyright (c) 2004, 2005 John Tsiombikas <nuclear@siggraph.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21 #ifndef _KEYSYMS_HPP_
22 #define _KEYSYMS_HPP_
23
24 // keysyms taken from SDL
25
26 namespace fxwt {
27         enum {
28                 KEY_BACKSPACE   = 8,
29                 KEY_TAB                 = 9,
30                 KEY_CLEAR               = 12,
31                 KEY_RETURN              = 13,
32                 KEY_PAUSE               = 19,
33                 KEY_ESCAPE              = 27,
34                 KEY_DELETE              = 127,
35         
36                 /* Numeric keypad */
37                 KEY_KP0                 = 256,
38                 KEY_KP1                 = 257,
39                 KEY_KP2                 = 258,
40                 KEY_KP3                 = 259,
41                 KEY_KP4                 = 260,
42                 KEY_KP5                 = 261,
43                 KEY_KP6                 = 262,
44                 KEY_KP7                 = 263,
45                 KEY_KP8                 = 264,
46                 KEY_KP9                 = 265,
47                 KEY_KP_PERIOD   = 266,
48                 KEY_KP_DIVIDE   = 267,
49                 KEY_KP_MULTIPLY = 268,
50                 KEY_KP_MINUS    = 269,
51                 KEY_KP_PLUS             = 270,
52                 KEY_KP_ENTER    = 271,
53                 KEY_KP_EQUALS   = 272,
54
55                 /* Arrows + Home/End pad */
56                 KEY_UP                  = 273,
57                 KEY_DOWN                = 274,
58                 KEY_RIGHT               = 275,
59                 KEY_LEFT                = 276,
60                 KEY_INSERT              = 277,
61                 KEY_HOME                = 278,
62                 KEY_END                 = 279,
63                 KEY_PAGEUP              = 280,
64                 KEY_PAGEDOWN    = 281,
65
66                 /* Function keys */
67                 KEY_F1                  = 282,
68                 KEY_F2                  = 283,
69                 KEY_F3                  = 284,
70                 KEY_F4                  = 285,
71                 KEY_F5                  = 286,
72                 KEY_F6                  = 287,
73                 KEY_F7                  = 288,
74                 KEY_F8                  = 289,
75                 KEY_F9                  = 290,
76                 KEY_F10                 = 291,
77                 KEY_F11                 = 292,
78                 KEY_F12                 = 293,
79                 KEY_F13                 = 294,
80                 KEY_F14                 = 295,
81                 KEY_F15                 = 296,
82
83                 /* Key state modifier keys */
84                 KEY_NUMLOCK             = 300,
85                 KEY_CAPSLOCK    = 301,
86                 KEY_SCROLLOCK   = 302,
87                 KEY_RSHIFT              = 303,
88                 KEY_LSHIFT              = 304,
89                 KEY_RCTRL               = 305,
90                 KEY_LCTRL               = 306,
91                 KEY_RALT                = 307,
92                 KEY_LALT                = 308,
93                 KEY_RMETA               = 309,
94                 KEY_LMETA               = 310,
95                 KEY_LSUPER              = 311,          /* Left "Windows" key */
96                 KEY_RSUPER              = 312,          /* Right "Windows" key */
97                 KEY_MODE                = 313           /* "Alt Gr" key */
98         };
99 }
100
101 #endif  // _KEYSYMS_HPP_