aboutsummaryrefslogtreecommitdiff
path: root/src/defaultsettings.cpp
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2017-04-02 23:00:34 +0100
committerAuke Kok <sofar+github@foo-projects.org>2017-04-06 20:58:52 -0700
commitbce0d458d8cda70c10d78ea9ec476474f0a6f01a (patch)
tree529062ce8f0e7b7fd8f5bd94608af3e36a7860d6 /src/defaultsettings.cpp
parent351cc2e79a7d78f7ec97ff9b33e4f0bad4042b19 (diff)
downloadminetest-bce0d458d8cda70c10d78ea9ec476474f0a6f01a.tar.gz
minetest-bce0d458d8cda70c10d78ea9ec476474f0a6f01a.tar.bz2
minetest-bce0d458d8cda70c10d78ea9ec476474f0a6f01a.zip
Add Joystick type detection and Xbox controller support
* Add joystick type detection (with joystick_type setting to override it) * Fix multiple joysticks from interfering with each other by only reading from one (add joystick_id setting) * Add support for Xbox controllers
Diffstat (limited to 'src/defaultsettings.cpp')
-rw-r--r--src/defaultsettings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 4b50b991b..3f4ce6337 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -203,6 +203,8 @@ void set_default_settings(Settings *settings)
settings->setDefault("always_fly_fast", "true");
settings->setDefault("continuous_forward", "false");
settings->setDefault("enable_joysticks", "false");
+ settings->setDefault("joystick_id", "0");
+ settings->setDefault("joystick_type", "");
settings->setDefault("repeat_joystick_button_time", "0.17");
settings->setDefault("joystick_frustum_sensitivity", "170");