C# 클래스 ScpControl.Usb.Ds3.UsbDs3

Represents a DualShock 3 controller connected via Usb.
상속: UsbDevice
파일 보기 프로젝트 열기: nefarius/ScpToolkit

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