From 85f8dda6de28ef86e58f26c8aa863a26524f6ce0 Mon Sep 17 00:00:00 2001 From: Jesse Gibbons Date: Sun, 9 Feb 2020 21:46:26 -0700 Subject: [PATCH] Fix mouse/touch event hints for SDL 2.0.10. This fixes the bug reported at . It should remain backwards compatible with releases of SDL prior to 2.0.10. --- src/input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/input.cpp b/src/input.cpp index b5ae21e..153d349 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -91,7 +91,12 @@ void input_init(void) // TODO: don't attempt to simulate mouse events from touch events - // fake mouse events often are de-centered +#ifdef SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "0"); +#elif defined SDL_HINT_MOUSE_TOUCH_EVENTS && defined SDL_HINT_TOUCH_MOUSE_EVENTS + SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0"); + SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); +#endif /* Touch devices */ { -- 2.25.0 f='/guix/refs/?id=9b6d058ce134b8f0693e7d87c5612757c572db5e'>refslogtreecommitdiff
AgeCommit message (Expand)Author
2023-07-09gnu: cjson: Update to 1.7.16....* gnu/packages/javascript.scm (cjson): Update to 1.7.16. Tobias Geerinckx-Rice
2023-02-12gnu: mujs: Update to 1.3.2....* gnu/packages/javascript.scm (mujs): Update to 1.3.2. Efraim Flashner
2022-09-28gnu: Add js-scianimator....* gnu/packages/javascript.scm (js-scianimator): New variable. Ricardo Wurmus
2022-06-12gnu: duktape: Cross-compile....* gnu/packages/javascript.scm (duktape)[arguments]: Use CC-FOR-TARGET. Tobias Geerinckx-Rice
2022-06-12gnu: duktape: Use G-expressions....* gnu/packages/javascript.scm (duktape)[arguments]: Rewrite as G-expressions. Tobias Geerinckx-Rice
2022-06-13gnu: Add js-mathjax-for-r-mathjaxr....* gnu/packages/patches/mathjax-3.1.2-no-a11y.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/javascript.scm (js-mathjax-for-r-mathjaxr): New variable. Ricardo Wurmus
2022-06-05gnu: rhino: Remove build timestamps....* gnu/packages/javascript.scm (rhino)[arguments]: Add 'remove-build-dates phase. Vagrant Cascadian