This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
camsterb
wrote ...
2013/1/10
How can I check when a key is NOT being pressed?
camsterb
2013/1/10
#
I want to use an if-statement to check if the enter key isn't down. I tried:
if(Greenfoot.isKeyDown("enter") == false) doSomething();
It compiled, but didn't seem to do anything.
vonmeth
2013/1/10
#
That should work fine. I tested your code. *shrug*
camsterb
2013/1/10
#
Shrug indeed...
You need to login to post a reply.
X