diff options
Diffstat (limited to 'src/input_common/sdl')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 934339d3b..6e8376549 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -475,12 +475,11 @@ SDLState::SDLState() { | |||
| 475 | 475 | ||
| 476 | initialized = true; | 476 | initialized = true; |
| 477 | if (start_thread) { | 477 | if (start_thread) { |
| 478 | poll_thread = std::thread([&] { | 478 | poll_thread = std::thread([this] { |
| 479 | using namespace std::chrono_literals; | 479 | using namespace std::chrono_literals; |
| 480 | SDL_Event event; | ||
| 481 | while (initialized) { | 480 | while (initialized) { |
| 482 | SDL_PumpEvents(); | 481 | SDL_PumpEvents(); |
| 483 | std::this_thread::sleep_for(std::chrono::duration(10ms)); | 482 | std::this_thread::sleep_for(10ms); |
| 484 | } | 483 | } |
| 485 | }); | 484 | }); |
| 486 | } | 485 | } |