mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
Use a unified name list for Xbox 360 and Xbox One controllers for drivers that can handle both
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
/* On Windows, Xbox controllers are handled by the XInput driver */
|
||||
#undef SDL_JOYSTICK_HIDAPI_XBOX360
|
||||
//#undef SDL_JOYSTICK_HIDAPI_XBOX360
|
||||
#undef SDL_JOYSTICK_HIDAPI_XBOXONE
|
||||
#endif
|
||||
|
||||
@@ -65,6 +65,9 @@ extern SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverXboxOne;
|
||||
/* Return true if a HID device is present and supported as a joystick */
|
||||
extern SDL_bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version);
|
||||
|
||||
/* Return the name of an Xbox 360 or Xbox One controller */
|
||||
extern const char *HIDAPI_XboxControllerName(Uint16 vendor_id, Uint16 product_id);
|
||||
|
||||
#endif /* SDL_JOYSTICK_HIDAPI_H */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
Reference in New Issue
Block a user