PDA

View Full Version : How to add KeyListener?!


Bullseye
10-13-2012, 04:55 PM
Hey!
In Alice 2.2 I could simply ask what key was pressed.
I dont know how to do it in 3.1.

There is a method in Scene:
addKeyPressListener

But I can't use it?! :mad:

djslater107
10-14-2012, 08:45 AM
Click on the Scene tab in the editor, and click on the edit button for the procedure initializeEventsEditor... There you can add and modify the addKeyListener event...