blob: b40ddeaa95b6a18669c2d0dc2295702d4eeee7cb [file] [log] [blame]
Hal Canaryb1f411a2019-08-29 10:39:22 -04001// 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
5namespace skui {
6enum 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
John Stilesd2f870c2020-07-01 11:12:19 -040044 kSuper, // AKA Command
Hal Canaryb1f411a2019-08-29 10:39:22 -040045 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};
John Stilesa6841be2020-08-06 14:11:56 -040059} // namespace skui
Hal Canaryb1f411a2019-08-29 10:39:22 -040060#endif // skui_key_DEFINED