mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 13:56:00 +00:00
Default SDL_HINT_JOYSTICK_GAMEINPUT to "1" on GDK platforms
This commit is contained in:

committed by
Sam Lantinga

parent
ed87e7e434
commit
5b6342a00d
@@ -28,6 +28,13 @@
|
||||
#define COBJMACROS
|
||||
#include <gameinput.h>
|
||||
|
||||
// Default value for SDL_HINT_JOYSTICK_GAMEINPUT
|
||||
#if defined(SDL_PLATFORM_GDK)
|
||||
#define SDL_GAMEINPUT_DEFAULT true
|
||||
#else
|
||||
#define SDL_GAMEINPUT_DEFAULT false
|
||||
#endif
|
||||
|
||||
enum
|
||||
{
|
||||
SDL_GAMEPAD_BUTTON_GAMEINPUT_SHARE = 11
|
||||
@@ -234,7 +241,7 @@ static bool GAMEINPUT_JoystickInit(void)
|
||||
{
|
||||
HRESULT hR;
|
||||
|
||||
if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_GAMEINPUT, false)) {
|
||||
if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_GAMEINPUT, SDL_GAMEINPUT_DEFAULT)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user