Browse Source
input_common: Fix error with thread name
pull/15/merge
Narr the Reg
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/input_common/drivers/sdl_driver.cpp
|
|
|
@ -388,8 +388,6 @@ void SDLDriver::CloseJoysticks() { |
|
|
|
} |
|
|
|
|
|
|
|
SDLDriver::SDLDriver(const std::string& input_engine_) : InputEngine(input_engine_) { |
|
|
|
Common::SetCurrentThreadName("yuzu:input:SDL"); |
|
|
|
|
|
|
|
if (!Settings::values.enable_raw_input) { |
|
|
|
// Disable raw input. When enabled this setting causes SDL to die when a web applet opens
|
|
|
|
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); |
|
|
|
@ -422,6 +420,7 @@ SDLDriver::SDLDriver(const std::string& input_engine_) : InputEngine(input_engin |
|
|
|
initialized = true; |
|
|
|
if (start_thread) { |
|
|
|
poll_thread = std::thread([this] { |
|
|
|
Common::SetCurrentThreadName("yuzu:input:SDL"); |
|
|
|
using namespace std::chrono_literals; |
|
|
|
while (initialized) { |
|
|
|
SDL_PumpEvents(); |
|
|
|
|