Set SDL_HINT_MOUSE_TOUCH_EVENTS for iPhone and iPad as well
This commit is contained in:
1 parent
b6f33a6870
commit
9eac91dd29
2 files changed
+3
-6
No files matched your search
@@ -114,7 +114,7 @@ SDL_MouseTouchEventsChanged(void *userdata, const char *name, const char *oldVal
|
||||
|
||||
if (hint == NULL || *hint == '\0') {
|
||||
/* Default */
|
||||
#if defined(__ANDROID__)
|
||||
#if defined(__ANDROID__) || (defined(__IPHONEOS__) && !defined(__TVOS__))
|
||||
mouse->mouse_touch_events = SDL_TRUE;
|
||||
#else
|
||||
mouse->mouse_touch_events = SDL_FALSE;
|
||||
|
||||
Reference in new issue
Block a user