(iOS) Fix for mapping iCade buttons on iOS 7.

This commit is contained in:
meancoot 2013-12-05 20:33:31 -05:00
parent 4ab33d5b3b
commit 59f55c085a

View File

@ -353,6 +353,10 @@
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Clear Keyboard", @"Clear Joystick", @"Clear Axis", nil];
if (is_ios_7())
self.alert.alertViewStyle = UIAlertViewStylePlainTextInput;
[self.alert show];
[self.parentTable reloadData];
@ -367,11 +371,12 @@
[self.alert dismissWithClickedButtonIndex:self.alert.cancelButtonIndex animated:YES];
self.alert = nil;
[self.parentTable reloadData];
[self.bindTimer invalidate];
self.bindTimer = nil;
apple_input_reset_icade_buttons();
}
- (void)alertView:(UIAlertView*)alertView clickedButtonAtIndex:(NSInteger)buttonIndex