(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:
meancoot 2014-01-14 14:34:11 -05:00
parent cd2e257f70
commit cd38bd6159

View File

@ -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)