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​
Declaration
public abstract class WiiClassicControllerBase : WiiExtensionControllerBase, II2cPeripheral

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

Derived:
Meadow.Foundation.Sensors.Hid.NesClassicController

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​
Declaration
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​
Declaration
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​
Declaration
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​
Declaration
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​
Declaration
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​
Declaration
protected byte RightTriggerPosition { get; }

PlusButtonPressed​

Is Plus (Start) button pressed

View Source​
Declaration
protected bool PlusButtonPressed { get; }

MinusButtonPressed​

Is Minus (Select) button pressed

View Source​
Declaration
protected bool MinusButtonPressed { get; }

HomeButtonPressed​

Is Home button pressed

View Source​
Declaration
protected bool HomeButtonPressed { get; }

LButtonPressed​

Is L button pressed

View Source​
Declaration
protected bool LButtonPressed { get; }

RButtonPressed​

Is R button pressed

View Source​
Declaration
protected bool RButtonPressed { get; }

ZLButtonPressed​

Is ZL button pressed

View Source​
Declaration
protected bool ZLButtonPressed { get; }

ZRButtonPressed​

Is ZR button pressed

View Source​
Declaration
protected bool ZRButtonPressed { get; }

XButtonPressed​

Is X button pressed

View Source​
Declaration
protected bool XButtonPressed { get; }

YButtonPressed​

Is Y button pressed

View Source​
Declaration
protected bool YButtonPressed { get; }

AButtonPressed​

Is A button pressed

View Source​
Declaration
protected bool AButtonPressed { get; }

BButtonPressed​

Is B button pressed

View Source​
Declaration
protected bool BButtonPressed { get; }

DPadLeftPressed​

Is D-pad left pressed

View Source​
Declaration
protected bool DPadLeftPressed { get; }

DPadRightPressed​

Is D-pad right pressed

View Source​
Declaration
protected bool DPadRightPressed { get; }

DPadUpPressed​

Is D-pad up pressed

View Source​
Declaration
protected bool DPadUpPressed { get; }

DPadDownPressed​

Is D-pad down pressed

View Source​
Declaration
protected bool DPadDownPressed { get; }

Fields​

useHighResolutionMode​

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

View Source​
Declaration
protected bool useHighResolutionMode

Methods​

Initialize()​

Initialize the extension controller

View Source​
Declaration
protected override void Initialize()

Implements​

  • Meadow.Hardware.II2cPeripheral