#include <wiimote_state.h>


Definition at line 25 of file wiimote_state.h.
| NONE | |
| NUNCHUK | |
| CLASSIC | |
| GH3_GHWT_GUITAR | |
| GHWT_DRUMS | |
| BALANCE_BOARD | |
| MOTION_PLUS | |
| PARTIALLY_INSERTED |
Definition at line 169 of file wiimote_state.h.
{
NONE = 0,
NUNCHUK,
CLASSIC,
GH3_GHWT_GUITAR, // GH3 or GHWT Guitar (treated as Classic)
GHWT_DRUMS, // not yet used
BALANCE_BOARD,
MOTION_PLUS,
PARTIALLY_INSERTED,
};
| void wiimote_state::Clear | ( | bool | including_deadzones ) | [inline, protected] |
Definition at line 355 of file wiimote_state.h.
References ClassicController, wiimote_state::joystick::DeadZone, wiimote_state::nunchuk::Joystick, wiimote_state::classic_controller::JoystickL, wiimote_state::classic_controller::JoystickR, and Nunchuk.
Referenced by wiimote::Connect(), wiimote::Disconnect(), and wiimote::wiimote().
{
joystick::deadzone nunchuk_deadzone,
classic_joyl_deadzone,
classic_joyr_deadzone;
// preserve the deadzone settings?
if(!including_deadzones) {
nunchuk_deadzone = Nunchuk.Joystick.DeadZone;
classic_joyl_deadzone = ClassicController.JoystickL.DeadZone;
classic_joyr_deadzone = ClassicController.JoystickR.DeadZone;
}
memset(this, 0, sizeof(wiimote_state));
// restore the deadzones?
if(!including_deadzones) {
Nunchuk.Joystick.DeadZone = nunchuk_deadzone;
ClassicController.JoystickL.DeadZone = classic_joyl_deadzone;
ClassicController.JoystickR.DeadZone = classic_joyr_deadzone;
}
}
friend class wiimote [friend] |
Definition at line 27 of file wiimote_state.h.
Referenced by wiimote::CalibrateAtRest().
Definition at line 154 of file wiimote_state.h.
Definition at line 153 of file wiimote_state.h.
Definition at line 155 of file wiimote_state.h.
Definition at line 157 of file wiimote_state.h.
Referenced by wiimote::ClassicConnected(), wiimote::IsBalanceBoard(), and wiimote::NunchukConnected().
Definition at line 156 of file wiimote_state.h.
Referenced by wiimote::SetRumble().
Referenced by wiimote::Connect().
Referenced by Clear(), and wiimote::RefreshState().
Definition at line 180 of file wiimote_state.h.
Referenced by wiimote::ClassicConnected(), wiimote::IsBalanceBoard(), and wiimote::NunchukConnected().
Referenced by wiimote::SetLEDs().
Referenced by Clear(), and wiimote::RefreshState().
unsigned wiimote_state::NunchukNearGUpdates [protected] |
Definition at line 353 of file wiimote_state.h.
unsigned wiimote_state::WiimoteNearGUpdates [protected] |
Definition at line 352 of file wiimote_state.h.
1.7.2