1 decade ago by superprat
I registered a click event
ig.input.bind( ig.KEY.MOUSE1, 'click');
but when i check the pressed() method for it, it shows me <i>undefined</i>. The state() works perfectly mind you.
This is about as simple as it gets and i've done this for other games of mine but I have no idea what's going wrong here, wasted a day on this.
Any ideas?
ig.input.bind( ig.KEY.MOUSE1, 'click');
but when i check the pressed() method for it, it shows me <i>undefined</i>. The state() works perfectly mind you.
This is about as simple as it gets and i've done this for other games of mine but I have no idea what's going wrong here, wasted a day on this.
Any ideas?