C# Class ScpControl.Bluetooth.Ds4.BthDs4

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

Méthodes publiques

Méthode Description
BthDs4 ( ) : System
BthDs4 ( IBthDevice device, System.Net.NetworkInformation.PhysicalAddress master, byte lsb, byte msb ) : System
InitHidReport ( byte report ) : bool
ParseHidReport ( byte report ) : void

Interprets a HID report sent by a DualShock 4 device.

Rumble ( byte large, byte small ) : bool

Send Rumble request to controller.

Start ( ) : bool

Méthodes protégées

Méthode Description
Process ( System.DateTime now ) : void

Private Methods

Méthode Description
SetLightBarColor ( DsPadId value ) : void

Method Details

BthDs4() public méthode

public BthDs4 ( ) : System
Résultat System

BthDs4() public méthode

public BthDs4 ( IBthDevice device, System.Net.NetworkInformation.PhysicalAddress master, byte lsb, byte msb ) : System
device IBthDevice
master System.Net.NetworkInformation.PhysicalAddress
lsb byte
msb byte
Résultat System

InitHidReport() public méthode

public InitHidReport ( byte report ) : bool
report byte
Résultat bool

ParseHidReport() public méthode

Interprets a HID report sent by a DualShock 4 device.
public 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