C# Class ScpControl.Usb.Ds4.UsbDs4

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

Méthodes publiques

Méthode Description
Open ( string devicePath ) : bool
Pair ( PhysicalAddress master ) : bool
Rumble ( byte large, byte small ) : bool

Send Rumble request to controller.

Start ( ) : bool
UsbDs4 ( ) : System

Méthodes protégées

Méthode Description
ParseHidReport ( byte report ) : void

Interprets a HID report sent by a DualShock 4 device.

Process ( System.DateTime now ) : void

Private Methods

Méthode Description
MapBattery ( byte value ) : byte
SetLightBarColor ( DsPadId value ) : void

Method Details

Open() public méthode

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

Pair() public méthode

public Pair ( PhysicalAddress master ) : bool
master PhysicalAddress
Résultat bool

ParseHidReport() protected méthode

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

Process() protected méthode

protected Process ( System.DateTime now ) : void
now System.DateTime
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

UsbDs4() public méthode

public UsbDs4 ( ) : System
Résultat System