Controller

From GiderosMobile
Revision as of 08:57, 23 August 2018 by Hgy29 (talk | contribs)

Supported platforms:
Available since: Gideros 2014.01

Description

Controller interface allows you to use most popular controllers on all supported operating systems under the same interface.

Internally Controller Interface also matches all buttons and controller behavior under the same scheme so you won't have to worry about that anymore.

For more information check out [1](Controller Interface Guide)








Methods

Controller:getControllerName - gets the name of controller
Controller:getPlayerCount - returns amount of connected controllers
Controller:getPlayers - returns table with controller IDs
Controller:isAnyAvailable - return true if any controller is connected
Controller:vibrate - vibrate the controller for provided amount of miliseconds

Events

Event.CONNECTED Event.DISCONNECTED Event.KEY_DOWN Event.KEY_UP Event.LEFT_JOYSTICK Event.LEFT_TRIGGER Event.RIGHT_JOYSTICK Event.RIGHT_TRIGGER

Constants