I wanted to make my games available on MAC OS. So instead of creating an official MAC app, I wanted to use the new feature available from Big Sur allowing you to basically run any iOS APP on a MAC without any work. (or at least less work)
While this is fun in theory, in reality, the game still requires some kind of work to make sense on a MAC. So I basically used the same logic I used for the PC version with enabling keyboard shortcuts and movement (AWSD, Space, Enter etc). I can easily detect if the iOS game is running on a MAC to enable different interface and logic etc.
The problem is: There are no keyboard events fired. Nor mouse scrolling or “right click”. As if the code was doing nothing on iOS (I assume because iOS normally do not have a physical keyboard).
Anyone has an idea how to enable physical keyboard events ?