BastardCode Posted October 31, 2014 Share Posted October 31, 2014 I dug deep into docs and source, realized signals have an .add methodKeys have an onUp and onDown signal, which again, in turn, has an add method. What I couldn't figure out was if there is a more general way of handling keyboard input? Does the keyboard itself have signals for onUp / onDown?Can I run a general callback, something like :nextTurn()" each time ANY key is pressed? What if I just wanted to implement a "hit ANY key to start" function? Not looking for code so much as a pointer in the right direction. Link to comment Share on other sites More sharing options...
rich Posted November 1, 2014 Share Posted November 1, 2014 This should help: http://examples.phaser.io/_site/view_full.html?d=input&f=word+input.js&t=word%20input Link to comment Share on other sites More sharing options...
Recommended Posts