Post not yet marked as solved
Post marked as unsolved with 2 replies, 2,009 views
I'm writing a 3d game. I started out with an X-Code preset "Game" with MetalKit.It generated an AppDelegate, a GameController, a Renderer, some shaders, and a MainStory board.In GameController I've got an MTKView instantiated.I can catch mouse events in GameController with, for example,override func mouseMoved() {}but keyboard events elude me.I've read that keyboard events should be caught in a view, but overriding them on MTKView did not achive anything.So how is it done?