mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-06 06:08:24 +08:00
add keycodes for compatible with old version
This commit is contained in:
parent
606e073325
commit
5712f6ef29
242
src/gui/view/keycodes.h
Normal file
242
src/gui/view/keycodes.h
Normal file
@ -0,0 +1,242 @@
|
||||
#ifndef __KEYCODES_H__
|
||||
#define __KEYCODES_H__
|
||||
#include <view/keyevent.h>
|
||||
|
||||
#define DEFINEKEY( KEYNAME ) KEY_##KEYNAME=cdroid::KeyEvent::KEYCODE_##KEYNAME
|
||||
namespace cdroid{
|
||||
/* Key codes.*/
|
||||
enum {
|
||||
DEFINEKEY(UNKNOWN),
|
||||
DEFINEKEY(SOFT_LEFT),
|
||||
DEFINEKEY(SOFT_RIGHT),
|
||||
DEFINEKEY(HOME),
|
||||
DEFINEKEY(BACK),
|
||||
DEFINEKEY(CALL),
|
||||
DEFINEKEY(ENDCALL),
|
||||
DEFINEKEY(0),
|
||||
DEFINEKEY(1),
|
||||
DEFINEKEY(2),
|
||||
DEFINEKEY(3),
|
||||
DEFINEKEY(4),
|
||||
DEFINEKEY(5),
|
||||
DEFINEKEY(6),
|
||||
DEFINEKEY(7),
|
||||
DEFINEKEY(8),
|
||||
DEFINEKEY(9),
|
||||
DEFINEKEY(STAR),
|
||||
DEFINEKEY(POUND),
|
||||
DEFINEKEY(DPAD_UP),
|
||||
DEFINEKEY(DPAD_DOWN),
|
||||
DEFINEKEY(DPAD_LEFT),
|
||||
DEFINEKEY(DPAD_RIGHT),
|
||||
DEFINEKEY(DPAD_CENTER),
|
||||
DEFINEKEY(VOLUME_UP),
|
||||
DEFINEKEY(VOLUME_DOWN),
|
||||
DEFINEKEY(POWER),
|
||||
DEFINEKEY(CAMERA),
|
||||
DEFINEKEY(CLEAR),
|
||||
DEFINEKEY(A),
|
||||
DEFINEKEY(B),
|
||||
DEFINEKEY(C),
|
||||
DEFINEKEY(D),
|
||||
DEFINEKEY(E),
|
||||
DEFINEKEY(F),
|
||||
DEFINEKEY(G),
|
||||
DEFINEKEY(H),
|
||||
DEFINEKEY(I),
|
||||
DEFINEKEY(J),
|
||||
DEFINEKEY(K),
|
||||
DEFINEKEY(L),
|
||||
DEFINEKEY(M),
|
||||
DEFINEKEY(N),
|
||||
DEFINEKEY(O),
|
||||
DEFINEKEY(P),
|
||||
DEFINEKEY(Q),
|
||||
DEFINEKEY(R),
|
||||
DEFINEKEY(S),
|
||||
DEFINEKEY(T),
|
||||
DEFINEKEY(U),
|
||||
DEFINEKEY(V),
|
||||
DEFINEKEY(W),
|
||||
DEFINEKEY(X),
|
||||
DEFINEKEY(Y),
|
||||
DEFINEKEY(Z),
|
||||
DEFINEKEY(COMMA),
|
||||
DEFINEKEY(PERIOD),
|
||||
DEFINEKEY(ALT_LEFT),
|
||||
DEFINEKEY(ALT_RIGHT),
|
||||
DEFINEKEY(SHIFT_LEFT),
|
||||
DEFINEKEY(SHIFT_RIGHT),
|
||||
DEFINEKEY(TAB),
|
||||
DEFINEKEY(SPACE),
|
||||
DEFINEKEY(SYM),
|
||||
DEFINEKEY(EXPLORER),
|
||||
DEFINEKEY(ENVELOPE),
|
||||
DEFINEKEY(ENTER),
|
||||
DEFINEKEY(DEL),
|
||||
DEFINEKEY(GRAVE),
|
||||
DEFINEKEY(MINUS),
|
||||
DEFINEKEY(EQUALS),
|
||||
DEFINEKEY(LEFTBRACE),
|
||||
DEFINEKEY(RIGHTBRACE),
|
||||
DEFINEKEY(BACKSLASH),
|
||||
DEFINEKEY(SEMICOLON),
|
||||
DEFINEKEY(APOSTROPHE),
|
||||
DEFINEKEY(SLASH),
|
||||
DEFINEKEY(AT),
|
||||
DEFINEKEY(NUM),
|
||||
DEFINEKEY(HEADSETHOOK),
|
||||
DEFINEKEY(FOCUS), // *Camera* focus
|
||||
DEFINEKEY(PLUS),
|
||||
DEFINEKEY(MENU),
|
||||
DEFINEKEY(NOTIFICATION),
|
||||
DEFINEKEY(SEARCH),
|
||||
DEFINEKEY(MEDIA_PLAY_PAUSE),
|
||||
DEFINEKEY(MEDIA_STOP),
|
||||
DEFINEKEY(MEDIA_NEXT),
|
||||
DEFINEKEY(MEDIA_PREVIOUS),
|
||||
DEFINEKEY(MEDIA_REWIND),
|
||||
DEFINEKEY(MEDIA_FAST_FORWARD),
|
||||
DEFINEKEY(MUTE),
|
||||
DEFINEKEY(PAGE_UP),
|
||||
DEFINEKEY(PAGE_DOWN),
|
||||
DEFINEKEY(PICTSYMBOLS),
|
||||
DEFINEKEY(SWITCH_CHARSET),
|
||||
DEFINEKEY(BUTTON_A),
|
||||
DEFINEKEY(BUTTON_B),
|
||||
DEFINEKEY(BUTTON_C),
|
||||
DEFINEKEY(BUTTON_X),
|
||||
DEFINEKEY(BUTTON_Y),
|
||||
DEFINEKEY(BUTTON_Z),
|
||||
DEFINEKEY(BUTTON_L1),
|
||||
DEFINEKEY(BUTTON_R1),
|
||||
DEFINEKEY(BUTTON_L2),
|
||||
DEFINEKEY(BUTTON_R2),
|
||||
DEFINEKEY(BUTTON_THUMBL),
|
||||
DEFINEKEY(BUTTON_THUMBR),
|
||||
DEFINEKEY(BUTTON_START),
|
||||
DEFINEKEY(BUTTON_SELECT),
|
||||
DEFINEKEY(BUTTON_MODE),
|
||||
DEFINEKEY(ESCAPE),
|
||||
DEFINEKEY(BACKSPACE),
|
||||
DEFINEKEY(CTRL_LEFT),
|
||||
DEFINEKEY(CTRL_RIGHT),
|
||||
DEFINEKEY(CAPS_LOCK),
|
||||
DEFINEKEY(SCROLL_LOCK),
|
||||
DEFINEKEY(META_LEFT),
|
||||
DEFINEKEY(META_RIGHT),
|
||||
DEFINEKEY(FUNCTION),
|
||||
DEFINEKEY(SYSRQ),
|
||||
DEFINEKEY(BREAK),
|
||||
DEFINEKEY(MOVE_HOME),
|
||||
DEFINEKEY(MOVE_END),
|
||||
DEFINEKEY(INSERT),
|
||||
DEFINEKEY(FORWARD),
|
||||
DEFINEKEY(MEDIA_PLAY),
|
||||
DEFINEKEY(MEDIA_PAUSE),
|
||||
DEFINEKEY(MEDIA_CLOSE),
|
||||
DEFINEKEY(MEDIA_EJECT),
|
||||
DEFINEKEY(MEDIA_RECORD),
|
||||
DEFINEKEY(F1),
|
||||
DEFINEKEY(F2),
|
||||
DEFINEKEY(F3),
|
||||
DEFINEKEY(F4),
|
||||
DEFINEKEY(F5),
|
||||
DEFINEKEY(F6),
|
||||
DEFINEKEY(F7),
|
||||
DEFINEKEY(F8),
|
||||
DEFINEKEY(F9),
|
||||
DEFINEKEY(F10),
|
||||
DEFINEKEY(F11),
|
||||
DEFINEKEY(F12),
|
||||
DEFINEKEY(NUM_LOCK),
|
||||
DEFINEKEY(NUMPAD_0),
|
||||
DEFINEKEY(NUMPAD_1),
|
||||
DEFINEKEY(NUMPAD_2),
|
||||
DEFINEKEY(NUMPAD_3),
|
||||
DEFINEKEY(NUMPAD_4),
|
||||
DEFINEKEY(NUMPAD_5),
|
||||
DEFINEKEY(NUMPAD_6),
|
||||
DEFINEKEY(NUMPAD_7),
|
||||
DEFINEKEY(NUMPAD_8),
|
||||
DEFINEKEY(NUMPAD_9),
|
||||
DEFINEKEY(NUMPAD_DIVIDE),
|
||||
DEFINEKEY(NUMPAD_MULTIPLY),
|
||||
DEFINEKEY(NUMPAD_SUBTRACT),
|
||||
DEFINEKEY(NUMPAD_ADD),
|
||||
DEFINEKEY(NUMPAD_DOT),
|
||||
DEFINEKEY(NUMPAD_COMMA),
|
||||
DEFINEKEY(NUMPAD_ENTER),
|
||||
DEFINEKEY(NUMPAD_EQUALS),
|
||||
DEFINEKEY(NUMPAD_LEFT_PAREN),
|
||||
DEFINEKEY(NUMPAD_RIGHT_PAREN),
|
||||
DEFINEKEY(VOLUME_MUTE),
|
||||
DEFINEKEY(INFO),
|
||||
DEFINEKEY(CHANNEL_UP),
|
||||
DEFINEKEY(CHANNEL_DOWN),
|
||||
DEFINEKEY(ZOOM_IN),
|
||||
DEFINEKEY(ZOOM_OUT),
|
||||
DEFINEKEY(TV),
|
||||
DEFINEKEY(WINDOW),
|
||||
DEFINEKEY(GUIDE),
|
||||
DEFINEKEY(DVR),
|
||||
DEFINEKEY(BOOKMARK),
|
||||
DEFINEKEY(CAPTIONS),
|
||||
DEFINEKEY(SETTINGS),
|
||||
DEFINEKEY(TV_POWER),
|
||||
DEFINEKEY(TV_INPUT),
|
||||
DEFINEKEY(STB_POWER),
|
||||
DEFINEKEY(STB_INPUT),
|
||||
DEFINEKEY(AVR_POWER),
|
||||
DEFINEKEY(AVR_INPUT),
|
||||
DEFINEKEY(PROG_RED),
|
||||
DEFINEKEY(PROG_GREEN),
|
||||
DEFINEKEY(PROG_YELLOW),
|
||||
DEFINEKEY(PROG_BLUE),
|
||||
DEFINEKEY(APP_SWITCH),
|
||||
DEFINEKEY(BUTTON_1),
|
||||
DEFINEKEY(BUTTON_2),
|
||||
DEFINEKEY(BUTTON_3),
|
||||
DEFINEKEY(BUTTON_4),
|
||||
DEFINEKEY(BUTTON_5),
|
||||
DEFINEKEY(BUTTON_6),
|
||||
DEFINEKEY(BUTTON_7),
|
||||
DEFINEKEY(BUTTON_8),
|
||||
DEFINEKEY(BUTTON_9),
|
||||
DEFINEKEY(BUTTON_10),
|
||||
DEFINEKEY(BUTTON_11),
|
||||
DEFINEKEY(BUTTON_12),
|
||||
DEFINEKEY(BUTTON_13),
|
||||
DEFINEKEY(BUTTON_14),
|
||||
DEFINEKEY(BUTTON_15),
|
||||
DEFINEKEY(BUTTON_16),
|
||||
DEFINEKEY(LANGUAGE_SWITCH),
|
||||
DEFINEKEY(MANNER_MODE),
|
||||
DEFINEKEY(3D_MODE),
|
||||
DEFINEKEY(CONTACTS),
|
||||
DEFINEKEY(CALENDAR),
|
||||
DEFINEKEY(MUSIC),
|
||||
DEFINEKEY(CALCULATOR),
|
||||
DEFINEKEY(ZENKAKU_HANKAKU),
|
||||
DEFINEKEY(EISU),
|
||||
DEFINEKEY(MUHENKAN),
|
||||
DEFINEKEY(HENKAN),
|
||||
DEFINEKEY(KATAKANA_HIRAGANA),
|
||||
DEFINEKEY(YEN),
|
||||
DEFINEKEY(RO),
|
||||
DEFINEKEY(KANA),
|
||||
DEFINEKEY(ASSIST),
|
||||
DEFINEKEY(BRIGHTNESS_DOWN),
|
||||
DEFINEKEY(BRIGHTNESS_UP),
|
||||
DEFINEKEY(MEDIA_AUDIO_TRACK),
|
||||
/////////////////////////////////////////
|
||||
DEFINEKEY(HELP),
|
||||
DEFINEKEY(SLEEP),
|
||||
DEFINEKEY(WAKEUP),
|
||||
// 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.
|
||||
};
|
||||
}/*endof namespace*/
|
||||
|
||||
#endif // __KEYCODES_H__
|
||||
|
@ -498,5 +498,5 @@ enum{
|
||||
|
||||
};/*endof class KeyEvent*/
|
||||
}/*endof namespace*/
|
||||
|
||||
#include <view/keycodes.h>
|
||||
#endif/*__KEY_EVENT_H__*/
|
||||
|
Loading…
Reference in New Issue
Block a user