Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MacOS: Fix default sneak key. Improve mouse response (#7885)
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
paramat
Contributor
|
||
settings->setDefault("keymap_sneak", "KEY_SHIFT"); | ||
settings->setDefault("fps_max", "0"); | ||
#endif | ||
|
||
// Altered settings for Android | ||
#ifdef __ANDROID__ | ||
settings->setDefault("screen_w", "0"); | ||
|
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__)