diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-18 11:13:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 11:13:20 -0400 |
commit | e05136f70be56ac241fc4679a8a2f0535776b39a (patch) | |
tree | f9c4227b3e655fcaa7203c962f49a20de68d6729 /src/input_common/sdl/sdl_impl.cpp | |
parent | 30f228a8c93293551839cce3e539e9b7dae7fab2 (diff) | |
parent | 114060fd87a8b8a869a20ba4b64f8bb40c37c7e6 (diff) |
Merge pull request #2254 from lioncash/redundant
input_common/sdl_impl: Minor cleanup in SDLState constructor
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
-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() { initialized = true; if (start_thread) { - poll_thread = std::thread([&] { + poll_thread = std::thread([this] { using namespace std::chrono_literals; - SDL_Event event; while (initialized) { SDL_PumpEvents(); - std::this_thread::sleep_for(std::chrono::duration(10ms)); + std::this_thread::sleep_for(10ms); } }); } |