ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
std_keys.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef BAGEL_BOFLIB_STD_KEYS_H
24 #define BAGEL_BOFLIB_STD_KEYS_H
25 
26 #include "bagel/boflib/stdinc.h"
27 
28 namespace Bagel {
29 
30 // Boffo Key defs
31 //
32 #define BKEY_UNKNOWN 0x00000000
33 
34 #define BKF_ALT 0x10000000
35 #define BKF_CMD 0x10000000 // Mac's Flower/Clover/Command key
36 
37 #define BKF_CTRL 0x20000000
38 #define BKF_SHIFT 0x40000000
39 
40 #define BKEY_0 '0'
41 #define BKEY_1 '1'
42 #define BKEY_2 '2'
43 #define BKEY_3 '3'
44 #define BKEY_4 '4'
45 #define BKEY_5 '5'
46 #define BKEY_6 '6'
47 #define BKEY_7 '7'
48 #define BKEY_8 '8'
49 #define BKEY_9 '9'
50 
51 #define BKEY_a (uint32)'a'
52 #define BKEY_b (uint32)'b'
53 #define BKEY_c (uint32)'c'
54 #define BKEY_d (uint32)'d'
55 #define BKEY_e (uint32)'e'
56 #define BKEY_f (uint32)'f'
57 #define BKEY_g (uint32)'g'
58 #define BKEY_h (uint32)'h'
59 #define BKEY_i (uint32)'i'
60 #define BKEY_j (uint32)'j'
61 #define BKEY_k (uint32)'k'
62 #define BKEY_l (uint32)'l'
63 #define BKEY_m (uint32)'m'
64 #define BKEY_n (uint32)'n'
65 #define BKEY_o (uint32)'o'
66 #define BKEY_p (uint32)'p'
67 #define BKEY_q (uint32)'q'
68 #define BKEY_r (uint32)'r'
69 #define BKEY_s (uint32)'s'
70 #define BKEY_t (uint32)'t'
71 #define BKEY_u (uint32)'u'
72 #define BKEY_v (uint32)'v'
73 #define BKEY_w (uint32)'w'
74 #define BKEY_x (uint32)'x'
75 #define BKEY_y (uint32)'y'
76 #define BKEY_z (uint32)'z'
77 
78 #define BKEY_PLUS (uint32)'+'
79 #define BKEY_MINUS (uint32)'-'
80 #define BKEY_PERIOD (uint32)'.'
81 
82 #define BKEY_ALT_a (BKEY_a | BKF_ALT)
83 #define BKEY_ALT_b (BKEY_b | BKF_ALT)
84 #define BKEY_ALT_c (BKEY_c | BKF_ALT)
85 #define BKEY_ALT_d (BKEY_d | BKF_ALT)
86 #define BKEY_ALT_e (BKEY_e | BKF_ALT)
87 #define BKEY_ALT_f (BKEY_f | BKF_ALT)
88 #define BKEY_ALT_g (BKEY_g | BKF_ALT)
89 #define BKEY_ALT_h (BKEY_h | BKF_ALT)
90 #define BKEY_ALT_i (BKEY_i | BKF_ALT)
91 #define BKEY_ALT_j (BKEY_j | BKF_ALT)
92 #define BKEY_ALT_k (BKEY_k | BKF_ALT)
93 #define BKEY_ALT_l (BKEY_l | BKF_ALT)
94 #define BKEY_ALT_m (BKEY_m | BKF_ALT)
95 #define BKEY_ALT_n (BKEY_n | BKF_ALT)
96 #define BKEY_ALT_o (BKEY_o | BKF_ALT)
97 #define BKEY_ALT_p (BKEY_p | BKF_ALT)
98 #define BKEY_ALT_q (BKEY_q | BKF_ALT)
99 #define BKEY_ALT_r (BKEY_r | BKF_ALT)
100 #define BKEY_ALT_s (BKEY_s | BKF_ALT)
101 #define BKEY_ALT_t (BKEY_t | BKF_ALT)
102 #define BKEY_ALT_u (BKEY_u | BKF_ALT)
103 #define BKEY_ALT_v (BKEY_v | BKF_ALT)
104 #define BKEY_ALT_w (BKEY_w | BKF_ALT)
105 #define BKEY_ALT_x (BKEY_x | BKF_ALT)
106 #define BKEY_ALT_y (BKEY_y | BKF_ALT)
107 #define BKEY_ALT_z (BKEY_z | BKF_ALT)
108 
109 #define BKEY_BASE 0x00000100
110 #define BKEY_F1 (BKEY_BASE + 1)
111 #define BKEY_F2 (BKEY_BASE + 2)
112 #define BKEY_F3 (BKEY_BASE + 3)
113 #define BKEY_F4 (BKEY_BASE + 4)
114 #define BKEY_SAVE (BKEY_BASE + 5)
115 #define BKEY_F6 (BKEY_BASE + 6)
116 #define BKEY_RESTORE (BKEY_BASE + 7)
117 #define BKEY_F8 (BKEY_BASE + 8)
118 #define BKEY_F9 (BKEY_BASE + 9)
119 #define BKEY_F10 (BKEY_BASE + 10)
120 #define BKEY_F11 (BKEY_BASE + 11)
121 #define BKEY_F12 (BKEY_BASE + 12)
122 
123 #define BKEY_ALT_F1 (BKEY_F1 | BKF_ALT)
124 #define BKEY_ALT_F2 (BKEY_F2 | BKF_ALT)
125 #define BKEY_ALT_F3 (BKEY_F3 | BKF_ALT)
126 #define BKEY_ALT_F4 (BKEY_F4 | BKF_ALT)
127 #define BKEY_ALT_F5 (BKEY_F5 | BKF_ALT)
128 #define BKEY_ALT_F6 (BKEY_F6 | BKF_ALT)
129 #define BKEY_ALT_F7 (BKEY_F7 | BKF_ALT)
130 #define BKEY_ALT_F8 (BKEY_F8 | BKF_ALT)
131 #define BKEY_ALT_F9 (BKEY_F9 | BKF_ALT)
132 #define BKEY_ALT_F10 (BKEY_F10 | BKF_ALT)
133 #define BKEY_ALT_F11 (BKEY_F11 | BKF_ALT)
134 #define BKEY_ALT_F12 (BKEY_F12 | BKF_ALT)
135 
136 #define BKEY_ESC (uint32)0x1B
137 #define BKEY_BACK (uint32)0x08
138 #define BKEY_ENTER (uint32)0x0D
139 #define BKEY_SPACE (uint32)' '
140 #define BKEY_PERIOD (uint32)'.'
141 
142 #define BKEY_END (BKEY_BASE + 14)
143 #define BKEY_HOME (BKEY_BASE + 15)
144 #define BKEY_LEFT (BKEY_BASE + 16)
145 #define BKEY_RIGHT (BKEY_BASE + 17)
146 #define BKEY_UP (BKEY_BASE + 18)
147 #define BKEY_DOWN (BKEY_BASE + 19)
148 #define BKEY_INS (BKEY_BASE + 20)
149 #define BKEY_DEL (BKEY_BASE + 21)
150 
151 #define BKEY_ALT_UP (BKEY_UP | BKF_ALT)
152 #define BKEY_ALT_DOWN (BKEY_DOWN | BKF_ALT)
153 
154 #define BKEY_PAGEUP (BKEY_BASE + 22)
155 #define BKEY_PAGEDOWN (BKEY_BASE + 23)
156 
157 #define BKEY_SCRL_LOCK (BKEY_BASE + 24)
158 
159 #define BKEY_SHIFT BKF_SHIFT
160 #define BKEY_CTRL BKF_CTRL
161 #define BKEY_ALT BKF_ALT
162 
163 } // namespace Bagel
164 
165 #endif
Definition: bagel.h:31