summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input_common/sdl: Correct return values within implementations of GetPollers()Gravatar Lioncash2019-03-181-1/+3
| | | | | In both cases, we weren't actually returning anything, which is undefined behavior.
* input_common/sdl: Use a type alias to shorten declaration of GetPollersGravatar Lioncash2019-03-181-3/+2
| | | | Just makes the definitions a little bit more tidy.
* input_common/sdl_impl: Make lambda capture more specific in SDLState constructorGravatar Lioncash2019-03-171-1/+1
| | | | | We don't need to universally capture by reference. We specifically just need to capture the this pointer.
* input_common/sdl_impl: Remove unnecessary std::chrono::duration constructionGravatar Lioncash2019-03-171-1/+1
| | | | Specifying the time unit itself is sufficient here.
* input_common/sdl_impl: Remove unused variable in SDLState constructorGravatar Lioncash2019-03-171-1/+0
|
* fixup! Joystick: Allow for background events; Add deadzone to SDLAnalogGravatar B3n302019-03-021-6/+17
|
* input/sdl: lock map mutex after SDL callGravatar Weiyi Wang2019-03-021-11/+17
| | | | 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
* Input: Remove global variables from SDL InputGravatar James Rowe2019-03-021-85/+108
| | | | | | | | | 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
* Input: Copy current SDL.h/cpp files to implGravatar James Rowe2019-03-021-0/+629
This should make reviewing much easier as you can then see what changed happened between the old file and the new one