aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortexmex <josefsahlberg+minetest@gmail.com>2018-11-24 06:21:29 +0100
committerParamat <paramat@users.noreply.github.com>2018-11-24 05:21:29 +0000
commita969635322576218312be3e32e5b4fcb0359ac05 (patch)
treebf034e0b99e51341aca2a91c3eaaf41e341de4c2
parent93bccb349080b0b184cdda9e7ab4a364664efe70 (diff)
downloadminetest-a969635322576218312be3e32e5b4fcb0359ac05.tar.gz
minetest-a969635322576218312be3e32e5b4fcb0359ac05.tar.bz2
minetest-a969635322576218312be3e32e5b4fcb0359ac05.zip
MacOS: Fix default sneak key. Improve mouse response (#7885)
-rw-r--r--src/defaultsettings.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 2408bffeb..de2e87840 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -405,6 +405,12 @@ void set_default_settings(Settings *settings)
settings->setDefault("high_precision_fpu", "true");
settings->setDefault("enable_console", "false");
+ // Altered settings for macOS
+#ifdef __MACH__ && __APPLE__
+ settings->setDefault("keymap_sneak", "KEY_SHIFT");
+ settings->setDefault("fps_max", "0");
+#endif
+
// Altered settings for Android
#ifdef __ANDROID__
settings->setDefault("screen_w", "0");