C# Класс ScpControl.Usb.Ds3.UsbDs3

Represents a DualShock 3 controller connected via Usb.
Наследование: UsbDevice
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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).

Описание методов

Open() публичный Метод

public Open ( string devicePath ) : bool
devicePath string
Результат bool

Pair() публичный Метод

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.
Результат bool

ParseHidReport() защищенный Метод

Interprets a HID report sent by a DualShock 3 device.
protected ParseHidReport ( byte report ) : void
report byte The HID report as byte array.
Результат void

Process() защищенный Метод

Sends periodic status updates to the controller (HID Output reports).
protected Process ( System.DateTime now ) : void
now System.DateTime The current timestamp.
Результат void

Rumble() публичный Метод

Send Rumble request to controller.
public Rumble ( byte large, byte small ) : bool
large byte Larg motor.
small byte Small motor.
Результат bool

Start() публичный Метод

public Start ( ) : bool
Результат bool

UsbDs3() публичный Метод

public UsbDs3 ( ) : System
Результат System