Added controller mapping for Android TV remotes

Also fixed the back button on the remote exiting the application
This commit is contained in:
Sam Lantinga 2017-11-01 10:06:58 -07:00
parent 4478707b0a
commit a90be440e8
4 changed files with 29 additions and 1 deletions

View file

@ -126,6 +126,11 @@ 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: */