C# Class ScpControl.Bluetooth.Ds4.BthDs4

Represents a DualShock 4 controller connected via Bluetooth.
Inheritance: BthDevice
Mostrar archivo Open project: nefarius/ScpToolkit

Public Methods

Method 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

Protected Methods

Method Description
Process ( System.DateTime now ) : void

Private Methods

Method Description
SetLightBarColor ( DsPadId value ) : void

Method Details

BthDs4() public method

public BthDs4 ( ) : System
return System

BthDs4() public method

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
return System

InitHidReport() public method

public InitHidReport ( byte report ) : bool
report byte
return bool

ParseHidReport() public method

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

Process() protected method

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