This site requires JavaScript, please enable it in your browser!
Greenfoot back
Lethal_Vitamin
Lethal_Vitamin wrote ...

2013/12/14

Logging Keyboard Input to the Console

Lethal_Vitamin Lethal_Vitamin

2013/12/14

#
My Scenario ¡Ayúdame! I'm trying to do this, but my scenario only logs the first key pressed to the console. Any subsequent key presses are ignored.
davmac davmac

2013/12/14

#
It works fine for me. All keys typed are logged.
bourne bourne

2013/12/14

#
Works fine for me as well, though thought it would have something to do with the key release issue with macs and java applets in browsers. But doesn't seem that this has to do with isKeyDown
danpost danpost

2013/12/14

#
When the console first opens, due to the first keyboard input being processed, the focus transfers to the console. You have to re-focus on your scenario before it can accept more keyboard input. Clicking anywhere within the Greenfoot application frame should accomplish this.
Lethal_Vitamin Lethal_Vitamin

2013/12/14

#
ty
danpost danpost

2013/12/14

#
So, what did you need to do to correct the issue?
Lethal_Vitamin Lethal_Vitamin

2013/12/14

#
I re-focused on my scenario.
You need to login to post a reply.