-
Notifications
You must be signed in to change notification settings - Fork 1
settings.clear()
Resets or clears all settings.
When called on Controller()
, the .clear()
method resets all settings to default. When called on a controller instance, it clears that controller's settings making it fall back to global settings.
// Global
// Resets all global settings to their defaults
Controller.globalSettings.clear();
// Per-controller
// Clears all settings on this controller, making it fall back to global
Controller.getController(0).settings.clear();
The MIT License (MIT)
Copyright © 2022 Jack Carey
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