mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
(iOS) Cleanup
This commit is contained in:
parent
146acb62d3
commit
0530d14c33
@ -208,9 +208,13 @@ enum
|
||||
|
||||
get_ios_version(&major, &minor);
|
||||
|
||||
if (!(major >= 7) && [event respondsToSelector:@selector(_gsEvent)])
|
||||
if ((major < 7) && [event respondsToSelector:@selector(_gsEvent)])
|
||||
{
|
||||
// Stolen from: http://nacho4d-nacho4d.blogspot.com/2012/01/catching-keyboard-events-in-ios.html
|
||||
/* Keyboard event hack for iOS versions prior to iOS 7.
|
||||
*
|
||||
* Derived from:
|
||||
* http://nacho4d-nacho4d.blogspot.com/2012/01/catching-keyboard-events-in-ios.html
|
||||
*/
|
||||
const uint8_t *eventMem = objc_unretainedPointer([event performSelector:@selector(_gsEvent)]);
|
||||
int eventType = eventMem ? *(int*)&eventMem[8] : 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user