mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-11 02:23:09 +00:00
Swap out SDL_INIT_JOYSTICK for SDL_INIT_GAMECONTROLLER
First step in improving controller support.
This commit is contained in:
parent
7ef0a1a489
commit
4e2d155678
1 changed files with 1 additions and 1 deletions
|
|
@ -1060,7 +1060,7 @@ static int joy_open(const char *fname)
|
||||||
|
|
||||||
if (joystick_started == 0 && joystick2_started == 0 && joystick3_started == 0 && joystick4_started == 0)
|
if (joystick_started == 0 && joystick2_started == 0 && joystick3_started == 0 && joystick4_started == 0)
|
||||||
{
|
{
|
||||||
if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) == -1)
|
if (SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER) == -1)
|
||||||
{
|
{
|
||||||
CONS_Printf(M_GetText("Couldn't initialize joystick: %s\n"), SDL_GetError());
|
CONS_Printf(M_GetText("Couldn't initialize joystick: %s\n"), SDL_GetError());
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue