Impact

» Edit Game Info

11 months ago by Joncom

Is it just me or are the bindTouch, touchStart, and touchEnd functions in "input.js" not used at all?

11 months ago by AndrewMast

Those are used in plugins and mobile device buttons. (At least, that is what I use 'em for)

-Andrew

11 months ago by Joncom

I think even if you removed the above mentioned code, mobile touch buttons would continue to work. Because touchstart, touchend, and touchmove events still get bound in the initMouse function.

11 months ago by AndrewMast

Yes, it binds touch to the canvas, but not to a specific element.

The function bindTouch binds touch to a certain element. (And uses touchStart and touchEnd to do that)

For example, you have an external div that acts as a button. You would run ig.input.bindtouch("#div", "jump") to link it up to an action.

-Andrew
Page 1 of 1
« first « previous next › last »

Post Reply

Please login or register to reply.