WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
Singleton version of the PacDrive class found in the PacDrive SDK. More...
Public Types | |
enum | DeviceType { DeviceType.Unknown, DeviceType.PacDrive, DeviceType.UHID, DeviceType.PacLED64 } |
enum | FlashSpeed : byte { FlashSpeed.AlwaysOn = 0, FlashSpeed.Seconds_2 = 1, FlashSpeed.Seconds_1 = 2, FlashSpeed.Seconds_0_5 = 3 } |
Public Member Functions | |
delegate void | PacAttachedDelegate (int Index) |
delegate void | PacRemovedDelegate (int Index) |
void | Shutdown () |
bool | PacDriveUHIDSetLEDStates (int Index, ushort Data) |
bool | PacDriveUHIDSetLEDState (int Index, int Port, bool State) |
bool | PacDriveUHIDSetLEDStates (int Index, bool[] Data) |
bool | PacLed64SetLEDState (int Index, int Group, int Port, bool State) |
bool | PacLed64SetLEDStates (int Index, int Group, byte Data) |
bool | PacLed64SetLEDStates (int Index, byte[] Data) |
bool | PacLed64SetLEDStates (int Index, int Group, bool[] Data) |
bool | PacLed64SetLEDStatesRandom (int Index) |
bool | PacLed64SetLEDIntensities (int Index, byte[] Data) |
bool | PacLed64SetLEDIntensity (int Index, int Port, byte Intensity) |
bool | PacLed64SetLEDFadeTime (int Index, byte FadeTime) |
bool | PacLed64SetLEDFlashSpeeds (int Index, FlashSpeed FlashSpeed) |
bool | PacLed64SetLEDFlashSpeed (int Index, int Port, FlashSpeed FlashSpeed) |
bool | PacLed64StartScriptRecording (int Index) |
bool | PacLed64StopScriptRecording (int Index) |
bool | PacLed64SetScriptStepDelay (int Index, byte StepDelay) |
bool | PacLed64RunScript (int Index) |
bool | PacLed64ClearFlash (int Index) |
bool | PacLed64SetDeviceId (int Index, int NewId) |
int | PacLed64GetDeviceId (int Index) |
int | PacLed64GetIndexForDeviceId (int Id) |
DeviceType | GetDeviceType (int Index) |
int | GetVendorId (int Index) |
int | GetProductId (int Index) |
int | GetVersionNumber (int Index) |
string | GetVendorName (int Index) |
string | GetProductName (int Index) |
string | GetSerialNumber (int Index) |
string | GetDevicePath (int Index) |
List< int > | PacLed64GetIdList () |
Gets the Ids of the PacLed64 controllers which are connected to the system. More... | |
int | PacDriveGetIndex () |
Gets the Ids of the first PacDrive controller which is connected to the system. More... | |
Properties | |
static PacDriveSingleton | Instance [get] |
int | NumDevices [get] |
Gets the count of attached devices More... | |
Events | |
PacAttachedDelegate | OnPacAttached = null |
PacRemovedDelegate | OnPacRemoved = null |
Singleton version of the PacDrive class found in the PacDrive SDK.
Definition at line 15 of file PacDriveSingleton.cs.
Enumerator | |
---|---|
Unknown | |
PacDrive | |
UHID | |
PacLED64 |
Definition at line 17 of file PacDriveSingleton.cs.
Enumerator | |
---|---|
AlwaysOn | |
Seconds_2 | |
Seconds_1 | |
Seconds_0_5 |
Definition at line 25 of file PacDriveSingleton.cs.
string DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetDevicePath | ( | int | Index | ) |
Definition at line 401 of file PacDriveSingleton.cs.
DeviceType DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetDeviceType | ( | int | Index | ) |
Definition at line 354 of file PacDriveSingleton.cs.
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetProductId | ( | int | Index | ) |
Definition at line 364 of file PacDriveSingleton.cs.
string DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetProductName | ( | int | Index | ) |
Definition at line 383 of file PacDriveSingleton.cs.
string DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetSerialNumber | ( | int | Index | ) |
Definition at line 392 of file PacDriveSingleton.cs.
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetVendorId | ( | int | Index | ) |
Definition at line 359 of file PacDriveSingleton.cs.
string DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetVendorName | ( | int | Index | ) |
Definition at line 374 of file PacDriveSingleton.cs.
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetVersionNumber | ( | int | Index | ) |
Definition at line 369 of file PacDriveSingleton.cs.
delegate void DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacAttachedDelegate | ( | int | Index | ) |
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacDriveGetIndex | ( | ) |
Gets the Ids of the first PacDrive controller which is connected to the system.
Definition at line 436 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacDriveUHIDSetLEDState | ( | int | Index, |
int | Port, | ||
bool | State | ||
) |
Definition at line 210 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacDriveUHIDSetLEDStates | ( | int | Index, |
ushort | Data | ||
) |
Definition at line 205 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacDriveUHIDSetLEDStates | ( | int | Index, |
bool[] | Data | ||
) |
Definition at line 215 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64ClearFlash | ( | int | Index | ) |
Definition at line 308 of file PacDriveSingleton.cs.
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64GetDeviceId | ( | int | Index | ) |
Definition at line 318 of file PacDriveSingleton.cs.
List<int> DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64GetIdList | ( | ) |
Gets the Ids of the PacLed64 controllers which are connected to the system.
Definition at line 414 of file PacDriveSingleton.cs.
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64GetIndexForDeviceId | ( | int | Id | ) |
Definition at line 339 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64RunScript | ( | int | Index | ) |
Definition at line 303 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetDeviceId | ( | int | Index, |
int | NewId | ||
) |
Definition at line 313 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDFadeTime | ( | int | Index, |
byte | FadeTime | ||
) |
Definition at line 273 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDFlashSpeed | ( | int | Index, |
int | Port, | ||
FlashSpeed | FlashSpeed | ||
) |
Definition at line 283 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDFlashSpeeds | ( | int | Index, |
FlashSpeed | FlashSpeed | ||
) |
Definition at line 278 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDIntensities | ( | int | Index, |
byte[] | Data | ||
) |
Definition at line 263 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDIntensity | ( | int | Index, |
int | Port, | ||
byte | Intensity | ||
) |
Definition at line 268 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDState | ( | int | Index, |
int | Group, | ||
int | Port, | ||
bool | State | ||
) |
Definition at line 227 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDStates | ( | int | Index, |
int | Group, | ||
byte | Data | ||
) |
Definition at line 232 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDStates | ( | int | Index, |
byte[] | Data | ||
) |
Definition at line 238 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDStates | ( | int | Index, |
int | Group, | ||
bool[] | Data | ||
) |
Definition at line 248 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDStatesRandom | ( | int | Index | ) |
Definition at line 258 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetScriptStepDelay | ( | int | Index, |
byte | StepDelay | ||
) |
Definition at line 298 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64StartScriptRecording | ( | int | Index | ) |
Definition at line 288 of file PacDriveSingleton.cs.
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64StopScriptRecording | ( | int | Index | ) |
Definition at line 293 of file PacDriveSingleton.cs.
delegate void DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacRemovedDelegate | ( | int | Index | ) |
void DirectOutput.Cab.Out.Pac.PacDriveSingleton.Shutdown | ( | ) |
Definition at line 198 of file PacDriveSingleton.cs.
|
staticget |
Definition at line 159 of file PacDriveSingleton.cs.
|
get |
Gets the count of attached devices
The count of devices.
Definition at line 462 of file PacDriveSingleton.cs.
PacAttachedDelegate DirectOutput.Cab.Out.Pac.PacDriveSingleton.OnPacAttached = null |
Definition at line 144 of file PacDriveSingleton.cs.
PacRemovedDelegate DirectOutput.Cab.Out.Pac.PacDriveSingleton.OnPacRemoved = null |
Definition at line 145 of file PacDriveSingleton.cs.