Skip to content
Permalink
Browse files

MacOS: Fix default sneak key. Improve mouse response (#7885)

  • Loading branch information...
tacotexmex authored and paramat committed Nov 24, 2018
1 parent 93bccb3 commit a969635322576218312be3e32e5b4fcb0359ac05
Showing with 6 additions and 0 deletions.
  1. +6 −0 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__

This comment has been minimized.

Copy link
@t0ny2

t0ny2 Nov 24, 2018

Contributor

This line causes a compilation warning with GCC 5.4 on linux
"src/defaultsettings.cpp:409:17: warning: extra tokens at end of #ifdef directive"

Maybe it should be:

#if defined(__MACH__) && defined(__APPLE__)

This comment has been minimized.

Copy link
@paramat

paramat Nov 25, 2018

Member

Thanks, please could you open an issue for this so we don't forget?

settings->setDefault("keymap_sneak", "KEY_SHIFT");
settings->setDefault("fps_max", "0");
#endif

// Altered settings for Android
#ifdef __ANDROID__
settings->setDefault("screen_w", "0");

0 comments on commit a969635

Please sign in to comment.
You can’t perform that action at this time.