mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 02:08:16 +00:00
add android standard gamepad builtin autoconf
This commit is contained in:
parent
efc95d156a
commit
cb2e78e46d
@ -53,6 +53,34 @@ DECL_AXIS(r_x_minus, -2) \
|
||||
DECL_AXIS(r_y_plus, -3) \
|
||||
DECL_AXIS(r_y_minus, +3)
|
||||
|
||||
#if defined(ANDROID)
|
||||
#define ANDROID_DEFAULT_BINDS \
|
||||
DECL_BTN(a, 97) \
|
||||
DECL_BTN(b, 96) \
|
||||
DECL_BTN(x, 100) \
|
||||
DECL_BTN(y, 99) \
|
||||
DECL_BTN(start, 108) \
|
||||
DECL_BTN(select, 4) \
|
||||
DECL_BTN(up, h0up) \
|
||||
DECL_BTN(down, h0down) \
|
||||
DECL_BTN(left, h0left) \
|
||||
DECL_BTN(right, h0right) \
|
||||
DECL_BTN(l, 102) \
|
||||
DECL_BTN(r, 103) \
|
||||
DECL_AXIS(l2, +6) \
|
||||
DECL_AXIS(r2, +7) \
|
||||
DECL_BTN(l3, 7) \
|
||||
DECL_BTN(r3, 8) \
|
||||
DECL_AXIS(l_x_plus, +0) \
|
||||
DECL_AXIS(l_x_minus, -0) \
|
||||
DECL_AXIS(l_y_plus, +1) \
|
||||
DECL_AXIS(l_y_minus, -1) \
|
||||
DECL_AXIS(r_x_plus, +2) \
|
||||
DECL_AXIS(r_x_minus, -2) \
|
||||
DECL_AXIS(r_y_plus, -3) \
|
||||
DECL_AXIS(r_y_minus, +3)
|
||||
#endif
|
||||
|
||||
#define PSPINPUT_DEFAULT_BINDS \
|
||||
DECL_BTN(a, 8) \
|
||||
DECL_BTN(b, 0) \
|
||||
@ -297,6 +325,9 @@ const char* const input_builtin_autoconfs[] =
|
||||
#ifdef HAVE_SDL2
|
||||
DECL_AUTOCONF_DEVICE("Standard Gamepad", "sdl2", SDL2_DEFAULT_BINDS),
|
||||
#endif
|
||||
#if defined(ANDROID)
|
||||
DECL_AUTOCONF_DEVICE("Android Gamepad", "android", ANDROID_DEFAULT_BINDS),
|
||||
#endif
|
||||
#if defined(VITA) || defined(SN_TARGET_PSP2)
|
||||
DECL_AUTOCONF_DEVICE("Vita Controller", "vita", PSPINPUT_DEFAULT_BINDS),
|
||||
DECL_AUTOCONF_DEVICE("DS3 Controller", "vita", PSPINPUT_DEFAULT_BINDS),
|
||||
|
2430
retroarch.cfg
2430
retroarch.cfg
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user