Jump to content

Is possible to pass input keyboard events to a button?


safesound
 Share

Recommended Posts

Hello,

My issue is I want to mimic the left and right keys in buttons. 

this.cursors = this.input.keyboard.createCursorKeys();

this.LeftBtn // how I could pass the this.cursors.left.isDown to this button
this.rightBtn // how I could pass the this.cursors.right.isDown to this button

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...