C# Class ScpControl.Usb.Ds3.UsbDs3

Represents a DualShock 3 controller connected via Usb.
Inheritance: UsbDevice
Mostra file Open project: nefarius/ScpToolkit

Private Properties

Property Type Description

Public Methods

Method Description
Open ( string devicePath ) : bool
Pair ( System.Net.NetworkInformation.PhysicalAddress master ) : bool

Pairs the current device to the provided Bluetooth host.

Rumble ( byte large, byte small ) : bool

Send Rumble request to controller.

Start ( ) : bool
UsbDs3 ( ) : System

Protected Methods

Method Description
ParseHidReport ( byte report ) : void

Interprets a HID report sent by a DualShock 3 device.

Process ( System.DateTime now ) : void

Sends periodic status updates to the controller (HID Output reports).

Method Details

Open() public method

public Open ( string devicePath ) : bool
devicePath string
return bool

Pair() public method

Pairs the current device to the provided Bluetooth host.
public Pair ( System.Net.NetworkInformation.PhysicalAddress master ) : bool
master System.Net.NetworkInformation.PhysicalAddress The MAC address of the host.
return bool

ParseHidReport() protected method

Interprets a HID report sent by a DualShock 3 device.
protected ParseHidReport ( byte report ) : void
report byte The HID report as byte array.
return void

Process() protected method

Sends periodic status updates to the controller (HID Output reports).
protected Process ( System.DateTime now ) : void
now System.DateTime The current timestamp.
return void

Rumble() public method

Send Rumble request to controller.
public Rumble ( byte large, byte small ) : bool
large byte Larg motor.
small byte Small motor.
return bool

Start() public method

public Start ( ) : bool
return bool

UsbDs3() public method

public UsbDs3 ( ) : System
return System