diff options
Diffstat (limited to 'src/input_common/sdl/sdl.h')
| -rw-r--r-- | src/input_common/sdl/sdl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input_common/sdl/sdl.h b/src/input_common/sdl/sdl.h index 7934099d4..0206860d3 100644 --- a/src/input_common/sdl/sdl.h +++ b/src/input_common/sdl/sdl.h | |||
| @@ -28,6 +28,15 @@ void Init(); | |||
| 28 | /// Unresisters SDL device factories and shut them down. | 28 | /// Unresisters SDL device factories and shut them down. |
| 29 | void Shutdown(); | 29 | void Shutdown(); |
| 30 | 30 | ||
| 31 | /// Needs to be called before SDL_QuitSubSystem. | ||
| 32 | void CloseSDLJoysticks(); | ||
| 33 | |||
| 34 | /// Handle SDL_Events for joysticks from SDL_PollEvent | ||
| 35 | void HandleGameControllerEvent(const SDL_Event& event); | ||
| 36 | |||
| 37 | /// A Loop that calls HandleGameControllerEvent until Shutdown is called | ||
| 38 | void PollLoop(); | ||
| 39 | |||
| 31 | /// Creates a ParamPackage from an SDL_Event that can directly be used to create a ButtonDevice | 40 | /// Creates a ParamPackage from an SDL_Event that can directly be used to create a ButtonDevice |
| 32 | Common::ParamPackage SDLEventToButtonParamPackage(const SDL_Event& event); | 41 | Common::ParamPackage SDLEventToButtonParamPackage(const SDL_Event& event); |
| 33 | 42 | ||