SinglePad#processButtonFloat()

processButtonFloat(buttonCode, value)

Handles buttons with floating values (like analog buttons that acts almost like an axis but still registers like a button)

Parameters
Name Type Description
buttonCode number

Which buttonCode of this button

value object

Button value (will range somewhere between 0 and 1, but not specifically 0 or 1.

Source code: input/SinglePad.js (Line 406)
doc_phaser
2017-02-14 11:09:40
Comments
Leave a Comment

Please login to continue.