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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -