Try to dynamically create a default Android game controller mapping based on the buttons and axes on the controller.
Include the controller USB VID/PID in the GUID where possible, as we do on other platforms.
This commit is contained in:
parent
2419d26724
commit
9e651b6915
8 changed files with 404 additions and 81 deletions
|
@ -126,11 +126,6 @@ extern SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick);
|
|||
extern SDL_bool SDL_SYS_IsXInputGamepad_DeviceIndex(int device_index);
|
||||
#endif
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
/* Function returns SDL_TRUE if this device is a DPAD (maybe a TV remote) */
|
||||
extern SDL_bool SDL_SYS_IsDPAD_DeviceIndex(int device_index);
|
||||
#endif
|
||||
|
||||
#endif /* SDL_sysjoystick_h_ */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue