oliversb Posted June 25, 2014 Share Posted June 25, 2014 What is the best way to get if ANY key is held down. Would I have to use a boolean in the keyboard down event? Thanks Link to comment Share on other sites More sharing options...
lewster32 Posted June 25, 2014 Share Posted June 25, 2014 http://docs.phaser.io/Phaser.Keyboard.html#onDownCallback or http://docs.phaser.io/Phaser.Keyboard.html#addCallbacks Link to comment Share on other sites More sharing options...
oliversb Posted June 25, 2014 Author Share Posted June 25, 2014 So I should I use these to detect when the key is first pressed, set a flag to true, determine if the flag is true in update and set flag to false in onUp event? Thanks Link to comment Share on other sites More sharing options...
lewster32 Posted June 25, 2014 Share Posted June 25, 2014 I think so yeah - I normally don't like 'up' or 'out' events as they're often unreliable, but there doesn't appear to be a particular boolean for the whole keyboard manager, just for individual keys. Link to comment Share on other sites More sharing options...
Recommended Posts