Open StacktraceException opened 3 years ago
Same here. I am trying to map my game pad key to the windows key + magnifying glass key without success.
Could you help identify the exact "key" that is used in the app? @farmerbb @utzcoz
I tried to pick keys from the following list:
KeyEvent.KEYCODE_VOLUME_DOWN to "Vol down",
KeyEvent.KEYCODE_VOLUME_UP to "Vol up",
KeyEvent.KEYCODE_CTRL_LEFT to "Ctrl Left",
KeyEvent.KEYCODE_CTRL_RIGHT to "Ctrl Right",
KeyEvent.KEYCODE_SHIFT_LEFT to "Shift Left",
KeyEvent.KEYCODE_SHIFT_RIGHT to "Shift Right",
KeyEvent.KEYCODE_ALT_LEFT to "Alt Left",
KeyEvent.KEYCODE_ALT_RIGHT to "Alt Right",
KeyEvent.KEYCODE_DPAD_LEFT to "Left",
KeyEvent.KEYCODE_DPAD_RIGHT to "Right",
KeyEvent.KEYCODE_DPAD_DOWN to "Down",
KeyEvent.KEYCODE_DPAD_UP to "Up",
KeyEvent.KEYCODE_ENTER to "Enter",
KeyEvent.KEYCODE_HOME to "Home",
KeyEvent.KEYCODE_BACK to "Back",
KeyEvent.KEYCODE_MENU to "Menu",
KeyEvent.KEYCODE_APP_SWITCH to "Recents",
KeyEvent.KEYCODE_DEL to "Delete",
KeyEvent.KEYCODE_TAB to "Tab",
KeyEvent.KEYCODE_SPACE to "Space",
KeyEvent.KEYCODE_SEARCH to "Search",
KeyEvent.KEYCODE_CAPS_LOCK to "Caps Lock",
KeyEvent.KEYCODE_HEADSETHOOK to "Headset Button",
KeyEvent.KEYCODE_NUM_LOCK to "Num Lock",
KeyEvent.KEYCODE_BUTTON_1 to "Button 1",
KeyEvent.KEYCODE_BUTTON_2 to "Button 2",
KeyEvent.KEYCODE_BUTTON_3 to "Button 3",
KeyEvent.KEYCODE_BUTTON_4 to "Button 4",
KeyEvent.KEYCODE_BUTTON_5 to "Button 5",
KeyEvent.KEYCODE_BUTTON_6 to "Button 6",
KeyEvent.KEYCODE_BUTTON_7 to "Button 7",
KeyEvent.KEYCODE_BUTTON_8 to "Button 8",
KeyEvent.KEYCODE_BUTTON_9 to "Button 9",
KeyEvent.KEYCODE_BUTTON_10 to "Button 10",
KeyEvent.KEYCODE_BUTTON_11 to "Button 11",
KeyEvent.KEYCODE_BUTTON_12 to "Button 12",
KeyEvent.KEYCODE_BUTTON_13 to "Button 13",
KeyEvent.KEYCODE_BUTTON_14 to "Button 14",
KeyEvent.KEYCODE_BUTTON_15 to "Button 15",
KeyEvent.KEYCODE_BUTTON_16 to "Button 16",
KeyEvent.KEYCODE_BUTTON_L1 to "Button L1",
KeyEvent.KEYCODE_BUTTON_L2 to "Button L2",
KeyEvent.KEYCODE_BUTTON_R1 to "Button R1",
KeyEvent.KEYCODE_BUTTON_R2 to "Button R2",
KeyEvent.KEYCODE_BUTTON_A to "Button A",
KeyEvent.KEYCODE_BUTTON_B to "Button B",
KeyEvent.KEYCODE_BUTTON_C to "Button C",
KeyEvent.KEYCODE_BUTTON_X to "Button X",
KeyEvent.KEYCODE_BUTTON_Y to "Button Y",
KeyEvent.KEYCODE_BUTTON_Z to "Button Z",
KeyEvent.KEYCODE_BUTTON_THUMBL to "Thumb Left",
KeyEvent.KEYCODE_BUTTON_THUMBR to "Thumb Right",
KeyEvent.KEYCODE_BUTTON_START to "Start",
KeyEvent.KEYCODE_BUTTON_SELECT to "Select",
KeyEvent.KEYCODE_SOFT_LEFT to "SOFT_LEFT",
KeyEvent.KEYCODE_SOFT_RIGHT to "SOFT_RIGHT",
KeyEvent.KEYCODE_CALL to "Call",
KeyEvent.KEYCODE_ENDCALL to "End Call",
KeyEvent.KEYCODE_0 to "0",
KeyEvent.KEYCODE_1 to "1",
KeyEvent.KEYCODE_2 to "2",
KeyEvent.KEYCODE_3 to "3",
KeyEvent.KEYCODE_4 to "4",
KeyEvent.KEYCODE_5 to "5",
KeyEvent.KEYCODE_6 to "6",
KeyEvent.KEYCODE_7 to "7",
KeyEvent.KEYCODE_8 to "8",
KeyEvent.KEYCODE_9 to "9",
KeyEvent.KEYCODE_STAR to "*",
KeyEvent.KEYCODE_POUND to "#",
KeyEvent.KEYCODE_DPAD_CENTER to "DPAD Center",
KeyEvent.KEYCODE_POWER to "Power",
KeyEvent.KEYCODE_CAMERA to "Camera",
KeyEvent.KEYCODE_CLEAR to "Clear",
KeyEvent.KEYCODE_A to "A",
KeyEvent.KEYCODE_B to "B",
KeyEvent.KEYCODE_C to "C",
KeyEvent.KEYCODE_D to "D",
KeyEvent.KEYCODE_E to "E",
KeyEvent.KEYCODE_F to "F",
KeyEvent.KEYCODE_G to "G",
KeyEvent.KEYCODE_H to "H",
KeyEvent.KEYCODE_I to "I",
KeyEvent.KEYCODE_J to "J",
KeyEvent.KEYCODE_K to "K",
KeyEvent.KEYCODE_L to "L",
KeyEvent.KEYCODE_M to "M",
KeyEvent.KEYCODE_N to "N",
KeyEvent.KEYCODE_O to "O",
KeyEvent.KEYCODE_P to "P",
KeyEvent.KEYCODE_Q to "Q",
KeyEvent.KEYCODE_R to "R",
KeyEvent.KEYCODE_S to "S",
KeyEvent.KEYCODE_T to "T",
KeyEvent.KEYCODE_U to "U",
KeyEvent.KEYCODE_V to "V",
KeyEvent.KEYCODE_W to "W",
KeyEvent.KEYCODE_X to "X",
KeyEvent.KEYCODE_Y to "Y",
KeyEvent.KEYCODE_Z to "Z",
KeyEvent.KEYCODE_COMMA to ",",
KeyEvent.KEYCODE_PERIOD to ".",
KeyEvent.KEYCODE_SYM to "Symbol",
KeyEvent.KEYCODE_EXPLORER to "Explorer",
KeyEvent.KEYCODE_ENVELOPE to "Mail",
KeyEvent.KEYCODE_GRAVE to "`",
KeyEvent.KEYCODE_MINUS to "-",
KeyEvent.KEYCODE_EQUALS to "=",
KeyEvent.KEYCODE_LEFT_BRACKET to "(",
KeyEvent.KEYCODE_RIGHT_BRACKET to ")",
KeyEvent.KEYCODE_BACKSLASH to "\\",
KeyEvent.KEYCODE_SEMICOLON to ";",
KeyEvent.KEYCODE_APOSTROPHE to "'",
KeyEvent.KEYCODE_SLASH to "/",
KeyEvent.KEYCODE_AT to "@",
KeyEvent.KEYCODE_NUM to "Num",
KeyEvent.KEYCODE_FOCUS to "Focus",
KeyEvent.KEYCODE_PLUS to "+",
KeyEvent.KEYCODE_NOTIFICATION to "Notification",
KeyEvent.KEYCODE_SEARCH to "Search",
KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE to "Play/Pause",
KeyEvent.KEYCODE_MEDIA_STOP to "Stop Media",
KeyEvent.KEYCODE_MEDIA_NEXT to "Play Next",
KeyEvent.KEYCODE_MEDIA_PREVIOUS to "Play Previous",
KeyEvent.KEYCODE_MEDIA_REWIND to "Rewind",
KeyEvent.KEYCODE_MEDIA_FAST_FORWARD to "Fast Forward",
KeyEvent.KEYCODE_MUTE to "Mute Microphone",
KeyEvent.KEYCODE_PAGE_UP to "Page Up",
KeyEvent.KEYCODE_PAGE_DOWN to "Page Down",
KeyEvent.KEYCODE_PICTSYMBOLS to "Picture Symbols",
KeyEvent.KEYCODE_SWITCH_CHARSET to "Switch Charset",
KeyEvent.KEYCODE_BUTTON_MODE to "Button Mode",
KeyEvent.KEYCODE_ESCAPE to "Esc",
KeyEvent.KEYCODE_FORWARD_DEL to "Forward Del",
KeyEvent.KEYCODE_SCROLL_LOCK to "Scroll Lock",
KeyEvent.KEYCODE_META_LEFT to "Meta Left",
KeyEvent.KEYCODE_META_RIGHT to "Meta Right",
KeyEvent.KEYCODE_FUNCTION to "Function",
KeyEvent.KEYCODE_SYSRQ to "SYSRQ",
KeyEvent.KEYCODE_BREAK to "Break",
KeyEvent.KEYCODE_MOVE_HOME to "Home",
KeyEvent.KEYCODE_MOVE_END to "End",
KeyEvent.KEYCODE_INSERT to "Insert",
KeyEvent.KEYCODE_FORWARD to "Forward",
KeyEvent.KEYCODE_MEDIA_PLAY to "Play",
KeyEvent.KEYCODE_MEDIA_PAUSE to "Pause",
KeyEvent.KEYCODE_MEDIA_CLOSE to "Media Close",
KeyEvent.KEYCODE_MEDIA_EJECT to "Eject",
KeyEvent.KEYCODE_MEDIA_RECORD to "Media Record",
KeyEvent.KEYCODE_F1 to "F1",
KeyEvent.KEYCODE_F2 to "F2",
KeyEvent.KEYCODE_F3 to "F3",
KeyEvent.KEYCODE_F4 to "F4",
KeyEvent.KEYCODE_F5 to "F5",
KeyEvent.KEYCODE_F6 to "F6",
KeyEvent.KEYCODE_F7 to "F7",
KeyEvent.KEYCODE_F8 to "F8",
KeyEvent.KEYCODE_F9 to "F9",
KeyEvent.KEYCODE_F10 to "F10",
KeyEvent.KEYCODE_F11 to "F11",
KeyEvent.KEYCODE_F12 to "F12",
KeyEvent.KEYCODE_NUMPAD_0 to "Numpad 0",
KeyEvent.KEYCODE_NUMPAD_1 to "Numpad 1",
KeyEvent.KEYCODE_NUMPAD_2 to "Numpad 2",
KeyEvent.KEYCODE_NUMPAD_3 to "Numpad 3",
KeyEvent.KEYCODE_NUMPAD_4 to "Numpad 4",
KeyEvent.KEYCODE_NUMPAD_5 to "Numpad 5",
KeyEvent.KEYCODE_NUMPAD_6 to "Numpad 6",
KeyEvent.KEYCODE_NUMPAD_7 to "Numpad 7",
KeyEvent.KEYCODE_NUMPAD_8 to "Numpad 8",
KeyEvent.KEYCODE_NUMPAD_9 to "Numpad 9",
KeyEvent.KEYCODE_NUMPAD_DIVIDE to "Numpad Divide",
KeyEvent.KEYCODE_NUMPAD_MULTIPLY to "Numpad Multiply",
KeyEvent.KEYCODE_NUMPAD_SUBTRACT to "Numpad -",
KeyEvent.KEYCODE_NUMPAD_ADD to "Numpad +",
KeyEvent.KEYCODE_NUMPAD_DOT to "Numpad .",
KeyEvent.KEYCODE_NUMPAD_COMMA to "Numpad ,",
KeyEvent.KEYCODE_NUMPAD_ENTER to "Numpad Enter",
KeyEvent.KEYCODE_NUMPAD_EQUALS to "Numpad =",
KeyEvent.KEYCODE_NUMPAD_LEFT_PAREN to "Numpad (",
KeyEvent.KEYCODE_NUMPAD_RIGHT_PAREN to "Numpad )",
KeyEvent.KEYCODE_VOLUME_MUTE to "Mute Volume",
KeyEvent.KEYCODE_INFO to "Info",
KeyEvent.KEYCODE_CHANNEL_UP to "Channel Up",
KeyEvent.KEYCODE_CHANNEL_DOWN to "Channel Down",
KeyEvent.KEYCODE_ZOOM_IN to "Zoom In",
KeyEvent.KEYCODE_ZOOM_OUT to "Zoom Out",
KeyEvent.KEYCODE_TV to "TV",
KeyEvent.KEYCODE_WINDOW to "Window",
KeyEvent.KEYCODE_GUIDE to "Guide",
KeyEvent.KEYCODE_DVR to "DVR",
KeyEvent.KEYCODE_BOOKMARK to "Bookmark",
KeyEvent.KEYCODE_CAPTIONS to "Captions",
KeyEvent.KEYCODE_SETTINGS to "Settings",
KeyEvent.KEYCODE_TV_POWER to "TV Power",
KeyEvent.KEYCODE_TV_INPUT to "TV Input",
KeyEvent.KEYCODE_STB_POWER to "STB Power",
KeyEvent.KEYCODE_STB_INPUT to "STB Input",
KeyEvent.KEYCODE_AVR_POWER to "AVR Power",
KeyEvent.KEYCODE_AVR_INPUT to "AVR Input",
KeyEvent.KEYCODE_PROG_RED to "TV Red",
KeyEvent.KEYCODE_PROG_GREEN to "TV Green",
KeyEvent.KEYCODE_PROG_YELLOW to "TV Yellow",
KeyEvent.KEYCODE_PROG_BLUE to "TV Blue",
KeyEvent.KEYCODE_LANGUAGE_SWITCH to "Language Switch",
KeyEvent.KEYCODE_MANNER_MODE to "Manner Mode",
KeyEvent.KEYCODE_3D_MODE to "3D Mode",
KeyEvent.KEYCODE_CONTACTS to "Contacts",
KeyEvent.KEYCODE_CALENDAR to "Calendar",
KeyEvent.KEYCODE_MUSIC to "Music",
KeyEvent.KEYCODE_CALCULATOR to "Calculator",
KeyEvent.KEYCODE_ZENKAKU_HANKAKU to "Zenkaku Hankaku",
KeyEvent.KEYCODE_EISU to "Eisu",
KeyEvent.KEYCODE_MUHENKAN to "Muhenkan",
KeyEvent.KEYCODE_HENKAN to "Henkan",
KeyEvent.KEYCODE_KATAKANA_HIRAGANA to "Katakana Hiragana",
KeyEvent.KEYCODE_YEN to "Yen",
KeyEvent.KEYCODE_RO to "Ro",
KeyEvent.KEYCODE_KANA to "Kana",
KeyEvent.KEYCODE_ASSIST to "Assist"
@J4gQBqqR can you (or someone else) show me WTF is this ,,windows key + magnifying glass key"? Thx
I am guessing it is KEYCODE_META_LEFT or KEYCODE_META_RIGHT. But I cannot successfully activate the app list (start menu) using those keys. Not sure how taskbar identify it...
Currently they are preset to windows key + magnifying glass key for example. Screenshot below:
There is no such key on most keyboards, including mine.
(I can't change these keybindings of course).