C# Класс ScpControl.RootHub

Наследование: System.ComponentModel.Component
Показать файл Открыть проект Примеры использования класса

Private Properties

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

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

Метод Описание
Close ( ) : bool

Stops all underlying hubs, disposes acquired resources and saves the global configuration.

GetPadDetail ( DsPadId pad ) : DualShockPadMeta
GetProfiles ( ) : IEnumerable
GetStatusData ( ) : IEnumerable
IsNativeFeedAvailable ( ) : bool

Checks if the native stream is available or disabled in configuration.

Notify ( ScpDevice notification, string Class, string path ) : DsPadId

Gets called when a device was plugged in.

Open ( ) : bool

Opens and initializes devices and services listening and running on the local machine.

PromotePad ( byte pad ) : void
RemoveProfile ( DualShockProfile profile ) : void
RequestConfiguration ( ) : GlobalConfiguration

Requests the currently active configuration set from the root hub.

Resume ( ) : bool
RootHub ( ) : System
RootHub ( IContainer container ) : System
Rumble ( DsPadId pad, byte large, byte small ) : bool
Start ( ) : bool

Starts listening for incoming requests and starts all underlying hubs.

Stop ( ) : bool

Stops all underlying hubs and disposes acquired resources.

SubmitConfiguration ( GlobalConfiguration configuration ) : void

Submits an altered copy of the global configuration to the root hub and saves it.

SubmitProfile ( DualShockProfile profile ) : void
Suspend ( ) : bool

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

Метод Описание
OnDeviceArrival ( object sender, ArrivalEventArgs e ) : void
OnHidReportReceived ( object sender, ScpHidReport e ) : void

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

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

Stops all underlying hubs, disposes acquired resources and saves the global configuration.
public Close ( ) : bool
Результат bool

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

public GetPadDetail ( DsPadId pad ) : DualShockPadMeta
pad DsPadId
Результат DualShockPadMeta

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

public GetProfiles ( ) : IEnumerable
Результат IEnumerable

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

public GetStatusData ( ) : IEnumerable
Результат IEnumerable

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

Checks if the native stream is available or disabled in configuration.
public IsNativeFeedAvailable ( ) : bool
Результат bool

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

Gets called when a device was plugged in.
public Notify ( ScpDevice notification, string Class, string path ) : DsPadId
notification ScpDevice The type.
Class string The device class of the currently affected device.
path string The device path of the currently affected device.
Результат DsPadId

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

protected OnDeviceArrival ( object sender, ArrivalEventArgs e ) : void
sender object
e ArrivalEventArgs
Результат void

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

protected OnHidReportReceived ( object sender, ScpHidReport e ) : void
sender object
e ScpHidReport
Результат void

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

Opens and initializes devices and services listening and running on the local machine.
public Open ( ) : bool
Результат bool

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

public PromotePad ( byte pad ) : void
pad byte
Результат void

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

public RemoveProfile ( DualShockProfile profile ) : void
profile DualShockProfile
Результат void

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

Requests the currently active configuration set from the root hub.
public RequestConfiguration ( ) : GlobalConfiguration
Результат GlobalConfiguration

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

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

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

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

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

public RootHub ( IContainer container ) : System
container IContainer
Результат System

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

public Rumble ( DsPadId pad, byte large, byte small ) : bool
pad DsPadId
large byte
small byte
Результат bool

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

Starts listening for incoming requests and starts all underlying hubs.
public Start ( ) : bool
Результат bool

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

Stops all underlying hubs and disposes acquired resources.
public Stop ( ) : bool
Результат bool

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

Submits an altered copy of the global configuration to the root hub and saves it.
public SubmitConfiguration ( GlobalConfiguration configuration ) : void
configuration GlobalConfiguration The global configuration object.
Результат void

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

public SubmitProfile ( DualShockProfile profile ) : void
profile DualShockProfile
Результат void

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

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