Manage your user with Raphael

I would like to write a simple game using the Raphael JavaScript library, but there is one question in my head.

How to handle keyboard input? I looked through the reference material and did not find any link to this. Can you just pass it the standard JavaScript keypress methods?

+5
source share
1 answer

You say Raphaël-JavaScript Library .

If so, just check the source of the samples provided.

eg.

Ihart example

And you see that they use regular js events (onmousemove, onmouseup, mousedown, mouseup, mouseover, ...)

+2
source

All Articles