libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
OgcInputDriver Class Reference

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>

Inheritance diagram for OgcInputDriver:
[legend]

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()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OgcInputDriver()

OgcInputDriver::OgcInputDriver ( )

Definition at line 146 of file OgcInputDriver.cpp.

◆ ~OgcInputDriver()

OgcInputDriver::~OgcInputDriver ( )
override

Definition at line 153 of file OgcInputDriver.cpp.

Member Function Documentation

◆ init()

void OgcInputDriver::init ( )
overridevirtual

Initializes the controller subsystem.

Implements InputDriver.

Definition at line 161 of file OgcInputDriver.cpp.

◆ setContinuousRumble()

void OgcInputDriver::setContinuousRumble ( int channel,
bool continuous )
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.

◆ setRumble()

void OgcInputDriver::setRumble ( int channel,
bool rumble )
overridevirtual

Requests a rumble event on the specified controller channel.

Implements InputDriver.

Definition at line 188 of file OgcInputDriver.cpp.

◆ shutdown()

void OgcInputDriver::shutdown ( )
overridevirtual

Shuts the controller subsystem down.

Implements InputDriver.

Definition at line 177 of file OgcInputDriver.cpp.

◆ update()

void OgcInputDriver::update ( )
overridevirtual

Polls the hardware and dispatches InputPadData payloads to the UI.

Implements InputDriver.

Definition at line 198 of file OgcInputDriver.cpp.


The documentation for this class was generated from the following files: