I’m following the video tutorial linked below from youtube to build a 3D java game.
http://www.youtube.com/user/TH3CHERNO#p/c/0FB6A62E3D328423/12/Ivg8IYYdFyk
On the 12th episode we add an InputHandler to support key controls. Everything on the first 12 episodes works exactly as expected. For some reason I’m missing something that makes the InputHandler execute, because it is being ignored. When the keys are pressed nothing happens.
The project currently includes 7 classes so you probably don’t want me to paste all of the code to this post. I’m not sure what to provide to make this easy to troubleshoot.
My question: What is a logical starting point to determine what I’ve missed?
The code looks exactly the same as the presenter’s code. Something is obviously different, but I have no idea where to look to resolve it.
Thank you for any assistance.
I would guess that you missed actually adding your
InputHandlerinstance as a listener to your Component.addKeyListener(inputHandler),addMouseListener(inputHandler)and such.