2
* Copyright (C) 2010 The Android Open Source Project
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
17
#ifndef _ANDROID_KEYCODES_H
18
#define _ANDROID_KEYCODES_H
20
/******************************************************************
24
* This file is part of Android's set of stable system headers
25
* exposed by the Android NDK (Native Development Kit).
27
* Third-party source AND binary code relies on the definitions
28
* here to be FROZEN ON ALL UPCOMING PLATFORM RELEASES.
30
* - DO NOT MODIFY ENUMS (EXCEPT IF YOU ADD NEW 32-BIT VALUES)
31
* - DO NOT MODIFY CONSTANTS OR FUNCTIONAL MACROS
32
* - DO NOT CHANGE THE SIGNATURE OF FUNCTIONS IN ANY WAY
33
* - DO NOT CHANGE THE LAYOUT OR SIZE OF STRUCTURES
36
#include <sys/types.h>
47
AKEYCODE_SOFT_LEFT = 1,
48
AKEYCODE_SOFT_RIGHT = 2,
65
AKEYCODE_DPAD_UP = 19,
66
AKEYCODE_DPAD_DOWN = 20,
67
AKEYCODE_DPAD_LEFT = 21,
68
AKEYCODE_DPAD_RIGHT = 22,
69
AKEYCODE_DPAD_CENTER = 23,
70
AKEYCODE_VOLUME_UP = 24,
71
AKEYCODE_VOLUME_DOWN = 25,
102
AKEYCODE_PERIOD = 56,
103
AKEYCODE_ALT_LEFT = 57,
104
AKEYCODE_ALT_RIGHT = 58,
105
AKEYCODE_SHIFT_LEFT = 59,
106
AKEYCODE_SHIFT_RIGHT = 60,
110
AKEYCODE_EXPLORER = 64,
111
AKEYCODE_ENVELOPE = 65,
116
AKEYCODE_EQUALS = 70,
117
AKEYCODE_LEFT_BRACKET = 71,
118
AKEYCODE_RIGHT_BRACKET = 72,
119
AKEYCODE_BACKSLASH = 73,
120
AKEYCODE_SEMICOLON = 74,
121
AKEYCODE_APOSTROPHE = 75,
125
AKEYCODE_HEADSETHOOK = 79,
126
AKEYCODE_FOCUS = 80, // *Camera* focus
129
AKEYCODE_NOTIFICATION = 83,
130
AKEYCODE_SEARCH = 84,
131
AKEYCODE_MEDIA_PLAY_PAUSE= 85,
132
AKEYCODE_MEDIA_STOP = 86,
133
AKEYCODE_MEDIA_NEXT = 87,
134
AKEYCODE_MEDIA_PREVIOUS = 88,
135
AKEYCODE_MEDIA_REWIND = 89,
136
AKEYCODE_MEDIA_FAST_FORWARD = 90,
138
AKEYCODE_PAGE_UP = 92,
139
AKEYCODE_PAGE_DOWN = 93,
140
AKEYCODE_PICTSYMBOLS = 94,
141
AKEYCODE_SWITCH_CHARSET = 95,
142
AKEYCODE_BUTTON_A = 96,
143
AKEYCODE_BUTTON_B = 97,
144
AKEYCODE_BUTTON_C = 98,
145
AKEYCODE_BUTTON_X = 99,
146
AKEYCODE_BUTTON_Y = 100,
147
AKEYCODE_BUTTON_Z = 101,
148
AKEYCODE_BUTTON_L1 = 102,
149
AKEYCODE_BUTTON_R1 = 103,
150
AKEYCODE_BUTTON_L2 = 104,
151
AKEYCODE_BUTTON_R2 = 105,
152
AKEYCODE_BUTTON_THUMBL = 106,
153
AKEYCODE_BUTTON_THUMBR = 107,
154
AKEYCODE_BUTTON_START = 108,
155
AKEYCODE_BUTTON_SELECT = 109,
156
AKEYCODE_BUTTON_MODE = 110,
158
// NOTE: If you add a new keycode here you must also add it to several other files.
159
// Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
166
#endif // _ANDROID_KEYCODES_H