mirror of
https://github.com/libretro/RetroArch
synced 2025-01-28 14:54:03 +00:00
ios: Small fixes
This commit is contained in:
parent
e8e822ffc3
commit
bda93007bc
@ -199,6 +199,7 @@
|
|||||||
963F5ABE16CC522F009BBD19 /* RASettingsSubList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RASettingsSubList.m; sourceTree = "<group>"; };
|
963F5ABE16CC522F009BBD19 /* RASettingsSubList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RASettingsSubList.m; sourceTree = "<group>"; };
|
||||||
963F5ABF16CC522F009BBD19 /* RASettingsList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RASettingsList.m; sourceTree = "<group>"; };
|
963F5ABF16CC522F009BBD19 /* RASettingsList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RASettingsList.m; sourceTree = "<group>"; };
|
||||||
963F5AC516CC523B009BBD19 /* RAGameView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RAGameView.m; sourceTree = "<group>"; };
|
963F5AC516CC523B009BBD19 /* RAGameView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RAGameView.m; sourceTree = "<group>"; };
|
||||||
|
9664F4A116E4409100FB28F9 /* keycode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = keycode.h; sourceTree = "<group>"; };
|
||||||
966B9C8616E40D44005B61E1 /* ios_input.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ios_input.m; sourceTree = "<group>"; };
|
966B9C8616E40D44005B61E1 /* ios_input.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ios_input.m; sourceTree = "<group>"; };
|
||||||
966B9C8716E40D44005B61E1 /* ios_joypad.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ios_joypad.m; sourceTree = "<group>"; };
|
966B9C8716E40D44005B61E1 /* ios_joypad.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ios_joypad.m; sourceTree = "<group>"; };
|
||||||
966B9C8816E40D44005B61E1 /* RAInputResponder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RAInputResponder.h; sourceTree = "<group>"; };
|
966B9C8816E40D44005B61E1 /* RAInputResponder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RAInputResponder.h; sourceTree = "<group>"; };
|
||||||
@ -403,6 +404,7 @@
|
|||||||
966B9C8F16E418B7005B61E1 /* BTStack */,
|
966B9C8F16E418B7005B61E1 /* BTStack */,
|
||||||
966B9C8616E40D44005B61E1 /* ios_input.m */,
|
966B9C8616E40D44005B61E1 /* ios_input.m */,
|
||||||
966B9C8716E40D44005B61E1 /* ios_joypad.m */,
|
966B9C8716E40D44005B61E1 /* ios_joypad.m */,
|
||||||
|
9664F4A116E4409100FB28F9 /* keycode.h */,
|
||||||
966B9C8816E40D44005B61E1 /* RAInputResponder.h */,
|
966B9C8816E40D44005B61E1 /* RAInputResponder.h */,
|
||||||
966B9C8916E40D44005B61E1 /* RAInputResponder.m */,
|
966B9C8916E40D44005B61E1 /* RAInputResponder.m */,
|
||||||
);
|
);
|
||||||
|
@ -30,9 +30,6 @@ NSString *const RATouchNotification = @"RATouchNotification";
|
|||||||
|
|
||||||
@implementation RApplication
|
@implementation RApplication
|
||||||
|
|
||||||
#define HWKB_HACK
|
|
||||||
#ifdef HWKB_HACK // Disabled pending further testing
|
|
||||||
// Stolen from: http://nacho4d-nacho4d.blogspot.com/2012/01/catching-keyboard-events-in-ios.html
|
|
||||||
- (void)sendEvent:(UIEvent *)event
|
- (void)sendEvent:(UIEvent *)event
|
||||||
{
|
{
|
||||||
[super sendEvent:event];
|
[super sendEvent:event];
|
||||||
@ -43,6 +40,7 @@ NSString *const RATouchNotification = @"RATouchNotification";
|
|||||||
event, @"event", nil];
|
event, @"event", nil];
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:RATouchNotification object:nil userInfo:inf];
|
[[NSNotificationCenter defaultCenter] postNotificationName:RATouchNotification object:nil userInfo:inf];
|
||||||
}
|
}
|
||||||
|
// Stolen from: http://nacho4d-nacho4d.blogspot.com/2012/01/catching-keyboard-events-in-ios.html
|
||||||
else if ([event respondsToSelector:@selector(_gsEvent)])
|
else if ([event respondsToSelector:@selector(_gsEvent)])
|
||||||
{
|
{
|
||||||
int* eventMem = (int *)(void*)CFBridgingRetain([event performSelector:@selector(_gsEvent)]);
|
int* eventMem = (int *)(void*)CFBridgingRetain([event performSelector:@selector(_gsEvent)]);
|
||||||
@ -67,7 +65,6 @@ NSString *const RATouchNotification = @"RATouchNotification";
|
|||||||
CFBridgingRelease(eventMem);
|
CFBridgingRelease(eventMem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user