C# Class ScpControl.RootHub

Inheritance: System.ComponentModel.Component
Afficher le fichier Open project: nefarius/ScpToolkit Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
OnDeviceArrival ( object sender, ArrivalEventArgs e ) : void
OnHidReportReceived ( object sender, ScpHidReport e ) : void

Method Details

Close() public méthode

Stops all underlying hubs, disposes acquired resources and saves the global configuration.
public Close ( ) : bool
Résultat bool

GetPadDetail() public méthode

public GetPadDetail ( DsPadId pad ) : DualShockPadMeta
pad DsPadId
Résultat DualShockPadMeta

GetProfiles() public méthode

public GetProfiles ( ) : IEnumerable
Résultat IEnumerable

GetStatusData() public méthode

public GetStatusData ( ) : IEnumerable
Résultat IEnumerable

IsNativeFeedAvailable() public méthode

Checks if the native stream is available or disabled in configuration.
public IsNativeFeedAvailable ( ) : bool
Résultat bool

Notify() public méthode

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.
Résultat DsPadId

OnDeviceArrival() protected méthode

protected OnDeviceArrival ( object sender, ArrivalEventArgs e ) : void
sender object
e ArrivalEventArgs
Résultat void

OnHidReportReceived() protected méthode

protected OnHidReportReceived ( object sender, ScpHidReport e ) : void
sender object
e ScpHidReport
Résultat void

Open() public méthode

Opens and initializes devices and services listening and running on the local machine.
public Open ( ) : bool
Résultat bool

PromotePad() public méthode

public PromotePad ( byte pad ) : void
pad byte
Résultat void

RemoveProfile() public méthode

public RemoveProfile ( DualShockProfile profile ) : void
profile DualShockProfile
Résultat void

RequestConfiguration() public méthode

Requests the currently active configuration set from the root hub.
public RequestConfiguration ( ) : GlobalConfiguration
Résultat GlobalConfiguration

Resume() public méthode

public Resume ( ) : bool
Résultat bool

RootHub() public méthode

public RootHub ( ) : System
Résultat System

RootHub() public méthode

public RootHub ( IContainer container ) : System
container IContainer
Résultat System

Rumble() public méthode

public Rumble ( DsPadId pad, byte large, byte small ) : bool
pad DsPadId
large byte
small byte
Résultat bool

Start() public méthode

Starts listening for incoming requests and starts all underlying hubs.
public Start ( ) : bool
Résultat bool

Stop() public méthode

Stops all underlying hubs and disposes acquired resources.
public Stop ( ) : bool
Résultat bool

SubmitConfiguration() public méthode

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.
Résultat void

SubmitProfile() public méthode

public SubmitProfile ( DualShockProfile profile ) : void
profile DualShockProfile
Résultat void

Suspend() public méthode

public Suspend ( ) : bool
Résultat bool