summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-04-26 19:09:25 -0400
committerGravatar Lioncash2018-04-26 19:09:25 -0400
commit376f6397c67ae4956ca217d7e7b3e17145f5c316 (patch)
tree1f3109fb14384b13050d745e8da2dbba62035314 /src/input_common/sdl/sdl.cpp
parentMerge pull request #402 from lioncash/core (diff)
downloadyuzu-376f6397c67ae4956ca217d7e7b3e17145f5c316.tar.gz
yuzu-376f6397c67ae4956ca217d7e7b3e17145f5c316.tar.xz
yuzu-376f6397c67ae4956ca217d7e7b3e17145f5c316.zip
input_common: Move old logging macros over to fmt-capable ones
Diffstat (limited to 'src/input_common/sdl/sdl.cpp')
-rw-r--r--src/input_common/sdl/sdl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/sdl/sdl.cpp b/src/input_common/sdl/sdl.cpp
index 3b87d6b65..231a0f7af 100644
--- a/src/input_common/sdl/sdl.cpp
+++ b/src/input_common/sdl/sdl.cpp
@@ -32,7 +32,7 @@ public:
32 explicit SDLJoystick(int joystick_index) 32 explicit SDLJoystick(int joystick_index)
33 : joystick{SDL_JoystickOpen(joystick_index), SDL_JoystickClose} { 33 : joystick{SDL_JoystickOpen(joystick_index), SDL_JoystickClose} {
34 if (!joystick) { 34 if (!joystick) {
35 LOG_ERROR(Input, "failed to open joystick %d", joystick_index); 35 NGLOG_ERROR(Input, "failed to open joystick {}", joystick_index);
36 } 36 }
37 } 37 }
38 38
@@ -204,7 +204,7 @@ public:
204 trigger_if_greater = false; 204 trigger_if_greater = false;
205 } else { 205 } else {
206 trigger_if_greater = true; 206 trigger_if_greater = true;
207 LOG_ERROR(Input, "Unknown direction %s", direction_name.c_str()); 207 NGLOG_ERROR(Input, "Unknown direction '{}'", direction_name);
208 } 208 }
209 return std::make_unique<SDLAxisButton>(GetJoystick(joystick_index), axis, threshold, 209 return std::make_unique<SDLAxisButton>(GetJoystick(joystick_index), axis, threshold,
210 trigger_if_greater); 210 trigger_if_greater);
@@ -235,7 +235,7 @@ public:
235 235
236void Init() { 236void Init() {
237 if (SDL_Init(SDL_INIT_JOYSTICK) < 0) { 237 if (SDL_Init(SDL_INIT_JOYSTICK) < 0) {
238 LOG_CRITICAL(Input, "SDL_Init(SDL_INIT_JOYSTICK) failed with: %s", SDL_GetError()); 238 NGLOG_CRITICAL(Input, "SDL_Init(SDL_INIT_JOYSTICK) failed with: {}", SDL_GetError());
239 } else { 239 } else {
240 using namespace Input; 240 using namespace Input;
241 RegisterFactory<ButtonDevice>("sdl", std::make_shared<SDLButtonFactory>()); 241 RegisterFactory<ButtonDevice>("sdl", std::make_shared<SDLButtonFactory>());