Hello all, i went through the wiki for some help on fullscreen and keyboard input. I looked at the code and tested it out.
Now that i’ve somewhat understood how fullscreen works, thanks to the wonderful and clear comments made, i began tinkering around the code. (IE Displaying random objects, pictures, etc…) But the thing that I can’t seem to get right is the keylistener.
I’m also using my Deitel java book for reference, but everything they do requires swing and they added “addKeyListener(this)” within the constructor of the class.
I looked through the fullscreen code and saw that well although some of it is similar to swing, i don’t think it really uses it. (I’m a newbie to java ). I was wondering where i Should implement “addKeyListener(this)” because so far i can’t get keyboard input to work and its frustrating me !!
Thanks!
