Any pointers on code to look at for the keyboard hooks… Tbh I can’t quite get the menus of the base emulator working properly myself in my locally compiled version. At least the 64bit cores are seemingly working which weren’t when i last tried back in August so that’s awesome.
Hi! To properly implement keyboard input using the proper API calls, take a look at UIKeyCommand:
https://developer.apple.com/documentation/uikit/uikeycommand
You’re going to need to hook that in the main view controller of RetroArch, namely the “GameView” or “CocoaView”. It’s in ui/drivers/cocoa/cocoa_common.m
There, you can define UIKeyCommand with hooks to call into RetroArch’s inputs.
i would look into it but I don’t have the time right now
I keep getting stuck in the menus a little bit though and can’t figure out how to get controllers working at all. A lot of my icons are black squares even after slowly downloading assets.zip. I had that problem before.
This happens when you reinstall RetroArch via Xcode or install a new version. The configuration paths in RetroArch are saved as absolute paths (`/Application/[identifier]/Documents/…), and the identifier will change whenever you build and run in Xcode. I have an idea on how to fix this, but again, I’ll have to get to it later. I get around this by manually editing my config files with the new application identifier, and its kind of annoying.
Good luck, it’d be great to get more help from other iOS developers on this project