//android-ndk-r5b/platforms/android-9/arch-arm/usr/include/android/keycodes.h



/*



* Copyright (C) 2010 The Android Open Source Project



* 版權所有(C)2010 Android 開源工程



*



* Licensed under the Apache License, Version 2.0 (the "License");



* 根據 2.0 版本 Apache 許可證授權



*



* you may not use this file except in compliance with the License.



* 根據本許可證,你可以不使用此檔。



*



* You may obtain a copy of the License at



* 你可以獲得許可證的副本在



*



* HTTP://www.apache.org/licenses/LICENSE-2.0



*



* Unless required by applicable law or agreed to in writing, software



* distributed under the License is distributed on an "AS IS" BASIS,



* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.



* 除非因適用法律需要或書面同意,



* 根據許可證分發的軟體是基於"按原樣"原則提供,無任何明示的或暗示的保證或條件。



*



* See the License for the specific language governing permissions and



* limitations under the License.



* 詳見根據許可證許可下,特定語言的管轄許可權和限制。



*/







#ifndef _ANDROID_KEYCODES_H



#define _ANDROID_KEYCODES_H







/******************************************************************



*



* IMPORTANT NOTICE:



* 重要通知:



*



* This file is part of Android’s set of stable system headers



* exposed by the Android NDK (Native Development Kit).



* 該檔是 Android NDK (本地開發包)的一組不易變化的系統標頭檔的一部分。



*



* Third-party source AND binary code relies on the definitions



* here to be FROZEN ON ALL UPCOMING PLATFORM RELEASES.



* 協力廠商原始程式碼和二進位代碼依賴于這裡的定義在所有即將來臨的平臺發佈版上已是穩定的。



*



* – DO NOT MODIFY ENUMS (EXCEPT IF YOU ADD NEW 32-BIT VALUES)



* – 不修改枚舉類型定義(如果你添加新 32 位值除外)



* – DO NOT MODIFY CONSTANTS OR FUNCTIONAL MACROS



* – 不修改常量或實用的宏



* – DO NOT CHANGE THE SIGNATURE OF FUNCTIONS IN ANY WAY



* – 不以任何方法改變函數的用法



* – DO NOT CHANGE THE LAYOUT OR SIZE OF STRUCTURES



* – 不改變結構體類型的大小或佈局



*/







#include <sys/types.h>







#ifdef __cplusplus



