ScummVM API documentation
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
28namespace Bagel {
29namespace SpaceBar {
30
31// Boffo Key defs
32//
33#define BKEY_UNKNOWN 0x00000000
34
35#define BKF_ALT 0x10000000
36#define BKF_CMD 0x10000000 // Mac's Flower/Clover/Command key
37
38#define BKF_CTRL 0x20000000
39#define BKF_SHIFT 0x40000000
40
41#define BKEY_0 '0'
42#define BKEY_1 '1'
43#define BKEY_2 '2'
44#define BKEY_3 '3'
45#define BKEY_4 '4'
46#define BKEY_5 '5'
47#define BKEY_6 '6'
48#define BKEY_7 '7'
49#define BKEY_8 '8'
50#define BKEY_9 '9'
51
52#define BKEY_a (uint32)'a'
53#define BKEY_b (uint32)'b'
54#define BKEY_c (uint32)'c'
55#define BKEY_d (uint32)'d'
56#define BKEY_e (uint32)'e'
57#define BKEY_f (uint32)'f'
58#define BKEY_g (uint32)'g'
59#define BKEY_h (uint32)'h'
60#define BKEY_i (uint32)'i'
61#define BKEY_j (uint32)'j'
62#define BKEY_k (uint32)'k'
63#define BKEY_l (uint32)'l'
64#define BKEY_m (uint32)'m'
65#define BKEY_n (uint32)'n'
66#define BKEY_o (uint32)'o'
67#define BKEY_p (uint32)'p'
68#define BKEY_q (uint32)'q'
69#define BKEY_r (uint32)'r'
70#define BKEY_s (uint32)'s'
71#define BKEY_t (uint32)'t'
72#define BKEY_u (uint32)'u'
73#define BKEY_v (uint32)'v'
74#define BKEY_w (uint32)'w'
75#define BKEY_x (uint32)'x'
76#define BKEY_y (uint32)'y'
77#define BKEY_z (uint32)'z'
78
79#define BKEY_PLUS (uint32)'+'
80#define BKEY_MINUS (uint32)'-'
81#define BKEY_PERIOD (uint32)'.'
82
83#define BKEY_ALT_a (BKEY_a | BKF_ALT)
84#define BKEY_ALT_b (BKEY_b | BKF_ALT)
85#define BKEY_ALT_c (BKEY_c | BKF_ALT)
86#define BKEY_ALT_d (BKEY_d | BKF_ALT)
87#define BKEY_ALT_e (BKEY_e | BKF_ALT)
88#define BKEY_ALT_f (BKEY_f | BKF_ALT)
89#define BKEY_ALT_g (BKEY_g | BKF_ALT)
90#define BKEY_ALT_h (BKEY_h | BKF_ALT)
91#define BKEY_ALT_i (BKEY_i | BKF_ALT)
92#define BKEY_ALT_j (BKEY_j | BKF_ALT)
93#define BKEY_ALT_k (BKEY_k | BKF_ALT)
94#define BKEY_ALT_l (BKEY_l | BKF_ALT)
95#define BKEY_ALT_m (BKEY_m | BKF_ALT)
96#define BKEY_ALT_n (BKEY_n | BKF_ALT)
97#define BKEY_ALT_o (BKEY_o | BKF_ALT)
98#define BKEY_ALT_p (BKEY_p | BKF_ALT)
99#define BKEY_ALT_q (BKEY_q | BKF_ALT)
100#define BKEY_ALT_r (BKEY_r | BKF_ALT)
101#define BKEY_ALT_s (BKEY_s | BKF_ALT)
102#define BKEY_ALT_t (BKEY_t | BKF_ALT)
103#define BKEY_ALT_u (BKEY_u | BKF_ALT)
104#define BKEY_ALT_v (BKEY_v | BKF_ALT)
105#define BKEY_ALT_w (BKEY_w | BKF_ALT)
106#define BKEY_ALT_x (BKEY_x | BKF_ALT)
107#define BKEY_ALT_y (BKEY_y | BKF_ALT)
108#define BKEY_ALT_z (BKEY_z | BKF_ALT)
109
110#define BKEY_BASE 0x00000100
111#define BKEY_F1 (BKEY_BASE + 1)
112#define BKEY_F2 (BKEY_BASE + 2)
113#define BKEY_F3 (BKEY_BASE + 3)
114#define BKEY_F4 (BKEY_BASE + 4)
115#define BKEY_SAVE (BKEY_BASE + 5)
116#define BKEY_F6 (BKEY_BASE + 6)
117#define BKEY_RESTORE (BKEY_BASE + 7)
118#define BKEY_F8 (BKEY_BASE + 8)
119#define BKEY_F9 (BKEY_BASE + 9)
120#define BKEY_F10 (BKEY_BASE + 10)
121#define BKEY_F11 (BKEY_BASE + 11)
122#define BKEY_F12 (BKEY_BASE + 12)
123
124#define BKEY_ALT_F1 (BKEY_F1 | BKF_ALT)
125#define BKEY_ALT_F2 (BKEY_F2 | BKF_ALT)
126#define BKEY_ALT_F3 (BKEY_F3 | BKF_ALT)
127#define BKEY_ALT_F4 (BKEY_F4 | BKF_ALT)
128#define BKEY_ALT_F5 (BKEY_F5 | BKF_ALT)
129#define BKEY_ALT_F6 (BKEY_F6 | BKF_ALT)
130#define BKEY_ALT_F7 (BKEY_F7 | BKF_ALT)
131#define BKEY_ALT_F8 (BKEY_F8 | BKF_ALT)
132#define BKEY_ALT_F9 (BKEY_F9 | BKF_ALT)
133#define BKEY_ALT_F10 (BKEY_F10 | BKF_ALT)
134#define BKEY_ALT_F11 (BKEY_F11 | BKF_ALT)
135#define BKEY_ALT_F12 (BKEY_F12 | BKF_ALT)
136
137#define BKEY_ESC (uint32)0x1B
138#define BKEY_BACK (uint32)0x08
139#define BKEY_ENTER (uint32)0x0D
140#define BKEY_SPACE (uint32)' '
141#define BKEY_PERIOD (uint32)'.'
142
143#define BKEY_END (BKEY_BASE + 14)
144#define BKEY_HOME (BKEY_BASE + 15)
145#define BKEY_LEFT (BKEY_BASE + 16)
146#define BKEY_RIGHT (BKEY_BASE + 17)
147#define BKEY_UP (BKEY_BASE + 18)
148#define BKEY_DOWN (BKEY_BASE + 19)
149#define BKEY_INS (BKEY_BASE + 20)
150#define BKEY_DEL (BKEY_BASE + 21)
151
152#define BKEY_ALT_UP (BKEY_UP | BKF_ALT)
153#define BKEY_ALT_DOWN (BKEY_DOWN | BKF_ALT)
154
155#define BKEY_PAGEUP (BKEY_BASE + 22)
156#define BKEY_PAGEDOWN (BKEY_BASE + 23)
157
158#define BKEY_SCRL_LOCK (BKEY_BASE + 24)
159
160#define BKEY_SHIFT BKF_SHIFT
161#define BKEY_CTRL BKF_CTRL
162#define BKEY_ALT BKF_ALT
163
164} // namespace SpaceBar
165} // namespace Bagel
166
167#endif