mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 03:00:24 +00:00
(iOS) Fix issue where setting values could not be typed in.
This commit is contained in:
parent
4c526585f5
commit
a22629d2f2
@ -114,14 +114,16 @@ static void handle_touch_event(NSArray* touches)
|
||||
}
|
||||
}
|
||||
|
||||
@interface UIApplication(Superclass)
|
||||
- (void)handleKeyUIEvent:(UIEvent*)event;
|
||||
@end
|
||||
|
||||
@interface RApplication : UIApplication
|
||||
@end
|
||||
|
||||
@implementation RApplication
|
||||
|
||||
// iOS7: This method is called instead of sendEvent for key events; do not try to merge it
|
||||
// with the sendEvent method.
|
||||
- (void)handleKeyUIEvent:(UIEvent*)event
|
||||
- (void)processKeyEvent:(UIEvent*)event
|
||||
{
|
||||
if ([event respondsToSelector:@selector(_gsEvent)])
|
||||
{
|
||||
@ -136,6 +138,13 @@ static void handle_touch_event(NSArray* touches)
|
||||
}
|
||||
}
|
||||
|
||||
// iOS7: This method is called instead of sendEvent for key events
|
||||
- (void)handleKeyUIEvent:(UIEvent*)event
|
||||
{
|
||||
[super handleKeyUIEvent:event];
|
||||
[self processKeyEvent:event];
|
||||
}
|
||||
|
||||
- (void)sendEvent:(UIEvent *)event
|
||||
{
|
||||
[super sendEvent:event];
|
||||
@ -143,7 +152,7 @@ static void handle_touch_event(NSArray* touches)
|
||||
if ([[event allTouches] count])
|
||||
handle_touch_event(event.allTouches.allObjects);
|
||||
|
||||
[self handleKeyUIEvent:event];
|
||||
[self processKeyEvent:event];
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user