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 kEscape_ANPKeyCode = 111, 148 kForwardDel_ANPKeyCode = 112, 149 kCtrlLeft_ANPKeyCode = 113, 150 kCtrlRight_ANPKeyCode = 114, 151 kCapsLock_ANPKeyCode = 115, 152 kScrollLock_ANPKeyCode = 116, 153 kMetaLeft_ANPKeyCode = 117, 154 kMetaRight_ANPKeyCode = 118, 155 kFunction_ANPKeyCode = 119, 156 kSysRq_ANPKeyCode = 120, 157 kBreak_ANPKeyCode = 121, 158 kMoveHome_ANPKeyCode = 122, 159 kMoveEnd_ANPKeyCode = 123, 160 kInsert_ANPKeyCode = 124, 161 kForward_ANPKeyCode = 125, 162 kMediaPlay_ANPKeyCode = 126, 163 kMediaPause_ANPKeyCode = 127, 164 kMediaClose_ANPKeyCode = 128, 165 kMediaEject_ANPKeyCode = 129, 166 kMediaRecord_ANPKeyCode = 130, 167 kF1_ANPKeyCode = 131, 168 kF2_ANPKeyCode = 132, 169 kF3_ANPKeyCode = 133, 170 kF4_ANPKeyCode = 134, 171 kF5_ANPKeyCode = 135, 172 kF6_ANPKeyCode = 136, 173 kF7_ANPKeyCode = 137, 174 kF8_ANPKeyCode = 138, 175 kF9_ANPKeyCode = 139, 176 kF10_ANPKeyCode = 140, 177 kF11_ANPKeyCode = 141, 178 kF12_ANPKeyCode = 142, 179 kNumLock_ANPKeyCode = 143, 180 kNumPad0_ANPKeyCode = 144, 181 kNumPad1_ANPKeyCode = 145, 182 kNumPad2_ANPKeyCode = 146, 183 kNumPad3_ANPKeyCode = 147, 184 kNumPad4_ANPKeyCode = 148, 185 kNumPad5_ANPKeyCode = 149, 186 kNumPad6_ANPKeyCode = 150, 187 kNumPad7_ANPKeyCode = 151, 188 kNumPad8_ANPKeyCode = 152, 189 kNumPad9_ANPKeyCode = 153, 190 kNumPadDivide_ANPKeyCode = 154, 191 kNumPadMultiply_ANPKeyCode = 155, 192 kNumPadSubtract_ANPKeyCode = 156, 193 kNumPadAdd_ANPKeyCode = 157, 194 kNumPadDot_ANPKeyCode = 158, 195 kNumPadComma_ANPKeyCode = 159, 196 kNumPadEnter_ANPKeyCode = 160, 197 kNumPadEquals_ANPKeyCode = 161, 198 kNumPadLeftParen_ANPKeyCode = 162, 199 kNumPadRightParen_ANPKeyCode = 163, 200 kVolumeMute_ANPKeyCode = 164, 201 kInfo_ANPKeyCode = 165, 202 kChannelUp_ANPKeyCode = 166, 203 kChannelDown_ANPKeyCode = 167, 204 kZoomIn_ANPKeyCode = 168, 205 kZoomOut_ANPKeyCode = 169, 206 kTv_ANPKeyCode = 170, 207 kWindow_ANPKeyCode = 171, 208 kGuide_ANPKeyCode = 172, 209 kDvr_ANPKeyCode = 173, 210 kBookmark_ANPKeyCode = 174, 211 kCaptions_ANPKeyCode = 175, 212 kSettings_ANPKeyCode = 176, 213 kTvPower_ANPKeyCode = 177, 214 kTvInput_ANPKeyCode = 178, 215 kStbPower_ANPKeyCode = 179, 216 kStbInput_ANPKeyCode = 180, 217 kAvrPower_ANPKeyCode = 181, 218 kAvrInput_ANPKeyCode = 182, 219 kProgRed_ANPKeyCode = 183, 220 kProgGreen_ANPKeyCode = 184, 221 kProgYellow_ANPKeyCode = 185, 222 kProgBlue_ANPKeyCode = 186, 223 kAppSwitch_ANPKeyCode = 187, 224 225 // NOTE: If you add a new keycode here you must also add it to several other files. 226 // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list. 227 }; 228 229 #endif 230