The Controller Class covers a range of interfaces to popular input devices. Keyoard, Midi, Gamepad and Sockets
- Source:
Classes
- GamePadController
Search and initialize a Gamepad and make event listeners available.
tested with X Box controller
Gamepad Example on codepen:
codepen- KeyboardController
implements keyboard charcodes as controllerevents
Keyboard Example on codepen:
codepen- MidiController
Connects a midicontroller with a range of listeners. Can also send commands Back
Midi Example on codepen:
codepen- SocketController
A Socket controller connects a socket on the client with a sever. This only works if you run the app yourself with a server. And on our website