javascript - Handle User Input with Raphael -


I want to write a simple game using the Raphael javascript library, but a question sticks in my mind.

How does one handle keyboard input? I have seen the reference material and have not received any reference to it. Can you just pass this to the usual JavaScript key-headed methods?

Are you talking about it?

If so, check the source of the given samples.

For example

And you will see that they use normal JS events (Onmoudewow, OnMousePage, MouseDown, MouseUp, Mouseover, ... )


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -