diff --git a/ios/RetroArch.xcodeproj/project.pbxproj b/ios/RetroArch.xcodeproj/project.pbxproj index daee2b6237..9527517a9e 100644 --- a/ios/RetroArch.xcodeproj/project.pbxproj +++ b/ios/RetroArch.xcodeproj/project.pbxproj @@ -199,6 +199,7 @@ 963F5ABE16CC522F009BBD19 /* RASettingsSubList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RASettingsSubList.m; sourceTree = ""; }; 963F5ABF16CC522F009BBD19 /* RASettingsList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RASettingsList.m; sourceTree = ""; }; 963F5AC516CC523B009BBD19 /* RAGameView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RAGameView.m; sourceTree = ""; }; + 9664F4A116E4409100FB28F9 /* keycode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = keycode.h; sourceTree = ""; }; 966B9C8616E40D44005B61E1 /* ios_input.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ios_input.m; sourceTree = ""; }; 966B9C8716E40D44005B61E1 /* ios_joypad.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ios_joypad.m; sourceTree = ""; }; 966B9C8816E40D44005B61E1 /* RAInputResponder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RAInputResponder.h; sourceTree = ""; }; @@ -403,6 +404,7 @@ 966B9C8F16E418B7005B61E1 /* BTStack */, 966B9C8616E40D44005B61E1 /* ios_input.m */, 966B9C8716E40D44005B61E1 /* ios_joypad.m */, + 9664F4A116E4409100FB28F9 /* keycode.h */, 966B9C8816E40D44005B61E1 /* RAInputResponder.h */, 966B9C8916E40D44005B61E1 /* RAInputResponder.m */, ); diff --git a/ios/RetroArch/main.m b/ios/RetroArch/main.m index 7a65bce6a4..faf433bb63 100644 --- a/ios/RetroArch/main.m +++ b/ios/RetroArch/main.m @@ -30,9 +30,6 @@ NSString *const RATouchNotification = @"RATouchNotification"; @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 { [super sendEvent:event]; @@ -43,6 +40,7 @@ NSString *const RATouchNotification = @"RATouchNotification"; event, @"event", nil]; [[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)]) { int* eventMem = (int *)(void*)CFBridgingRetain([event performSelector:@selector(_gsEvent)]); @@ -67,7 +65,6 @@ NSString *const RATouchNotification = @"RATouchNotification"; CFBridgingRelease(eventMem); } } -#endif @end