GamepadButton

GamepadButton

package js-html

Available on js

The GamepadButton interface defines an individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.

Documentation GamepadButton by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only pressed:Bool

A boolean value indicating whether the button is currently pressed (true) or unpressed (false).

read only value:Float

A double value used to represent the current state of analog buttons, such as the triggers on many modern gamepads. The values are normalized to the range 0.0 —1.0, with 0.0 representing a button that is not pressed, and 1.0 representing a button that is fully pressed.

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/GamepadButton.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部