Commit 00591238 authored by Bkg2k's avatar Bkg2k

Correct patched SDL identification

parent 137645aa
......@@ -92,17 +92,17 @@ public:
switch (type)
{
case TYPE_AXIS:
#ifdef SDL_JoystickAxisEventCodeById
#ifdef SDL_JOYSTICK_IS_OVERRIDEN_BY_RECALBOX
code = SDL_JoystickAxisEventCodeById(device, id);
#endif
break;
case TYPE_BUTTON:
#ifdef SDL_JoystickButtonEventCodeById
#ifdef SDL_JOYSTICK_IS_OVERRIDEN_BY_RECALBOX
code = SDL_JoystickButtonEventCodeById(device, id);
#endif
break;
case TYPE_HAT:
#ifdef SDL_JoystickHatEventCodeById
#ifdef SDL_JOYSTICK_IS_OVERRIDEN_BY_RECALBOX
code = SDL_JoystickHatEventCodeById(device, id);
#endif
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment