Gamepad#Gamepad

new Gamepad(game)

The Gamepad class handles gamepad input and dispatches gamepad events.

Remember to call gamepad.start().

HTML5 GAMEPAD API SUPPORT IS AT AN EXPERIMENTAL STAGE!
At moment of writing this (end of 2013) only Chrome supports parts of it out of the box. Firefox supports it
via prefs flags (about:config, search gamepad). The browsers map the same controllers differently.
This class has constants for Windows 7 Chrome mapping of XBOX 360 controller.

Parameters
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source code: input/Gamepad.js (Line 21)
doc_phaser
2017-02-14 10:48:53
Comments
Leave a Comment

Please login to continue.