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 Hareesun

I don't suppose anyone's figured out a KeyUp method? Would be super handy. :)

1 decade ago by Ken

I did something similar for mouse up. Basically something like this in the entity class

update: function(){

if(ig.input.state('keyDown')){
this.isKeyDown=true;
}

if(!ig.input.state('keyDown') && this.isKeyDown){
this.isKeyDown=false;

//THE REST OF YOUR CODE HERE For KeyUp
}

}

Probably not the best way, but it works. :)

1 decade ago by Hareesun

Thanks for that Ken. Worked like a charm! :)

1 decade ago by Ken

Awesome!
Page 1 of 1
« first « previous next › last »