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. :)
Thanks for that Ken. Worked like a charm! :)
Page 1 of 1
« first
« previous
next ›
last »