GC/Wii InputDriver: PAD (GameCube) / WPAD (Wiimote, Nunchuk, Classic, Wii U Pro Controller) plus a WiiDRC channel that lets a Wii app read a Wii U GamePad. More...
#include <OgcInputDriver.h>
Public Member Functions | |
| void | init () override |
| Initializes the controller subsystem. | |
| void | shutdown () override |
| Shuts the controller subsystem down. | |
| void | update () override |
| Polls the hardware and dispatches InputPadData payloads to the UI. | |
| void | setRumble (int channel, bool rumble) override |
| Requests a rumble event on the specified controller channel. | |
| void | setContinuousRumble (int channel, bool continuous) override |
| Holds a channel's motor on (or releases it) until changed. Drivers cap an unbroken run and insert a short gap so the motor is not driven continuously. | |
Public Member Functions inherited from InputDriver | |
| void | setRumbleEnabled (bool enabled) |
| Globally enables or disables rumble requested through setRumble(). | |
| bool | isRumbleEnabled () const |
| void | setWiimoteOrientation (int orientation) |
| int | getWiimoteOrientation () const |
Additional Inherited Members | |
Protected Attributes inherited from InputDriver | |
| bool | rumbleEnabled = true |
| see setRumbleEnabled() | |
| int | wiimoteOrientation = WIIMOTE_ORIENTATION_VERTICAL |
| see setWiimoteOrientation() | |
GC/Wii InputDriver: PAD (GameCube) / WPAD (Wiimote, Nunchuk, Classic, Wii U Pro Controller) plus a WiiDRC channel that lets a Wii app read a Wii U GamePad.
Definition at line 13 of file OgcInputDriver.h.
| OgcInputDriver::OgcInputDriver | ( | ) |
Definition at line 146 of file OgcInputDriver.cpp.
|
override |
Definition at line 153 of file OgcInputDriver.cpp.
|
overridevirtual |
Initializes the controller subsystem.
Implements InputDriver.
Definition at line 161 of file OgcInputDriver.cpp.
|
overridevirtual |
Holds a channel's motor on (or releases it) until changed. Drivers cap an unbroken run and insert a short gap so the motor is not driven continuously.
Implements InputDriver.
Definition at line 194 of file OgcInputDriver.cpp.
|
overridevirtual |
Requests a rumble event on the specified controller channel.
Implements InputDriver.
Definition at line 188 of file OgcInputDriver.cpp.
|
overridevirtual |
Shuts the controller subsystem down.
Implements InputDriver.
Definition at line 177 of file OgcInputDriver.cpp.
|
overridevirtual |
Polls the hardware and dispatches InputPadData payloads to the UI.
Implements InputDriver.
Definition at line 198 of file OgcInputDriver.cpp.