mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Merge pull request #9659 from xsm1997/master
Fix: in some extreme case on-screen touch controls get stuck on iOS
This commit is contained in:
commit
41136d5b96
1 file changed
+11
@@ -344,6 +344,17 @@ static GraphicsContext *graphicsContext;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
|
||||
{
|
||||
for(UITouch* touch in touches)
|
||||
{
|
||||
CGPoint point = [touch locationInView:self.view];
|
||||
NSDictionary* dict = [self touchDictBy:touch];
|
||||
[self touchX:point.x y:point.y code:2 pointerId:[[dict objectForKey:@"index"] intValue]];
|
||||
[self.touches removeObject:dict];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)bindDefaultFBO
|
||||
{
|
||||
[(GLKView*)self.view bindDrawable];
|
||||
|
||||
Reference in new issue
Block a user