diff options
author | german77 <juangerman-13@hotmail.com> | 2022-11-26 19:08:44 -0600 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-11-27 11:09:40 -0600 |
commit | 7d8095d944f4d3234b67fded9dba0a0ff61f6056 (patch) | |
tree | 462623cf46f3b48f72250cf5d23a7f55fb3877d7 /src/input_common/drivers/sdl_driver.h | |
parent | 3ab8d9ac7c1fac58de314265f8936336d1f7d829 (diff) |
input_common: Pump sdl events from main thread
Diffstat (limited to 'src/input_common/drivers/sdl_driver.h')
-rw-r--r-- | src/input_common/drivers/sdl_driver.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_common/drivers/sdl_driver.h b/src/input_common/drivers/sdl_driver.h index d1b4471cf..366bcc496 100644 --- a/src/input_common/drivers/sdl_driver.h +++ b/src/input_common/drivers/sdl_driver.h @@ -36,6 +36,8 @@ public: /// Unregisters SDL device factories and shut them down. ~SDLDriver() override; + void PumpEvents() const; + /// Handle SDL_Events for joysticks from SDL_PollEvent void HandleGameControllerEvent(const SDL_Event& event); @@ -128,7 +130,6 @@ private: bool start_thread = false; std::atomic<bool> initialized = false; - std::thread poll_thread; std::thread vibration_thread; }; } // namespace InputCommon |