How do I detect keypresses for Canvas?
Basically, I want to detect when a key has been pressed so that I can move a circle around. I successfully achieved this by adding into the body element:
Problem is, a keypress events can happen from all elements. This isn't really the way I want to do it because I would like to have input forms on the same document.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)