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 dahl

I see lots of threads about dragging and mouse location, but i'm more interested in just a single click. I've been reading the Input Docs and understand most of it, but,
so.......
ig.input.bind(ig.KEY.MOUSE1) binds to the left click. so then do i add....
.pressed in some way? b/c i don't see any kind of "onClick" like in java. OR could i just add my own control via the script?

as always thanks for your time and look forward to hearing from you guys. Thanks!

1 decade ago by fugufish

use this resource. It worked for me.

http://impactjs.com/forums/help/how-to-handle-clicking

more specifically, look at MikeL's approach with an 'invisible pointer', and dominic's follow up.

1 decade ago by dahl

Thanks fugu, i'll try it out. i'm also playing with the onClick method for javascript shrugs we'll see what happens i guess.
Page 1 of 1
« first « previous next › last »