C# Class ScpControl.RootHub

Inheritance: System.ComponentModel.Component
ファイルを表示 Open project: nefarius/ScpToolkit Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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

Protected Methods

Method Description
OnDeviceArrival ( object sender, ArrivalEventArgs e ) : void
OnHidReportReceived ( object sender, ScpHidReport e ) : void

Method Details

Close() public method

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

GetPadDetail() public method

public GetPadDetail ( DsPadId pad ) : DualShockPadMeta
pad DsPadId
return DualShockPadMeta

GetProfiles() public method

public GetProfiles ( ) : IEnumerable
return IEnumerable

GetStatusData() public method

public GetStatusData ( ) : IEnumerable
return IEnumerable

IsNativeFeedAvailable() public method

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

Notify() public method

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.
return DsPadId

OnDeviceArrival() protected method

protected OnDeviceArrival ( object sender, ArrivalEventArgs e ) : void
sender object
e ArrivalEventArgs
return void

OnHidReportReceived() protected method

protected OnHidReportReceived ( object sender, ScpHidReport e ) : void
sender object
e ScpHidReport
return void

Open() public method

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

PromotePad() public method

public PromotePad ( byte pad ) : void
pad byte
return void

RemoveProfile() public method

public RemoveProfile ( DualShockProfile profile ) : void
profile DualShockProfile
return void

RequestConfiguration() public method

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

Resume() public method

public Resume ( ) : bool
return bool

RootHub() public method

public RootHub ( ) : System
return System

RootHub() public method

public RootHub ( IContainer container ) : System
container IContainer
return System

Rumble() public method

public Rumble ( DsPadId pad, byte large, byte small ) : bool
pad DsPadId
large byte
small byte
return bool

Start() public method

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

Stop() public method

Stops all underlying hubs and disposes acquired resources.
public Stop ( ) : bool
return bool

SubmitConfiguration() public method

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.
return void

SubmitProfile() public method

public SubmitProfile ( DualShockProfile profile ) : void
profile DualShockProfile
return void

Suspend() public method

public Suspend ( ) : bool
return bool