1 #pragma once
2 
3 /*
4  * Copyright (C) 2017 The Android Open Source Project
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #include <cstdint>
20 
21 namespace cuttlefish {
22 namespace xk {
23 
24 constexpr uint32_t BackSpace = 0xff08, Tab = 0xff09, Return = 0xff0d,
25                    Enter = Return, Escape = 0xff1b, MultiKey = 0xff20,
26                    Insert = 0xff63, Delete = 0xffff, Pause = 0xff13,
27                    Home = 0xff50, End = 0xff57, PageUp = 0xff55,
28                    PageDown = 0xff56, Left = 0xff51, Up = 0xff52,
29                    Right = 0xff53, Down = 0xff54, F1 = 0xffbe, F2 = 0xffbf,
30                    F3 = 0xffc0, F4 = 0xffc1, F5 = 0xffc2, F6 = 0xffc3,
31                    F7 = 0xffc4, F8 = 0xffc5, F9 = 0xffc6, F10 = 0xffc7,
32                    F11 = 0xffc8, F12 = 0xffc9, F13 = 0xffca, F14 = 0xffcb,
33                    F15 = 0xffcc, F16 = 0xffcd, F17 = 0xffce, F18 = 0xffcf,
34                    F19 = 0xffd0, F20 = 0xffd1, F21 = 0xffd2, F22 = 0xffd3,
35                    F23 = 0xffd4, F24 = 0xffd5, ShiftLeft = 0xffe1,
36                    ShiftRight = 0xffe2, ControlLeft = 0xffe3,
37                    ControlRight = 0xffe4, MetaLeft = 0xffe7, MetaRight = 0xffe8,
38                    AltLeft = 0xffe9, AltRight = 0xffea, CapsLock = 0xffe5,
39                    NumLock = 0xff7f, ScrollLock = 0xff14, Keypad0 = 0xffb0,
40                    Keypad1 = 0xffb1, Keypad2 = 0xffb2, Keypad3 = 0xffb3,
41                    Keypad4 = 0xffb4, Keypad5 = 0xffb5, Keypad6 = 0xffb6,
42                    Keypad7 = 0xffb7, Keypad8 = 0xffb8, Keypad9 = 0xffb9,
43                    KeypadMultiply = 0xffaa, KeypadSubtract = 0xffad,
44                    KeypadAdd = 0xffab, KeypadDecimal = 0xffae,
45                    KeypadEnter = 0xff8d, KeypadDivide = 0xffaf,
46                    KeypadEqual = 0xffbd, PlusMinus = 0xb1, SysReq = 0xff15,
47                    LineFeed = 0xff0a, KeypadSeparator = 0xffac, Yen = 0xa5,
48                    Cancel = 0xff69, Undo = 0xff65, Redo = 0xff66, Find = 0xff68,
49                    Print = 0xff61, VolumeDown = 0x1008ff11, Mute = 0x1008ff12,
50                    VolumeUp = 0x1008ff13, Menu = 0xff67,
51                    VNCMenu = 0xffed;  // VNC seems to translate MENU to this
52 
53 }  // namespace xk
54 }  // namespace cuttlefish
55