Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Using Key Pressed Listener in 3.1
Old
chamillard
Junior Member
 
Status: Offline
Posts: 2
Join Date: Nov 2012
Default 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
Attached Images
File Type: jpg event handler problem.jpg (15.2 KB, 17 views)
   
Reply With Quote
 

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.