C# Class ScpControl.Usb.Ds4.UsbDs4

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

Public Methods

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

Send Rumble request to controller.

Start ( ) : bool
UsbDs4 ( ) : System

Protected Methods

Method Description
ParseHidReport ( byte report ) : void

Interprets a HID report sent by a DualShock 4 device.

Process ( System.DateTime now ) : void

Private Methods

Method Description
MapBattery ( byte value ) : byte
SetLightBarColor ( DsPadId value ) : void

Method Details

Open() public method

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

Pair() public method

public Pair ( PhysicalAddress master ) : bool
master PhysicalAddress
return bool

ParseHidReport() protected method

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

UsbDs4() public method

public UsbDs4 ( ) : System
return System