From: texmex Date: Sat, 24 Nov 2018 05:21:29 +0000 (+0100) Subject: MacOS: Fix default sneak key. Improve mouse response (#7885) X-Git-Tag: 5.0.0~180 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a969635322576218312be3e32e5b4fcb0359ac05;p=oweals%2Fminetest.git MacOS: Fix default sneak key. Improve mouse response (#7885) --- 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");