mirror of
https://github.com/libretro/RetroArch
synced 2025-02-02 14:54:10 +00:00
62 lines
2.0 KiB
C
62 lines
2.0 KiB
C
|
/* RetroArch - A frontend for libretro.
|
||
|
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
||
|
* Copyright (C) 2011-2012 - Daniel De Matteis
|
||
|
*
|
||
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||
|
* of the GNU General Public License as published by the Free Software Found-
|
||
|
* ation, either version 3 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
|
* PURPOSE. See the GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||
|
* If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#ifndef _ANDROID_INPUT_AUTODETECT_H
|
||
|
#define _ANDROID_INPUT_AUTODETECT_H
|
||
|
|
||
|
#define MAX_PADS 8
|
||
|
|
||
|
#define AKEY_EVENT_NO_ACTION 255
|
||
|
|
||
|
enum {
|
||
|
AKEYCODE_ESCAPE = 111,
|
||
|
AKEYCODE_BREAK = 121,
|
||
|
AKEYCODE_F2 = 132,
|
||
|
AKEYCODE_F3 = 133,
|
||
|
AKEYCODE_F4 = 134,
|
||
|
AKEYCODE_F5 = 135,
|
||
|
AKEYCODE_F6 = 136,
|
||
|
AKEYCODE_F7 = 137,
|
||
|
AKEYCODE_F8 = 138,
|
||
|
AKEYCODE_F9 = 139,
|
||
|
AKEYCODE_BUTTON_1 = 188,
|
||
|
AKEYCODE_BUTTON_2 = 189,
|
||
|
AKEYCODE_BUTTON_3 = 190,
|
||
|
AKEYCODE_BUTTON_4 = 191,
|
||
|
AKEYCODE_BUTTON_5 = 192,
|
||
|
AKEYCODE_BUTTON_6 = 193,
|
||
|
AKEYCODE_BUTTON_7 = 194,
|
||
|
AKEYCODE_BUTTON_8 = 195,
|
||
|
AKEYCODE_BUTTON_9 = 196,
|
||
|
AKEYCODE_BUTTON_10 = 197,
|
||
|
AKEYCODE_BUTTON_11 = 198,
|
||
|
AKEYCODE_BUTTON_12 = 199,
|
||
|
AKEYCODE_BUTTON_13 = 200,
|
||
|
AKEYCODE_BUTTON_14 = 201,
|
||
|
AKEYCODE_BUTTON_15 = 202,
|
||
|
AKEYCODE_BUTTON_16 = 203,
|
||
|
AKEYCODE_ASSIST = 219,
|
||
|
};
|
||
|
|
||
|
#define LAST_KEYCODE AKEYCODE_ASSIST
|
||
|
|
||
|
extern uint64_t keycode_lut[LAST_KEYCODE];
|
||
|
|
||
|
void input_autodetect_init (void);
|
||
|
void input_autodetect_setup(unsigned port, unsigned id, int source);
|
||
|
|
||
|
#endif
|