-
Notifications
You must be signed in to change notification settings - Fork 16
layoutInfo
Samir Zahran edited this page Aug 30, 2016
·
1 revision
Type: Object
Contains information about the gamepad's layout map.
This array may contain any or none of the following:
| Name | Type | Description |
|---|---|---|
description |
String |
The gamepad layout's description. |
name |
String |
The human-readable name of the gamepad's layout. |
unknownLayout |
Bool |
This is set to true if there was no known gamepad layout found for this controller. It is otherwise not present. |
var controller = Controller.getController(0);
console.log(controller.layoutInfo);
>> Object {
>> layout: "Xbox One (Xbox 360 Controller Driver)",
>> description: "A description of the controller input map."
>> }The MIT License (MIT)
Copyright © 2016 Samir Zahran
Setup
Buttons & Analog Sticks
Controller Layouts
Configuring Settings
Controller Events
Button Events
Analog Stick Events
Controller.supported
Controller.controllers
Controller.controllerCount
Controller.search()
Controller.getController()
Controller.watchAll()
Controller.unwatchAll()
.connectedTimestamp
.id
.index
.inputs
.layoutInfo
.name
.watch()
.unwatch()
Settings Objects
List of Settings
settings.list()
settings.clear()
settings.update()
→ Grunt Tasks
→ Registering Settings
→ Creating Layout Maps