mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-02 00:15:06 +01:00
Merge pull request #4705 from FearlessTobi/port-2254
Port yuzu-emu/yuzu#2254: "input_common/sdl_impl: Minor cleanup in SDLState constructor"
This commit is contained in:
commit
4d997d7779
@ -475,12 +475,11 @@ SDLState::SDLState() {
|
|||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
if (start_thread) {
|
if (start_thread) {
|
||||||
poll_thread = std::thread([&] {
|
poll_thread = std::thread([this] {
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
SDL_Event event;
|
|
||||||
while (initialized) {
|
while (initialized) {
|
||||||
SDL_PumpEvents();
|
SDL_PumpEvents();
|
||||||
std::this_thread::sleep_for(std::chrono::duration(10ms));
|
std::this_thread::sleep_for(10ms);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user