summaryrefslogtreecommitdiff
path: root/builtin/settingtypes.txt
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 /builtin/settingtypes.txt
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 'builtin/settingtypes.txt')
-rw-r--r--builtin/settingtypes.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index dc3164e44..d95f8cf41 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -107,6 +107,12 @@ continuous_forward (Continuous forward) bool false
# Enable Joysticks
enable_joysticks (Enable Joysticks) bool false
+# The identifier of the joystick to use
+joystick_id (Joystick ID) int 0
+
+# The type of joystick
+joystick_type (Joystick Type) enum auto auto,generic,xbox
+
# The time in seconds it takes between repeated events
# when holding down a joystick button combination.
repeat_joystick_button_time (Joystick button repetition interval) float 0.17