IOS7: Call correct delegate method

The wrong delegate method was called for touchesCancelled. This
led to button presses ended too early if moving the fingers.
This commit is contained in:
Lars Sundström 2023-05-02 16:05:35 +02:00 committed by Eugene Sandulenko
parent 6d325f26c6
commit fac7008914

View File

@ -981,7 +981,7 @@ uint getSizeNextPOT(uint size) {
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
for (GameController *c : _controllers) {
if ([c isKindOfClass:TouchController.class]) {
[(TouchController *)c touchesEnded:touches withEvent:event];
[(TouchController *)c touchesCancelled:touches withEvent:event];
}
}
}