开发者

Handle User Input with Raphael

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?


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,...)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