aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
AgeCommit message (Collapse)Author
2019-03-17input_common/sdl_impl: Remove unused variable in SDLState constructorLioncash
2019-03-02fixup! Joystick: Allow for background events; Add deadzone to SDLAnalogB3n30
2019-03-02input/sdl: lock map mutex after SDL callWeiyi Wang
Any SDL invocation can call the even callback on the same thread, which can call GetSDLJoystickBySDLID and eventually cause double lock on joystick_map_mutex. To avoid this, lock guard should be placed as closer as possible to the object accessing code, so that any SDL invocation is with the mutex unlocked
2019-03-02Input: Remove global variables from SDL InputJames Rowe
Changes the interface as well to remove any unique methods that frontends needed to call such as StartJoystickEventHandler by conditionally starting the polling thread only if the frontend hasn't started it already. Additionally, moves all global state into a single SDLState class in order to guarantee that the destructors are called in the proper order
2019-03-02Input: Copy current SDL.h/cpp files to implJames Rowe
This should make reviewing much easier as you can then see what changed happened between the old file and the new one