Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How Do I? (http://www.alice.org/community/forumdisplay.php?f=28)
-   -   How to add KeyListener?! (http://www.alice.org/community/showthread.php?t=9553)

Bullseye 10-13-2012 04:55 PM

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

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 07:45 AM.

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