Alice Community

Alice Community (
-   How Do I? (
-   -   How to add KeyListener?! (

Bullseye 10-13-2012 03:55 PM

How to add KeyListener?!
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:

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

djslater107 10-14-2012 07:45 AM

Add KeyListener
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...

All times are GMT -5. The time now is 10:05 PM.

Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.