annotate libvisual/lv_keysym.h @ 25:66610fc7de2d trunk

[svn] Remove queue.png from build.list. *grumble*
author nenolod
date Tue, 25 Oct 2005 17:50:25 -0700
parents 0db4a1dc75c4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
1 /* Libvisual - The audio visualisation framework.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
2 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
3 * Copyright (C) 2004, 2005 Dennis Smit <ds@nerds-incorporated.org>
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
4 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
5 * Authors: Dennis Smit <ds@nerds-incorporated.org>
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
6 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
7 * $Id:
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
8 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
10 * it under the terms of the GNU Lesser General Public License as
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
11 * published by the Free Software Foundation; either version 2.1
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
12 * of the License, or (at your option) any later version.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
13 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
17 * GNU Lesser General Public License for more details.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
18 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
19 * You should have received a copy of the GNU Lesser General Public License
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
20 * along with this program; if not, write to the Free Software
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
22 */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
23
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
24 #ifndef _LV_KEYSYM_H
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
25 #define _LV_KEYSYM_H
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
26
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
27 #ifdef __cplusplus
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
28 extern "C" {
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
29 #endif /* __cplusplus */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
30
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
31 /**
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
32 * Enumerate values used within the libvisual event system for keyboard events.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
33 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
34 * The table is closely modelled after that of SDL and the SDL1.2
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
35 * SDLK defines can be directly translated to those of libvisual, however
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
36 * some keys are left out, but these are rarely or never used.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
37 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
38 * The basic keys are also mapped as in the ASCII table so basic
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
39 * keyboard support is easy to implement within a libvisual client.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
40 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
41 * @see visual_event_queue_add_keyboard
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
42 */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
43 typedef enum {
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
44 VKEY_UNKNOWN = 0,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
45 VKEY_FIRST = 0,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
46 VKEY_BACKSPACE = 8,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
47 VKEY_TAB = 9,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
48 VKEY_CLEAR = 12,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
49 VKEY_RETURN = 13,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
50 VKEY_PAUSE = 19,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
51 VKEY_ESCAPE = 27,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
52 VKEY_SPACE = 32,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
53 VKEY_EXCLAIM = 33,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
54 VKEY_QUOTEDBL = 34,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
55 VKEY_HASH = 35,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
56 VKEY_DOLLAR = 36,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
57 VKEY_AMPERSAND = 38,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
58 VKEY_QUOTE = 39,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
59 VKEY_LEFTPAREN = 40,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
60 VKEY_RIGHTPAREN = 41,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
61 VKEY_ASTERISK = 42,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
62 VKEY_PLUS = 43,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
63 VKEY_COMMA = 44,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
64 VKEY_MINUS = 45,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
65 VKEY_PERIOD = 46,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
66 VKEY_SLASH = 47,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
67 VKEY_0 = 48,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
68 VKEY_1 = 49,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
69 VKEY_2 = 50,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
70 VKEY_3 = 51,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
71 VKEY_4 = 52,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
72 VKEY_5 = 53,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
73 VKEY_6 = 54,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
74 VKEY_7 = 55,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
75 VKEY_8 = 56,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
76 VKEY_9 = 57,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
77 VKEY_COLON = 58,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
78 VKEY_SEMICOLON = 59,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
79 VKEY_LESS = 60,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
80 VKEY_EQUALS = 61,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
81 VKEY_GREATER = 62,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
82 VKEY_QUESTION = 63,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
83 VKEY_AT = 64,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
84
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
85 /* Skip uppercase here because it's done via the VisKeyMod */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
86 VKEY_LEFTBRACKET = 91,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
87 VKEY_BACKSLASH = 92,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
88 VKEY_RIGHTBRACKET = 93,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
89 VKEY_CARET = 94,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
90 VKEY_UNDERSCORE = 95,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
91 VKEY_BACKQUOTE = 96,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
92 VKEY_a = 97,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
93 VKEY_b = 98,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
94 VKEY_c = 99,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
95 VKEY_d = 100,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
96 VKEY_e = 101,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
97 VKEY_f = 102,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
98 VKEY_g = 103,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
99 VKEY_h = 104,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
100 VKEY_i = 105,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
101 VKEY_j = 106,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
102 VKEY_k = 107,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
103 VKEY_l = 108,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
104 VKEY_m = 109,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
105 VKEY_n = 110,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
106 VKEY_o = 111,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
107 VKEY_p = 112,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
108 VKEY_q = 113,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
109 VKEY_r = 114,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
110 VKEY_s = 115,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
111 VKEY_t = 116,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
112 VKEY_u = 117,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
113 VKEY_v = 118,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
114 VKEY_w = 119,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
115 VKEY_x = 120,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
116 VKEY_y = 121,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
117 VKEY_z = 122,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
118 VKEY_DELETE = 127,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
119
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
120 /* Numeric keypad */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
121 VKEY_KP0 = 256,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
122 VKEY_KP1 = 257,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
123 VKEY_KP2 = 258,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
124 VKEY_KP3 = 259,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
125 VKEY_KP4 = 260,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
126 VKEY_KP5 = 261,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
127 VKEY_KP6 = 262,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
128 VKEY_KP7 = 263,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
129 VKEY_KP8 = 264,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
130 VKEY_KP9 = 265,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
131 VKEY_KP_PERIOD = 266,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
132 VKEY_KP_DIVIDE = 267,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
133 VKEY_KP_MULTIPLY = 268,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
134 VKEY_KP_MINUS = 269,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
135 VKEY_KP_PLUS = 270,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
136 VKEY_KP_ENTER = 271,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
137 VKEY_KP_EQUALS = 272,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
138
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
139 /* Arrows + Home/End pad */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
140 VKEY_UP = 273,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
141 VKEY_DOWN = 274,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
142 VKEY_RIGHT = 275,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
143 VKEY_LEFT = 276,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
144 VKEY_INSERT = 277,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
145 VKEY_HOME = 278,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
146 VKEY_END = 279,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
147 VKEY_PAGEUP = 280,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
148 VKEY_PAGEDOWN = 281,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
149
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
150 /* Function keys */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
151 VKEY_F1 = 282,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
152 VKEY_F2 = 283,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
153 VKEY_F3 = 284,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
154 VKEY_F4 = 285,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
155 VKEY_F5 = 286,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
156 VKEY_F6 = 287,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
157 VKEY_F7 = 288,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
158 VKEY_F8 = 289,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
159 VKEY_F9 = 290,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
160 VKEY_F10 = 291,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
161 VKEY_F11 = 292,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
162 VKEY_F12 = 293,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
163 VKEY_F13 = 294,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
164 VKEY_F14 = 295,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
165 VKEY_F15 = 296,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
166
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
167 /* Key state modifier keys */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
168 VKEY_NUMLOCK = 300,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
169 VKEY_CAPSLOCK = 301,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
170 VKEY_SCROLLOCK = 302,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
171 VKEY_RSHIFT = 303,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
172 VKEY_LSHIFT = 304,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
173 VKEY_RCTRL = 305,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
174 VKEY_LCTRL = 306,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
175 VKEY_RALT = 307,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
176 VKEY_LALT = 308,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
177 VKEY_RMETA = 309,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
178 VKEY_LMETA = 310,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
179 VKEY_LSUPER = 311, /* Left "Windows" key */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
180 VKEY_RSUPER = 312, /* Right "Windows" key */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
181 VKEY_MODE = 313, /* "Alt Gr" key */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
182 VKEY_COMPOSE = 314, /* Multi-key compose key */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
183
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
184 /* Miscellaneous function keys */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
185 VKEY_HELP = 315,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
186 VKEY_PRINT = 316,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
187 VKEY_SYSREQ = 317,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
188 VKEY_BREAK = 318,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
189 VKEY_MENU = 319,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
190
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
191 VKEY_LAST
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
192 } VisKey;
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
193
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
194 /**
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
195 * Enumerate values used within the libvisual event system to set modifier keys.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
196 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
197 * Values can ben ORred together.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
198 *
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
199 * @see visual_event_queue_add_keyboard
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
200 */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
201 typedef enum {
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
202 VKMOD_NONE = 0x0000,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
203 VKMOD_LSHIFT = 0x0001,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
204 VKMOD_RSHIFT = 0x0002,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
205 VKMOD_LCTRL = 0x0040,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
206 VKMOD_RCTRL = 0x0080,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
207 VKMOD_LALT = 0x0100,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
208 VKMOD_RALT = 0x0200,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
209 VKMOD_LMETA = 0x0400,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
210 VKMOD_RMETA = 0x0800,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
211 VKMOD_NUM = 0x1000,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
212 VKMOD_CAPS = 0x2000,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
213 VKMOD_MODE = 0x4000,
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
214 } VisKeyMod;
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
215
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
216 #define VKMOD_CTRL (VKMOD_LCTRL | VKMOD_RCTRL)
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
217 #define VKMOD_SHIFT (VKMOD_LSHIFT | VKMOD_RSHIFT)
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
218 #define VKMOD_ALT (VKMOD_LALT | VKMOD_RALT)
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
219 #define VKMOD_META (VKMOD_LMETA | VKMOD_RMETA)
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
220
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
221 typedef struct _VisKeySym VisKeySym;
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
222
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
223 /**
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
224 * Cantains data about the current keyboard state.
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
225 */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
226 struct _VisKeySym {
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
227 VisKey sym; /**< Keyboard key to which everything relates. */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
228 int mod; /**< Modifier vlags, Using key modifiers from the VisKeyMod enumerate. */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
229 };
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
230
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
231 #ifdef __cplusplus
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
232 }
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
233 #endif /* __cplusplus */
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
234
0db4a1dc75c4 [svn] libvisual.
nenolod
parents:
diff changeset
235 #endif /* _LV_KEYSYM_H */