Debian Codegraph @

tools/skui/Key.h

raw
1 // Copyright 2019 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3 #ifndef skui_key_DEFINED
4 #define skui_key_DEFINED
5 namespace skui {
6 enum class Key {
7 kNONE, //corresponds to android's UNKNOWN
8
9 kLeftSoftKey,
10 kRightSoftKey,
11
12 kHome, //!< the home key - added to match android
13 kBack, //!< (CLR)
14 kSend, //!< the green (talk) key
15 kEnd, //!< the red key
16
17 k0,
18 k1,
19 k2,
20 k3,
21 k4,
22 k5,
23 k6,
24 k7,
25 k8,
26 k9,
27 kStar, //!< the * key
28 kHash, //!< the # key
29
30 kUp,
31 kDown,
32 kLeft,
33 kRight,
34
35 // Keys needed by ImGui
36 kTab,
37 kPageUp,
38 kPageDown,
39 kDelete,
40 kEscape,
41 kShift,
42 kCtrl,
43 kOption, // AKA Alt
44 kSuper, // AKA Command
45 kA,
46 kC,
47 kV,
48 kX,
49 kY,
50 kZ,
51
52 kOK, //!< the center key
53
54 kVolUp, //!< volume up - match android
55 kVolDown, //!< volume down - same
56 kPower, //!< power button - same
57 kCamera, //!< camera - same
58 };
59 } // namespace skui
60 #endif // skui_key_DEFINED