Open jshreyans opened 5 years ago
@jshreyans551 have a look at the task description again "Clicking on these 'virtual keys' or pressing the corresponding keys on the keyboard should produce a sound (different sounds for different keys)."
@sarthak-sehgal
I've added the necessary code for mouseclicks also. However, I had to use the switch-case again and that makes the code repetetive. I'm trying to make a function and simply call it in both mousedown
and keydown
but the switch
receives different argument types in each event so that creates a problem.
Completed B1 Will be adding more animations on
keydown
andkeyup
to highlight what key has been pressed