diff options
| author | 2022-11-26 19:08:44 -0600 | |
|---|---|---|
| committer | 2022-11-27 11:09:40 -0600 | |
| commit | 7d8095d944f4d3234b67fded9dba0a0ff61f6056 (patch) | |
| tree | 462623cf46f3b48f72250cf5d23a7f55fb3877d7 /src/input_common/drivers/sdl_driver.h | |
| parent | Merge pull request #9276 from goldenx86/fsrSlider (diff) | |
| download | yuzu-7d8095d944f4d3234b67fded9dba0a0ff61f6056.tar.gz yuzu-7d8095d944f4d3234b67fded9dba0a0ff61f6056.tar.xz yuzu-7d8095d944f4d3234b67fded9dba0a0ff61f6056.zip | |
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: | |||
| 36 | /// Unregisters SDL device factories and shut them down. | 36 | /// Unregisters SDL device factories and shut them down. |
| 37 | ~SDLDriver() override; | 37 | ~SDLDriver() override; |
| 38 | 38 | ||
| 39 | void PumpEvents() const; | ||
| 40 | |||
| 39 | /// Handle SDL_Events for joysticks from SDL_PollEvent | 41 | /// Handle SDL_Events for joysticks from SDL_PollEvent |
| 40 | void HandleGameControllerEvent(const SDL_Event& event); | 42 | void HandleGameControllerEvent(const SDL_Event& event); |
| 41 | 43 | ||
| @@ -128,7 +130,6 @@ private: | |||
| 128 | bool start_thread = false; | 130 | bool start_thread = false; |
| 129 | std::atomic<bool> initialized = false; | 131 | std::atomic<bool> initialized = false; |
| 130 | 132 | ||
| 131 | std::thread poll_thread; | ||
| 132 | std::thread vibration_thread; | 133 | std::thread vibration_thread; |
| 133 | }; | 134 | }; |
| 134 | } // namespace InputCommon | 135 | } // namespace InputCommon |