extern "C" {



#endif







/*



* Key codes.



* 鍵碼。



*/



enum {



AKEYCODE_UNKNOWN = 0,



AKEYCODE_SOFT_LEFT = 1,



AKEYCODE_SOFT_RIGHT = 2,



AKEYCODE_HOME = 3,



AKEYCODE_BACK = 4,



AKEYCODE_CALL = 5,



AKEYCODE_ENDCALL = 6,



AKEYCODE_0 = 7,



AKEYCODE_1 = 8,



AKEYCODE_2 = 9,



AKEYCODE_3 = 10,



AKEYCODE_4 = 11,



AKEYCODE_5 = 12,



AKEYCODE_6 = 13,



AKEYCODE_7 = 14,



AKEYCODE_8 = 15,



AKEYCODE_9 = 16,



AKEYCODE_STAR = 17,



AKEYCODE_POUND = 18,



AKEYCODE_DPAD_UP = 19,



AKEYCODE_DPAD_DOWN = 20,



AKEYCODE_DPAD_LEFT = 21,



AKEYCODE_DPAD_RIGHT = 22,



AKEYCODE_DPAD_CENTER = 23,



AKEYCODE_VOLUME_UP = 24,



AKEYCODE_VOLUME_DOWN = 25,



AKEYCODE_POWER = 26,



AKEYCODE_CAMERA = 27,



AKEYCODE_CLEAR = 28,



AKEYCODE_A = 29,



AKEYCODE_B = 30,



AKEYCODE_C = 31,



AKEYCODE_D = 32,



AKEYCODE_E = 33,



AKEYCODE_F = 34,



AKEYCODE_G = 35,



AKEYCODE_H = 36,



AKEYCODE_I = 37,



AKEYCODE_J = 38,



AKEYCODE_K = 39,



AKEYCODE_L = 40,



AKEYCODE_M = 41,



AKEYCODE_N = 42,



AKEYCODE_O = 43,



AKEYCODE_P = 44,



AKEYCODE_Q = 45,



AKEYCODE_R = 46,



AKEYCODE_S = 47,



AKEYCODE_T = 48,



AKEYCODE_U = 49,



AKEYCODE_V = 50,



AKEYCODE_W = 51,



AKEYCODE_X = 52,



AKEYCODE_Y = 53,



AKEYCODE_Z = 54,



AKEYCODE_COMMA = 55,



AKEYCODE_PERIOD = 56,



AKEYCODE_ALT_LEFT = 57,



AKEYCODE_ALT_RIGHT = 58,



AKEYCODE_SHIFT_LEFT = 59,



AKEYCODE_SHIFT_RIGHT = 60,



AKEYCODE_TAB = 61,



AKEYCODE_SPACE = 62,



AKEYCODE_SYM = 63,



AKEYCODE_EXPLORER = 64,



AKEYCODE_ENVELOPE = 65,



AKEYCODE_ENTER = 66,



AKEYCODE_DEL = 67,



AKEYCODE_GRAVE = 68,



AKEYCODE_MINUS = 69,



AKEYCODE_EQUALS = 70,



AKEYCODE_LEFT_BRACKET = 71,



AKEYCODE_RIGHT_BRACKET = 72,



AKEYCODE_BACKSLASH = 73,



AKEYCODE_SEMICOLON = 74,



AKEYCODE_APOSTROPHE = 75,



AKEYCODE_SLASH = 76,



AKEYCODE_AT = 77,



AKEYCODE_NUM = 78,



AKEYCODE_HEADSETHOOK = 79,



AKEYCODE_FOCUS = 80, // *Camera* focus(攝像頭聚焦)



AKEYCODE_PLUS = 81,



AKEYCODE_MENU = 82,



AKEYCODE_NOTIFICATION = 83,



AKEYCODE_SEARCH = 84,



AKEYCODE_MEDIA_PLAY_PAUSE= 85,



AKEYCODE_MEDIA_STOP = 86,



AKEYCODE_MEDIA_NEXT = 87,



AKEYCODE_MEDIA_PREVIOUS = 88,



AKEYCODE_MEDIA_REWIND = 89,



AKEYCODE_MEDIA_FAST_FORWARD = 90,



AKEYCODE_MUTE = 91,



AKEYCODE_PAGE_UP = 92,



AKEYCODE_PAGE_DOWN = 93,



AKEYCODE_PICTSYMBOLS = 94,



AKEYCODE_SWITCH_CHARSET = 95,



AKEYCODE_BUTTON_A = 96,



AKEYCODE_BUTTON_B = 97,



AKEYCODE_BUTTON_C = 98,



AKEYCODE_BUTTON_X = 99,



AKEYCODE_BUTTON_Y = 100,



AKEYCODE_BUTTON_Z = 101,



AKEYCODE_BUTTON_L1 = 102,



AKEYCODE_BUTTON_R1 = 103,



AKEYCODE_BUTTON_L2 = 104,



AKEYCODE_BUTTON_R2 = 105,



AKEYCODE_BUTTON_THUMBL = 106,



AKEYCODE_BUTTON_THUMBR = 107,



AKEYCODE_BUTTON_START = 108,



AKEYCODE_BUTTON_SELECT = 109,



AKEYCODE_BUTTON_MODE = 110,







// NOTE:



// 注意:



// If you add a new keycode here you must also add it to several other files.



// 如果你添加一個新鍵碼在這裡,你必須同樣添加它到若干其它檔中。



// Refer to frameworks/base/core/java/android/view/KeyEvent.java



// for the full list.



// 全部檔案清單參見 frameworks/base/core/java/android/view/KeyEvent.java



};







#ifdef __cplusplus



}



#endif







#endif // _ANDROID_KEYCODES_H
 
創作者介紹
創作者 shadow 的頭像
shadow

資訊園

shadow 發表在 痞客邦 留言(0) 人氣()