C# Class ScpControl.Usb.Ds3.UsbDs3

Represents a DualShock 3 controller connected via Usb.
Inheritance: UsbDevice
Afficher le fichier Open project: nefarius/ScpToolkit

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public Open ( string devicePath ) : bool
devicePath string
Résultat bool

Pair() public méthode

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.
Résultat bool

ParseHidReport() protected méthode

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

Process() protected méthode

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

Rumble() public méthode

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

Start() public méthode

public Start ( ) : bool
Résultat bool

UsbDs3() public méthode

public UsbDs3 ( ) : System
Résultat System