summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 08:20:24 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 08:20:32 +0300
commit4a03c76b436bf0fe27b33039b12f034b85b27341 (patch)
treeb345c060fcea2debc08fa04d20ce48a5e69a4e22 /src/main.c
parentaacb723fa99bb59bd7dcf94d089fc004a171f82d (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f6ff045d..a8f97d52 100644
--- a/src/main.c
+++ b/src/main.c
@@ -7,7 +7,10 @@
7 7
8#include "app.h" 8#include "app.h"
9 9
10extern void enableWheel_MacOS(void);
11
10int main(int argc, char **argv) { 12int 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();