Skip to main content

Class WiiClassicControllerBase

Abstract base class that represents Nintendo Wiimote I2C extension controllers Based on the Wii classic controller including: Classic Pro, Snes classic, and Nes classic controllers

Assembly: WiiExtensionControllers.dll
View Source
public abstract class WiiClassicControllerBase : WiiExtensionControllerBase, II2cPeripheral

Inheritance: System.Object -> Meadow.Foundation.Sensors.Hid.WiiExtensionControllerBase

Derived:
Meadow.Foundation.Sensors.Hid.NesClassicController, Meadow.Foundation.Sensors.Hid.SnesClassicController, Meadow.Foundation.Sensors.Hid.WiiClassicController, Meadow.Foundation.Sensors.Hid.WiiClassicControllerPro

Implements:
Meadow.Hardware.II2cPeripheral

Properties

LeftJoystickX

Get the x-axis value for the left analog joystick (classic and classic pro) 0-63 in normal mode, 0-255 is high resolution mode

View Source
protected byte LeftJoystickX { get; }

LeftJoystickY

Get the y-axis value for the left analog joystick (classic and classic pro) 0-63 in normal mode, 0-255 is high resolution mode

View Source
protected byte LeftJoystickY { get; }

RightJoystickX

Get the x-axis value for the right analog joystick (classic and classic pro) 0-31 in normal mode, 0-255 is high resolution mode

View Source
protected byte RightJoystickX { get; }

RightJoystickY

Get the y-axis value for the right analog joystick (classic and classic pro) 0-31 in normal mode, 0-255 is high resolution mode

View Source
protected byte RightJoystickY { get; }

LeftTriggerPosition

Left trigger position (original classic controller only) 0-31 in normal mode, 0-255 is high resolution mode

View Source
protected byte LeftTriggerPosition { get; }

RightTriggerPosition

Right trigger position (original classic controller only) 0-31 in normal mode, 0-255 is high resolution mode

View Source
protected byte RightTriggerPosition { get; }

PlusButtonPressed

Is Plus (Start) button pressed

View Source
protected bool PlusButtonPressed { get; }

MinusButtonPressed

Is Minus (Select) button pressed

View Source
protected bool MinusButtonPressed { get; }

HomeButtonPressed

Is Home button pressed

View Source
protected bool HomeButtonPressed { get; }

LButtonPressed

Is L button pressed

View Source
protected bool LButtonPressed { get; }

RButtonPressed

Is R button pressed

View Source
protected bool RButtonPressed { get; }

ZLButtonPressed

Is ZL button pressed

View Source
protected bool ZLButtonPressed { get; }

ZRButtonPressed

Is ZR button pressed

View Source
protected bool ZRButtonPressed { get; }

XButtonPressed

Is X button pressed

View Source
protected bool XButtonPressed { get; }

YButtonPressed

Is Y button pressed

View Source
protected bool YButtonPressed { get; }

AButtonPressed

Is A button pressed

View Source
protected bool AButtonPressed { get; }

BButtonPressed

Is B button pressed

View Source
protected bool BButtonPressed { get; }

DPadLeftPressed

Is D-pad left pressed

View Source
protected bool DPadLeftPressed { get; }

DPadRightPressed

Is D-pad right pressed

View Source
protected bool DPadRightPressed { get; }

DPadUpPressed

Is D-pad up pressed

View Source
protected bool DPadUpPressed { get; }

DPadDownPressed

Is D-pad down pressed

View Source
protected bool DPadDownPressed { get; }

Fields

useHighResolutionMode

Use high resolution mode for analog controls (Classic and Classic Pro controllers)

View Source
protected bool useHighResolutionMode

Methods

Initialize()

Initialize the extension controller

View Source
protected override void Initialize()

Implements

  • Meadow.Hardware.II2cPeripheral