mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(iOS) Don’t tell running core about touches that aren’t tracked by RAGameView. (Thanks to OMGsus for the bug report)
This commit is contained in:
parent
cd2e257f70
commit
cd38bd6159
@ -121,6 +121,10 @@ static void handle_touch_event(NSArray* touches)
|
||||
for(int i = 0; i != numTouches && g_current_input_data.touch_count < MAX_TOUCHES; i ++)
|
||||
{
|
||||
UITouch* touch = [touches objectAtIndex:i];
|
||||
|
||||
if ([touch view] != [RAGameView get].view)
|
||||
continue;
|
||||
|
||||
const CGPoint coord = [touch locationInView:[touch view]];
|
||||
|
||||
if ([touch phase] != UITouchPhaseEnded && [touch phase] != UITouchPhaseCancelled)
|
||||
|
Loading…
x
Reference in New Issue
Block a user