aboutsummaryrefslogtreecommitdiff
path: root/src/client/joystick_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/joystick_controller.cpp')
-rw-r--r--src/client/joystick_controller.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/joystick_controller.cpp b/src/client/joystick_controller.cpp
index 905ca6420..5a3d35d7c 100644
--- a/src/client/joystick_controller.cpp
+++ b/src/client/joystick_controller.cpp
@@ -154,12 +154,9 @@ JoystickLayout create_xbox_layout()
return jlo;
}
-JoystickController::JoystickController()
+JoystickController::JoystickController() :
+ doubling_dtime(g_settings->getFloat("repeat_joystick_button_time"))
{
- m_joystick_id = 0;
-
- doubling_dtime = g_settings->getFloat("repeat_joystick_button_time");
-
for (size_t i = 0; i < KeyType::INTERNAL_ENUM_COUNT; i++) {
m_past_pressed_time[i] = 0;
}