Skip to content

Commit

Permalink
MacOS: Fix default sneak key. Improve mouse response (#7885)
Browse files Browse the repository at this point in the history
  • Loading branch information
texmex authored and paramat committed Nov 24, 2018
1 parent 93bccb3 commit a969635
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/defaultsettings.cpp
Expand Up @@ -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

Contributor

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");
Expand Down

0 comments on commit a969635

Please sign in to comment.