diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-06 08:20:24 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-06 08:20:32 +0300 |
commit | 4a03c76b436bf0fe27b33039b12f034b85b27341 (patch) | |
tree | b345c060fcea2debc08fa04d20ce48a5e69a4e22 /src/main.c | |
parent | aacb723fa99bb59bd7dcf94d089fc004a171f82d (diff) |
macOS: Smooth inertia scrolling with trackpad
Requires a slightly tweaked SDL 2, though, when it comes to handling the scroll events.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -7,7 +7,10 @@ | |||
7 | 7 | ||
8 | #include "app.h" | 8 | #include "app.h" |
9 | 9 | ||
10 | extern void enableWheel_MacOS(void); | ||
11 | |||
10 | int main(int argc, char **argv) { | 12 | int main(int argc, char **argv) { |
13 | enableWheel_MacOS(); | ||
11 | #if defined (iPlatformMsys) | 14 | #if defined (iPlatformMsys) |
12 | /* MSYS runtime takes care of WinMain. */ | 15 | /* MSYS runtime takes care of WinMain. */ |
13 | SDL_SetMainReady(); | 16 | SDL_SetMainReady(); |