• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2008, The Android Open Source Project
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *  * Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  *  * Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
14  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  */
25 
26 #ifndef ANPKeyCodes_DEFINED
27 #define ANPKeyCodes_DEFINED
28 
29 /*  List the key codes that are set to a plugin in the ANPKeyEvent.
30 
31     These exactly match the values in android/view/KeyEvent.java and the
32     corresponding .h file android/keycodes.h.
33 */
34 enum ANPKeyCodes {
35     kUnknown_ANPKeyCode = 0,
36 
37     kSoftLeft_ANPKeyCode = 1,
38     kSoftRight_ANPKeyCode = 2,
39     kHome_ANPKeyCode = 3,
40     kBack_ANPKeyCode = 4,
41     kCall_ANPKeyCode = 5,
42     kEndCall_ANPKeyCode = 6,
43     k0_ANPKeyCode = 7,
44     k1_ANPKeyCode = 8,
45     k2_ANPKeyCode = 9,
46     k3_ANPKeyCode = 10,
47     k4_ANPKeyCode = 11,
48     k5_ANPKeyCode = 12,
49     k6_ANPKeyCode = 13,
50     k7_ANPKeyCode = 14,
51     k8_ANPKeyCode = 15,
52     k9_ANPKeyCode = 16,
53     kStar_ANPKeyCode = 17,
54     kPound_ANPKeyCode = 18,
55     kDpadUp_ANPKeyCode = 19,
56     kDpadDown_ANPKeyCode = 20,
57     kDpadLeft_ANPKeyCode = 21,
58     kDpadRight_ANPKeyCode = 22,
59     kDpadCenter_ANPKeyCode = 23,
60     kVolumeUp_ANPKeyCode = 24,
61     kVolumeDown_ANPKeyCode = 25,
62     kPower_ANPKeyCode = 26,
63     kCamera_ANPKeyCode = 27,
64     kClear_ANPKeyCode = 28,
65     kA_ANPKeyCode = 29,
66     kB_ANPKeyCode = 30,
67     kC_ANPKeyCode = 31,
68     kD_ANPKeyCode = 32,
69     kE_ANPKeyCode = 33,
70     kF_ANPKeyCode = 34,
71     kG_ANPKeyCode = 35,
72     kH_ANPKeyCode = 36,
73     kI_ANPKeyCode = 37,
74     kJ_ANPKeyCode = 38,
75     kK_ANPKeyCode = 39,
76     kL_ANPKeyCode = 40,
77     kM_ANPKeyCode = 41,
78     kN_ANPKeyCode = 42,
79     kO_ANPKeyCode = 43,
80     kP_ANPKeyCode = 44,
81     kQ_ANPKeyCode = 45,
82     kR_ANPKeyCode = 46,
83     kS_ANPKeyCode = 47,
84     kT_ANPKeyCode = 48,
85     kU_ANPKeyCode = 49,
86     kV_ANPKeyCode = 50,
87     kW_ANPKeyCode = 51,
88     kX_ANPKeyCode = 52,
89     kY_ANPKeyCode = 53,
90     kZ_ANPKeyCode = 54,
91     kComma_ANPKeyCode = 55,
92     kPeriod_ANPKeyCode = 56,
93     kAltLeft_ANPKeyCode = 57,
94     kAltRight_ANPKeyCode = 58,
95     kShiftLeft_ANPKeyCode = 59,
96     kShiftRight_ANPKeyCode = 60,
97     kTab_ANPKeyCode = 61,
98     kSpace_ANPKeyCode = 62,
99     kSym_ANPKeyCode = 63,
100     kExplorer_ANPKeyCode = 64,
101     kEnvelope_ANPKeyCode = 65,
102     kNewline_ANPKeyCode = 66,
103     kDel_ANPKeyCode = 67,
104     kGrave_ANPKeyCode = 68,
105     kMinus_ANPKeyCode = 69,
106     kEquals_ANPKeyCode = 70,
107     kLeftBracket_ANPKeyCode = 71,
108     kRightBracket_ANPKeyCode = 72,
109     kBackslash_ANPKeyCode = 73,
110     kSemicolon_ANPKeyCode = 74,
111     kApostrophe_ANPKeyCode = 75,
112     kSlash_ANPKeyCode = 76,
113     kAt_ANPKeyCode = 77,
114     kNum_ANPKeyCode = 78,
115     kHeadSetHook_ANPKeyCode = 79,
116     kFocus_ANPKeyCode = 80,
117     kPlus_ANPKeyCode = 81,
118     kMenu_ANPKeyCode = 82,
119     kNotification_ANPKeyCode = 83,
120     kSearch_ANPKeyCode = 84,
121     kMediaPlayPause_ANPKeyCode = 85,
122     kMediaStop_ANPKeyCode = 86,
123     kMediaNext_ANPKeyCode = 87,
124     kMediaPrevious_ANPKeyCode = 88,
125     kMediaRewind_ANPKeyCode = 89,
126     kMediaFastForward_ANPKeyCode = 90,
127     kMute_ANPKeyCode = 91,
128     kPageUp_ANPKeyCode = 92,
129     kPageDown_ANPKeyCode = 93,
130     kPictsymbols_ANPKeyCode = 94,
131     kSwitchCharset_ANPKeyCode = 95,
132     kButtonA_ANPKeyCode = 96,
133     kButtonB_ANPKeyCode = 97,
134     kButtonC_ANPKeyCode = 98,
135     kButtonX_ANPKeyCode = 99,
136     kButtonY_ANPKeyCode = 100,
137     kButtonZ_ANPKeyCode = 101,
138     kButtonL1_ANPKeyCode = 102,
139     kButtonR1_ANPKeyCode = 103,
140     kButtonL2_ANPKeyCode = 104,
141     kButtonR2_ANPKeyCode = 105,
142     kButtonThumbL_ANPKeyCode = 106,
143     kButtonThumbR_ANPKeyCode = 107,
144     kButtonStart_ANPKeyCode = 108,
145     kButtonSelect_ANPKeyCode = 109,
146     kButtonMode_ANPKeyCode = 110,
147 
148     // NOTE: If you add a new keycode here you must also add it to several other files.
149     //       Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
150 };
151 
152 #endif
153