mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Fix crash in UIKit indirect pointer handling
This commit is contained in:
parent
32bbabe2a5
commit
5cacdf2513
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
|
|||
int i;
|
||||
SDL_MouseButtonFlags buttons = SDL_GetMouseState(NULL, NULL);
|
||||
|
||||
for (i = 0; i < MAX_MOUSE_BUTTONS; ++i) {
|
||||
for (i = 1; i <= MAX_MOUSE_BUTTONS; ++i) {
|
||||
if (buttons & SDL_BUTTON_MASK(i)) {
|
||||
SDL_SendMouseButton(UIKit_GetEventTimestamp([touch timestamp]), sdlwindow, SDL_GLOBAL_MOUSE_ID, (Uint8)i, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue