Thank you for your help Norm. I have it working in a more manageable way now!
Type: Posts; User: Jams
Thank you for your help Norm. I have it working in a more manageable way now!
Well, the Player class is what I would like to add these KeyListeners to. That way the The Player receives a KeyEvent and respond accordingly.
Right now the Canvas has a KeyListener, Controller....
I'm creating a class to represent a player in a very small game. The Player class extends Object and has a whole slew of functionality in the works. Originally, I created a Controller class that...
Does anyone know if it is possible to add a key listener to an object that is not a Component or a subclass of a component?
I would like to add a key listener to a self defined class, but I'm not...