azerion / phaser-input

Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
MIT License
203 stars 64 forks source link

How To Read Text Value? #46

Closed JimLynchCodes closed 7 years ago

JimLynchCodes commented 7 years ago

Suppose a user types something into the input and then clicks a button. In the click handler for the button how can I read the current text value that was typed into the input? thanks!

JimLynchCodes commented 7 years ago

I figured it out - it's just the "value" property on the text input.

Would be nice if that was mentioned somewhere in the docs though...