A Controller object represents a connected physical game controller.
More...
|
| enum | Key |
| | Controllers' standard key Controller receives only standard key which contained within enum Key by default.
|
| |
A Controller object represents a connected physical game controller.
Gets a Controller object with tag.
- Parameters
-
| tag | An identifier to find the controller. |
- Returns
- A Controller object.
| local getControllerByTag |
( |
local |
tag | ) |
|
|
static |
Gets a Controller object with tag.
- Parameters
-
| tag | An identifier to find the controller. |
- Returns
- A Controller object.
static void
startDiscoveryController |
( |
| ) |
|
|
static |
Start discovering new controllers.
- Warning
- The API only work on the IOS platform. Empty implementation on other platform.
| local startDiscoveryController |
( |
| ) |
|
|
static |
Start discovering new controllers.
- Warning
- The API only work on the IOS platform. Empty implementation on other platform.
| static void stopDiscoveryController |
( |
| ) |
|
|
static |
Stop the discovery process.
- Warning
- The API only work on the IOS platform.Empty implementation on other platform.
| local stopDiscoveryController |
( |
| ) |
|
|
static |
Stop the discovery process.
- Warning
- The API only work on the IOS platform.Empty implementation on other platform.
| void receiveExternalKeyEvent |
( |
int |
externalKeyCode, |
|
|
bool |
receive |
|
) |
| |
Activate receives key event from external key.
e.g. back,menu. Controller receives only standard key which contained within enum Key by default.
- Warning
- The API only work on the android platform for support diversified game controller.
- Parameters
-
| externalKeyCode | External key code. |
| receive | True if external key event on this controller should be receive, false otherwise. |
| local receiveExternalKeyEvent |
( |
local |
externalKeyCode, |
|
|
local |
receive |
|
) |
| |
Activate receives key event from external key.
e.g. back,menu. Controller receives only standard key which contained within enum Key by default.
- Warning
- The API only work on the android platform for support diversified game controller.
- Parameters
-
| externalKeyCode | External key code. |
| receive | True if external key event on this controller should be receive, false otherwise. |
Changes the tag that is used to identify the controller easily.
- Parameters
-
| tag | A integer that identifies the controller. |
| local setTag |
( |
local |
tag | ) |
|
|
inline |
Changes the tag that is used to identify the controller easily.
- Parameters
-
| tag | A integer that identifies the controller. |
Returns a tag that is used to identify the controller easily.
- Returns
- An integer that identifies the controller.
Returns a tag that is used to identify the controller easily.
- Returns
- An integer that identifies the controller.
The documentation for this class was generated from the following file: