summaryrefslogtreecommitdiffstats
path: root/game/client/gamepad.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-03-27 13:28:09 +0500
committeruntodesu <kirill@untode.su>2025-03-27 13:28:09 +0500
commit60cb5a829b54732176936e21511aa5372ae46fab (patch)
treea2d671ea8d19607042e3177ec0bb50d69f6f85a8 /game/client/gamepad.cc
parentb2d4a09a5621e214636593641d9799b2b1cdcf72 (diff)
downloadvoxelius-60cb5a829b54732176936e21511aa5372ae46fab.tar.bz2
voxelius-60cb5a829b54732176936e21511aa5372ae46fab.zip
Allow game to not die when sound is not available
Diffstat (limited to 'game/client/gamepad.cc')
-rw-r--r--game/client/gamepad.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/client/gamepad.cc b/game/client/gamepad.cc
index 7c03d29..9321d08 100644
--- a/game/client/gamepad.cc
+++ b/game/client/gamepad.cc
@@ -49,7 +49,7 @@ static void on_glfw_joystick_event(const GlfwJoystickEvent &event)
for(int i = 0; i < NUM_AXES; gamepad::last_state.axes[i++] = 0.0f);
for(int i = 0; i < NUM_BUTTONS; gamepad::last_state.buttons[i++] = GLFW_RELEASE);
- spdlog::warn("gamepad: detected gamepad: {}", glfwGetGamepadName(event.joystick_id));
+ spdlog::info("gamepad: detected gamepad: {}", glfwGetGamepadName(event.joystick_id));
return;
}
@@ -100,7 +100,7 @@ void gamepad::init(void)
for(int i = 0; i < NUM_AXES; gamepad::last_state.axes[i++] = 0.0f);
for(int i = 0; i < NUM_BUTTONS; gamepad::last_state.buttons[i++] = GLFW_RELEASE);
- spdlog::warn("gamepad: detected gamepad: {}", glfwGetGamepadName(joystick));
+ spdlog::info("gamepad: detected gamepad: {}", glfwGetGamepadName(joystick));
break;
}