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 APPLE COMPUTER, INC. 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 include/ui/KeycodeLabels.h, which contains more than 33 I want to publish to plugin authors. 34 */ 35 enum ANPKeyCodes { 36 kUnknown_ANPKeyCode = 0, 37 38 kSoftLeft_ANPKeyCode = 1, 39 kSoftRight_ANPKeyCode = 2, 40 kHome_ANPKeyCode = 3, 41 kBack_ANPKeyCode = 4, 42 kCall_ANPKeyCode = 5, 43 kEndCall_ANPKeyCode = 6, 44 k0_ANPKeyCode = 7, 45 k1_ANPKeyCode = 8, 46 k2_ANPKeyCode = 9, 47 k3_ANPKeyCode = 10, 48 k4_ANPKeyCode = 11, 49 k5_ANPKeyCode = 12, 50 k6_ANPKeyCode = 13, 51 k7_ANPKeyCode = 14, 52 k8_ANPKeyCode = 15, 53 k9_ANPKeyCode = 16, 54 kStar_ANPKeyCode = 17, 55 kPound_ANPKeyCode = 18, 56 kDpadUp_ANPKeyCode = 19, 57 kDpadDown_ANPKeyCode = 20, 58 kDpadLeft_ANPKeyCode = 21, 59 kDpadRight_ANPKeyCode = 22, 60 kDpadCenter_ANPKeyCode = 23, 61 kVolumeUp_ANPKeyCode = 24, 62 kVolumeDown_ANPKeyCode = 25, 63 kPower_ANPKeyCode = 26, 64 kCamera_ANPKeyCode = 27, 65 kClear_ANPKeyCode = 28, 66 kA_ANPKeyCode = 29, 67 kB_ANPKeyCode = 30, 68 kC_ANPKeyCode = 31, 69 kD_ANPKeyCode = 32, 70 kE_ANPKeyCode = 33, 71 kF_ANPKeyCode = 34, 72 kG_ANPKeyCode = 35, 73 kH_ANPKeyCode = 36, 74 kI_ANPKeyCode = 37, 75 kJ_ANPKeyCode = 38, 76 kK_ANPKeyCode = 39, 77 kL_ANPKeyCode = 40, 78 kM_ANPKeyCode = 41, 79 kN_ANPKeyCode = 42, 80 kO_ANPKeyCode = 43, 81 kP_ANPKeyCode = 44, 82 kQ_ANPKeyCode = 45, 83 kR_ANPKeyCode = 46, 84 kS_ANPKeyCode = 47, 85 kT_ANPKeyCode = 48, 86 kU_ANPKeyCode = 49, 87 kV_ANPKeyCode = 50, 88 kW_ANPKeyCode = 51, 89 kX_ANPKeyCode = 52, 90 kY_ANPKeyCode = 53, 91 kZ_ANPKeyCode = 54, 92 kComma_ANPKeyCode = 55, 93 kPeriod_ANPKeyCode = 56, 94 kAltLeft_ANPKeyCode = 57, 95 kAltRight_ANPKeyCode = 58, 96 kShiftLeft_ANPKeyCode = 59, 97 kShiftRight_ANPKeyCode = 60, 98 kTab_ANPKeyCode = 61, 99 kSpace_ANPKeyCode = 62, 100 kSym_ANPKeyCode = 63, 101 kExplorer_ANPKeyCode = 64, 102 kEnvelope_ANPKeyCode = 65, 103 kNewline_ANPKeyCode = 66, 104 kDel_ANPKeyCode = 67, 105 kGrave_ANPKeyCode = 68, 106 kMinus_ANPKeyCode = 69, 107 kEquals_ANPKeyCode = 70, 108 kLeftBracket_ANPKeyCode = 71, 109 kRightBracket_ANPKeyCode = 72, 110 kBackslash_ANPKeyCode = 73, 111 kSemicolon_ANPKeyCode = 74, 112 kApostrophe_ANPKeyCode = 75, 113 kSlash_ANPKeyCode = 76, 114 kAt_ANPKeyCode = 77, 115 kNum_ANPKeyCode = 78, 116 kHeadSetHook_ANPKeyCode = 79, 117 kFocus_ANPKeyCode = 80, 118 kPlus_ANPKeyCode = 81, 119 kMenu_ANPKeyCode = 82, 120 kNotification_ANPKeyCode = 83, 121 kSearch_ANPKeyCode = 84 122 }; 123 124 #endif 125 126