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