DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectOutput.Cab.Out.Pac.PacDriveSingleton Class Reference

Singleton version of the PacDrive class found in the PacDrive SDK. More...

Public Types

enum  DeviceType { Unknown, PacDrive, UHID, PacLED64 }
 
enum  FlashSpeed : byte { AlwaysOn = 0, Seconds_2 = 1, Seconds_1 = 2, 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
 

Detailed Description

Singleton version of the PacDrive class found in the PacDrive SDK.

Member Enumeration Documentation

Enumerator
Unknown 
PacDrive 
UHID 
PacLED64 
Enumerator
AlwaysOn 
Seconds_2 
Seconds_1 
Seconds_0_5 

Member Function Documentation

string DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetDevicePath ( int  Index)
DeviceType DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetDeviceType ( int  Index)
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetProductId ( int  Index)
string DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetProductName ( int  Index)
string DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetSerialNumber ( int  Index)
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetVendorId ( int  Index)
string DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetVendorName ( int  Index)
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.GetVersionNumber ( int  Index)
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.

Returns
List of PacDrive Ids
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacDriveUHIDSetLEDState ( int  Index,
int  Port,
bool  State 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacDriveUHIDSetLEDStates ( int  Index,
ushort  Data 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacDriveUHIDSetLEDStates ( int  Index,
bool[]  Data 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64ClearFlash ( int  Index)
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64GetDeviceId ( int  Index)
List<int> DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64GetIdList ( )

Gets the Ids of the PacLed64 controllers which are connected to the system.

Returns
List of PacLed64 Ids
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64GetIndexForDeviceId ( int  Id)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64RunScript ( int  Index)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetDeviceId ( int  Index,
int  NewId 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDFadeTime ( int  Index,
byte  FadeTime 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDFlashSpeed ( int  Index,
int  Port,
FlashSpeed  FlashSpeed 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDFlashSpeeds ( int  Index,
FlashSpeed  FlashSpeed 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDIntensities ( int  Index,
byte[]  Data 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDIntensity ( int  Index,
int  Port,
byte  Intensity 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDState ( int  Index,
int  Group,
int  Port,
bool  State 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDStates ( int  Index,
int  Group,
byte  Data 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDStates ( int  Index,
byte[]  Data 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDStates ( int  Index,
int  Group,
bool[]  Data 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetLEDStatesRandom ( int  Index)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64SetScriptStepDelay ( int  Index,
byte  StepDelay 
)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64StartScriptRecording ( int  Index)
bool DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacLed64StopScriptRecording ( int  Index)
delegate void DirectOutput.Cab.Out.Pac.PacDriveSingleton.PacRemovedDelegate ( int  Index)
void DirectOutput.Cab.Out.Pac.PacDriveSingleton.Shutdown ( )

Property Documentation

PacDriveSingleton DirectOutput.Cab.Out.Pac.PacDriveSingleton.Instance
staticget
int DirectOutput.Cab.Out.Pac.PacDriveSingleton.NumDevices
get

Gets the count of attached devices

The count of devices.

Event Documentation

PacAttachedDelegate DirectOutput.Cab.Out.Pac.PacDriveSingleton.OnPacAttached = null
PacRemovedDelegate DirectOutput.Cab.Out.Pac.PacDriveSingleton.OnPacRemoved = null

The documentation for this class was generated from the following file: