Posts

Post not yet marked as solved
2 Replies
2k 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?
Posted Last updated
.