Using Key Pressed Listener in 3.1 -
11-30-2012, 11:54 AM
Greetings,
I'm trying to handle a key pressed event in Alice 3.1, but I can't get it to work. I've attached an image that shows the method I'm calling (moveForward), the fact that main (I renamed myFirstMethod) is calling the method to initialize the event handlers, and my initializeEventHandlers method. Clicking the mouse on the screen moves the lioness forward, so the mouse click on screen listener is working as expected. Pressing keys doesn't have any effect, though, so the key press listener isn't working for me.
Any suggestions would be great.
Thanks,
Dr. T
|