I hae been programming for a couple months now and I have been using the depracated way to get Key inputs..
ie. public boolean keyDown(Event e , int key)... and they have worked, up till now. For an assignment at school I have to use the public void keyPressed(KeyEvent event) method to get KeyBoard inputs. My question was, if I use event.getKeyCode() can I compare that directly to key Codes i know already? If I use event.getKeyCode() and I pressed te spacebar , will it give me an integer of 32 like the depracated one? If not, does anyone know where I can find a list of all the keys on a keyboard and their codes?
Thanks in Advance.
Come and play the games.....