diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/psp2/psp2.cpp | 6 | ||||
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 10 |
2 files changed, 2 insertions, 14 deletions
diff --git a/backends/platform/sdl/psp2/psp2.cpp b/backends/platform/sdl/psp2/psp2.cpp index 94b06e6d23..f323db72af 100644 --- a/backends/platform/sdl/psp2/psp2.cpp +++ b/backends/platform/sdl/psp2/psp2.cpp @@ -94,12 +94,6 @@ void OSystem_PSP2::initBackend() { if (!ConfMan.hasKey("filtering")) { ConfMan.setBool("filtering", true); } - if (!ConfMan.hasKey("kbdmouse_speed")) { - ConfMan.setInt("kbdmouse_speed", 3); - } - if (!ConfMan.hasKey("joystick_deadzone")) { - ConfMan.setInt("joystick_deadzone", 2); - } if (!ConfMan.hasKey("shader")) { ConfMan.setInt("shader", 2); } diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 68499b1ed8..360baf9d1e 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -90,6 +90,8 @@ OSystem_SDL::OSystem_SDL() _eventSource(0), _window(0) { + ConfMan.registerDefault("kbdmouse_speed", 3); + ConfMan.registerDefault("joystick_deadzone", 3); } OSystem_SDL::~OSystem_SDL() { @@ -287,14 +289,6 @@ void OSystem_SDL::initBackend() { _inited = true; - if (!ConfMan.hasKey("kbdmouse_speed")) { - ConfMan.registerDefault("kbdmouse_speed", 3); - ConfMan.setInt("kbdmouse_speed", 3); - } - if (!ConfMan.hasKey("joystick_deadzone")) { - ConfMan.registerDefault("joystick_deadzone", 3); - ConfMan.setInt("joystick_deadzone", 3); - } ModularBackend::initBackend(); // We have to initialize the graphics manager before the event manager |