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

2011/9/29

Greenfoot.isKeyDown("shift") not working in 2.1.0?

ez4u2c ez4u2c

2011/9/29

#
Can anyone tell me if isKeyDown("shift") was operational in 2.1.0? Also isKeyDown("control") seems not to work either.
kiarocks kiarocks

2011/9/29

#
no, it does not work. update!
DonaldDuck DonaldDuck

2011/9/29

#
The shift key is not supported in the Greenfoot.isKeyDown type, but I'm sure you can use different java methods. This may help you.
mjrb4 mjrb4

2011/9/29

#
In the latest version it works for me fine, you'll need to update though. There is the possibility that it doesn't work when you update depending on what system you're running on. In short, it's because there's no feasible solution to guarantee with 100% accuracy that any key is what it says it is. It should work in the latest release, but if not there's not a lot we can really do about it - you'll have to use another key.
You need to login to post a reply.