views:

157

answers:

1

I'd like to write a simple game using the Raphael javascript library, but one question is sticking in my mind.

How does one handle keyboard input? I've looked through the reference material and haven't found any reference to this. Can you simply pass it the standard JavaScript keypress methods?

+1  A: 

Are you talking about Raphaël—JavaScript Library.

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

e.g.

IChart Sample

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

jitter
ok, i had looked over the provided demos/documentation, but hadn't noticed anything about keyboard inputonly reason i asked :)
espais