File: sdl2-2.0.10.patch

package info (click to toggle)
freedink 109.6-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,956 kB
  • sloc: ansic: 27,668; cpp: 23,643; sh: 5,524; java: 1,224; makefile: 257; javascript: 106; xml: 103; perl: 52; python: 17; sed: 16
file content (12 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/input.cpp
+++ b/src/input.cpp
@@ -91,7 +91,8 @@
 
   // TODO: don't attempt to simulate mouse events from touch events -
   // fake mouse events often are de-centered
-  SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "0");
+  SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1");
+  SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "1");
 
   /* Touch devices */
   {