Skip to content

Commit

Permalink
Fix A-stick
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmojo committed Aug 2, 2020
1 parent 1ce655f commit 399dec7
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions platform/sdl/sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,20 @@ void Loop1()
case SDL_KEYUP:
ProcessKey(e);
break;
#ifdef SDL_USE_JOYSTICK
case SDL_JOYBUTTONDOWN:
case SDL_JOYBUTTONUP:
case SDL_JOYAXISMOTION:
case SDL_JOYHATMOTION:
ProcessJoy(e);
break;
#endif//SDL_USE_JOYSTICK
#ifdef SDL_USE_JOYSTICK
case SDL_JOYBUTTONDOWN:
case SDL_JOYBUTTONUP:
case SDL_JOYAXISMOTION:
case SDL_JOYHATMOTION:
#ifndef RG350
ProcessJoy(e);
#endif
#endif//SDL_USE_JOYSTICK
default:
#ifdef RG350
//invoke processjoy to stop A-stick continuing to report movemet when centred
ProcessJoy(e);
#endif //RG350
break;
}
}
Expand Down

0 comments on commit 399dec7

Please sign in to comment.