Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
How to add KeyListener?!
Old
Bullseye
Junior Member
 
Status: Offline
Posts: 2
Join Date: Sep 2012
Default How to add KeyListener?! - 10-13-2012, 03: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?!
   
Reply With Quote
Add KeyListener
Old
djslater107
Administrator
 
Status: Offline
Posts: 144
Join Date: Jan 2007
Default Add KeyListener - 10-14-2012, 07: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...


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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