mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 05:41:02 +00:00
SDL2: Do not use xinput, force directinput
Fixes axes issue with xinput controllers.
This commit is contained in:
parent
31abd19f75
commit
399eddefe6
1 changed files with 2 additions and 0 deletions
|
@ -1519,6 +1519,7 @@ static int joy_open2(const char *fname)
|
||||||
void I_InitJoystick(void)
|
void I_InitJoystick(void)
|
||||||
{
|
{
|
||||||
I_ShutdownJoystick();
|
I_ShutdownJoystick();
|
||||||
|
SDL_SetHintWithPriority("SDL_XINPUT_ENABLED", "0", SDL_HINT_OVERRIDE);
|
||||||
if (!strcmp(cv_usejoystick.string, "0") || M_CheckParm("-nojoy"))
|
if (!strcmp(cv_usejoystick.string, "0") || M_CheckParm("-nojoy"))
|
||||||
return;
|
return;
|
||||||
if (joy_open(cv_usejoystick.string) != -1)
|
if (joy_open(cv_usejoystick.string) != -1)
|
||||||
|
@ -1534,6 +1535,7 @@ void I_InitJoystick(void)
|
||||||
void I_InitJoystick2(void)
|
void I_InitJoystick2(void)
|
||||||
{
|
{
|
||||||
I_ShutdownJoystick2();
|
I_ShutdownJoystick2();
|
||||||
|
SDL_SetHintWithPriority("SDL_XINPUT_ENABLED", "0", SDL_HINT_OVERRIDE);
|
||||||
if (!strcmp(cv_usejoystick2.string, "0") || M_CheckParm("-nojoy"))
|
if (!strcmp(cv_usejoystick2.string, "0") || M_CheckParm("-nojoy"))
|
||||||
return;
|
return;
|
||||||
if (joy_open2(cv_usejoystick2.string) != -1)
|
if (joy_open2(cv_usejoystick2.string) != -1)
|
||||||
|
|
Loading…
Reference in a new issue