Add hint SDL_HINT_MOUSE_TOUCH_EVENTS for mouse events to generate touch events
controlling whether mouse events should generate synthetic touch events By default SDL will *not* generate touch events for mouse events
This commit is contained in:
parent
d16648f8ce
commit
1d1eceb6ab
5 changed files with 91 additions and 22 deletions
|
@ -60,6 +60,9 @@ typedef struct SDL_Finger
|
|||
/* Used as the device ID for mouse events simulated with touch input */
|
||||
#define SDL_TOUCH_MOUSEID ((Uint32)-1)
|
||||
|
||||
/* Used as the SDL_TouchID for touch events simulated with mouse input */
|
||||
#define SDL_MOUSE_TOUCHID ((Sint64)-1)
|
||||
|
||||
|
||||
/* Function prototypes */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue