cs50 / draw.cs50.io

https://draw.cs50.io
9 stars 6 forks source link

ability to simulate touches with keyboard #6

Open dmalan opened 6 years ago

dmalan commented 6 years ago

Helpful for testing.

LincePotiguara commented 5 years ago

I noticed that metaKey is used to simulate diferent touches events. On Windows this key opens the Start menu which is too annoying.

I suggest to map to other key like Ctrl or Alt by adding a second check in the mc.on() function. ev.srcEvent.altKey or ev.srcEvent.ctrlKey should work.