-
Notifications
You must be signed in to change notification settings - Fork 1
BuzzController
The interface for the BuzzController
class extends the Controller
to add the functionality below.
BuzzController.lights = 0b0000;
Uses a 4 bit binary number (0-15) to represent the state of each light from P1 to P4 as each column.
Examples:
- All on:
BuzzController.lights = 0b1111
- All off:
BuzzController.lights = 0b0000
- P1 on only:
BuzzController.lights = 0b1000
- P2 on only:
BuzzController.lights = 0b0100
- P1 and P2 on:
BuzzController.lights = 0b1100
let supported = BuzzController.lights_supported
Returns a boolean value for whether or not HID control is supported, for the lights.
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