Unit 3 Lesson 16 Level 5 Mouse Input

My gears don’t rotate with or without mouse input. I have tried this both in Chrome and Firefox. Am I doing something wrong or expecting the wrong thing?

When I added the else to the if the gears would rotate but no response when I press the mouse.

Hello @chorn,
The only difference I can see right away may be that you have to hold the mouse button down to make it work. Nothing seems to happen if I just click the mouse. Maybe give that a try?

Hi @edavis,
OK, so weird. Today it works properly! I think I rebooted my computer last night, so I guess that was it!

Yesterday I got things working by taking out mouseDown and replacing with keyDown. Thanks for the response!

1 Like