Fixed multitouch events
This commit is contained in:
@@ -428,6 +428,7 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h)
|
|||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
if (!_multitouch_device) {
|
if (!_multitouch_device) {
|
||||||
|
SDL_InitSubSystem(SDL_INIT_JOYSTICK);
|
||||||
_multitouch_device = SDL_JoystickOpen(0);
|
_multitouch_device = SDL_JoystickOpen(0);
|
||||||
}
|
}
|
||||||
SDL_ANDROID_SetSystemMousePointerVisible(0); // We have our own cursor, only works on Android N
|
SDL_ANDROID_SetSystemMousePointerVisible(0); // We have our own cursor, only works on Android N
|
||||||
@@ -674,6 +675,7 @@ int VideoDriver_SDL::PollEvent()
|
|||||||
_multitouch_second_point.x = ev.jball.xrel;
|
_multitouch_second_point.x = ev.jball.xrel;
|
||||||
_multitouch_second_point.y = ev.jball.yrel;
|
_multitouch_second_point.y = ev.jball.yrel;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
#endif /* not __ANDROID__ */
|
#endif /* not __ANDROID__ */
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
case SDL_VIDEORESIZE: {
|
case SDL_VIDEORESIZE: {
|
||||||
|
|||||||
3
todo.txt
3
todo.txt
@@ -10,6 +10,3 @@
|
|||||||
- Fix text input - it should use SDL_ANDROID_GetScreenKeyboardTextInputAsync(), TODO: it's broken in SDL.
|
- Fix text input - it should use SDL_ANDROID_GetScreenKeyboardTextInputAsync(), TODO: it's broken in SDL.
|
||||||
|
|
||||||
- Draggable combo boxes.
|
- Draggable combo boxes.
|
||||||
|
|
||||||
- Multitouch events are broken in SDL
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user