Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by empika

Hallo

Is there an easy way to create buttons yet?

I have seen a couple threads about using entities for buttons but it seems like a strange way to do it when it is alot easier to just create and position an html element, especially when you can do this on a touch device.
So is there a way of replicating what touch buttons do but for clicking with a mouse too? Eventually I want to target iOS and android but it is alot easier to just develop in the desktop broswer.

Thanks

1 decade ago by Hareesun

Have a look in the iOSImpact example. Think there's a great example in there. :)

1 decade ago by empika

Cool thanks Hareesun. Any idea if bindTouchArea will work with a mouse click? or does this still use touchStart and touchEnd?

1 decade ago by Hareesun

I just tried what I thought should work and it doesn't, it's part of the iOS Impact plugins.

Here's a link for some clicking aid though. :)

1 decade ago by empika

cheers Hareesun, think im gonna dive into the internals of the engine and see if i can rig up the equivalent of a click with bindTouch.

1 decade ago by empika

Wrote a plugin to handle HTML elements as buttons, check out the thread in the code forum or hit up my github repo.

http://impactjs.com/forums/code/html-buttons-plugin

https://github.com/empika/ImpactJS-Plugins

Cheers
Page 1 of 1
« first « previous next › last »