C# Class vJoyInterfaceWrap.vJoy

Datei anzeigen Open project: shauleiz/vJoy Class Usage Examples

Public Methods

Method Description
AcquireVJD ( UInt32 rID ) : bool
DriverMatch ( UInt32 &DllVer, UInt32 &DrvVer ) : bool
FfbRegisterGenCB ( FfbCbFunc cb, object data ) : void
FfbRegisterGenCB ( WrapFfbCbFunc cb, IntPtr data ) : void
Ffb_h_DevCtrl ( IntPtr Packet, FFB_CTRL &Control ) : UInt32
Ffb_h_DevGain ( IntPtr Packet, Byte &Gain ) : UInt32
Ffb_h_DeviceID ( IntPtr Packet, int &DeviceID ) : UInt32
Ffb_h_EBI ( IntPtr Packet, Int32 &Index ) : UInt32
Ffb_h_EffNew ( IntPtr Packet, FFBEType &Effect ) : UInt32
Ffb_h_EffOp ( IntPtr Packet, FFB_EFF_OP &Operation ) : UInt32
Ffb_h_Eff_Cond ( IntPtr Packet, FFB_EFF_COND &Condition ) : UInt32
Ffb_h_Eff_Constant ( IntPtr Packet, FFB_EFF_CONSTANT &ConstantEffect ) : UInt32
Ffb_h_Eff_Envlp ( IntPtr Packet, FFB_EFF_ENVLP &Envelope ) : UInt32
Ffb_h_Eff_Period ( IntPtr Packet, FFB_EFF_PERIOD &Effect ) : UInt32
Ffb_h_Eff_Ramp ( IntPtr Packet, FFB_EFF_RAMP &RampEffect ) : UInt32
Ffb_h_Eff_Report ( IntPtr Packet, FFB_EFF_REPORT &Effect ) : UInt32
Ffb_h_Packet ( IntPtr Packet, UInt32 &Type, Int32 &DataSize, Byte &Data ) : UInt32
Ffb_h_Type ( IntPtr Packet, FFBPType &Type ) : UInt32
GetOwnerPid ( UInt32 rID ) : int
GetVJDAxisExist ( UInt32 rID, HID_USAGES Axis ) : bool
GetVJDAxisMax ( UInt32 rID, HID_USAGES Axis, long &Max ) : bool
GetVJDAxisMin ( UInt32 rID, HID_USAGES Axis, long &Min ) : bool
GetVJDButtonNumber ( uint rID ) : int
GetVJDContPovNumber ( uint rID ) : int
GetVJDDiscPovNumber ( uint rID ) : int
GetVJDStatus ( UInt32 rID ) : VjdStat
GetvJoyManufacturerString ( ) : string
GetvJoyProductString ( ) : string
GetvJoySerialNumberString ( ) : string
GetvJoyVersion ( ) : short
IsDeviceFfb ( UInt32 rID ) : bool
IsDeviceFfbEffect ( UInt32 rID, UInt32 Effect ) : bool
RegisterRemovalCB ( RemovalCbFunc cb, object data ) : void
RegisterRemovalCB ( WrapRemovalCbFunc cb, IntPtr data ) : void
RelinquishVJD ( uint rID ) : void
ResetAll ( ) : bool
ResetButtons ( UInt32 rID ) : bool
ResetPovs ( UInt32 rID ) : bool
ResetVJD ( UInt32 rID ) : bool
SetAxis ( Int32 Value, UInt32 rID, HID_USAGES Axis ) : bool
SetBtn ( bool Value, UInt32 rID, uint nBtn ) : bool
SetContPov ( Int32 Value, UInt32 rID, uint nPov ) : bool
SetDiscPov ( Int32 Value, UInt32 rID, uint nPov ) : bool
UpdateVJD ( UInt32 rID, JoystickState &pData ) : bool
WrapperFfbCB ( IntPtr data, IntPtr userData ) : void
WrapperRemCB ( bool complete, bool First, IntPtr userData ) : void
isVJDExists ( UInt32 rID ) : bool
vJoyEnabled ( ) : bool

Private Methods

Method Description
FfbStart ( UInt32 rID ) : bool
FfbStop ( UInt32 rID ) : bool
Ffb_h_Eff_Const ( IntPtr Packet, FFB_EFF_CONST &Effect ) : UInt32
_AcquireVJD ( UInt32 rID ) : bool
_DriverMatch ( UInt32 &DllVer, UInt32 &DrvVer ) : bool
_FfbRegisterGenCB ( WrapFfbCbFunc cb, IntPtr data ) : void
_FfbStart ( UInt32 rID ) : bool
_FfbStop ( UInt32 rID ) : bool
_Ffb_h_DevCtrl ( IntPtr Packet, FFB_CTRL &Control ) : UInt32
_Ffb_h_DevGain ( IntPtr Packet, Byte &Gain ) : UInt32
_Ffb_h_DeviceID ( IntPtr Packet, int &DeviceID ) : UInt32
_Ffb_h_EBI ( IntPtr Packet, Int32 &Index ) : UInt32
_Ffb_h_EffNew ( IntPtr Packet, FFBEType &Effect ) : UInt32
_Ffb_h_EffOp ( IntPtr Packet, FFB_EFF_OP &Operation ) : UInt32
_Ffb_h_Eff_Cond ( IntPtr Packet, FFB_EFF_COND &Condition ) : UInt32
_Ffb_h_Eff_Const ( IntPtr Packet, FFB_EFF_CONST &Effect ) : UInt32
_Ffb_h_Eff_Constant ( IntPtr Packet, FFB_EFF_CONSTANT &ConstantEffect ) : UInt32
_Ffb_h_Eff_Envlp ( IntPtr Packet, FFB_EFF_ENVLP &Envelope ) : UInt32
_Ffb_h_Eff_Period ( IntPtr Packet, FFB_EFF_PERIOD &Effect ) : UInt32
_Ffb_h_Eff_Ramp ( IntPtr Packet, FFB_EFF_RAMP &RampEffect ) : UInt32
_Ffb_h_Eff_Report ( IntPtr Packet, FFB_EFF_REPORT &Effect ) : UInt32
_Ffb_h_Packet ( IntPtr Packet, UInt32 &Type, Int32 &DataSize, IntPtr &Data ) : UInt32
_Ffb_h_Type ( IntPtr Packet, FFBPType &Type ) : UInt32
_GetOwnerPid ( UInt32 rID ) : int
_GetVJDAxisExist ( UInt32 rID, UInt32 Axis ) : UInt32
_GetVJDAxisMax ( UInt32 rID, UInt32 Axis, long &Max ) : bool
_GetVJDAxisMin ( UInt32 rID, UInt32 Axis, long &Min ) : bool
_GetVJDButtonNumber ( UInt32 rID ) : int
_GetVJDContPovNumber ( UInt32 rID ) : int
_GetVJDDiscPovNumber ( UInt32 rID ) : int
_GetVJDStatus ( UInt32 rID ) : int
_GetvJoyManufacturerString ( ) : IntPtr
_GetvJoyProductString ( ) : IntPtr
_GetvJoySerialNumberString ( ) : IntPtr
_GetvJoyVersion ( ) : short
_IsDeviceFfb ( UInt32 rID ) : bool
_IsDeviceFfbEffect ( UInt32 rID, UInt32 Effect ) : bool
_RegisterRemovalCB ( WrapRemovalCbFunc cb, IntPtr data ) : void
_RelinquishVJD ( UInt32 rID ) : void
_ResetAll ( ) : bool
_ResetButtons ( UInt32 rID ) : bool
_ResetPovs ( UInt32 rID ) : bool
_ResetVJD ( UInt32 rID ) : bool
_SetAxis ( Int32 Value, UInt32 rID, HID_USAGES Axis ) : bool
_SetBtn ( bool Value, UInt32 rID, Byte nBtn ) : bool
_SetContPov ( Int32 Value, UInt32 rID, uint nPov ) : bool
_SetDiscPov ( Int32 Value, UInt32 rID, uint nPov ) : bool
_UpdateVJD ( UInt32 rID, JoystickState &pData ) : bool
_isVJDExists ( UInt32 rID ) : bool
_vJoyEnabled ( ) : bool

Method Details

AcquireVJD() public method

public AcquireVJD ( UInt32 rID ) : bool
rID System.UInt32
return bool

DriverMatch() public method

public DriverMatch ( UInt32 &DllVer, UInt32 &DrvVer ) : bool
DllVer System.UInt32
DrvVer System.UInt32
return bool

FfbRegisterGenCB() public method

public FfbRegisterGenCB ( FfbCbFunc cb, object data ) : void
cb FfbCbFunc
data object
return void

FfbRegisterGenCB() public method

public FfbRegisterGenCB ( WrapFfbCbFunc cb, IntPtr data ) : void
cb WrapFfbCbFunc
data System.IntPtr
return void

Ffb_h_DevCtrl() public method

public Ffb_h_DevCtrl ( IntPtr Packet, FFB_CTRL &Control ) : UInt32
Packet System.IntPtr
Control FFB_CTRL
return System.UInt32

Ffb_h_DevGain() public method

public Ffb_h_DevGain ( IntPtr Packet, Byte &Gain ) : UInt32
Packet System.IntPtr
Gain Byte
return System.UInt32

Ffb_h_DeviceID() public method

public Ffb_h_DeviceID ( IntPtr Packet, int &DeviceID ) : UInt32
Packet System.IntPtr
DeviceID int
return System.UInt32

Ffb_h_EBI() public method

public Ffb_h_EBI ( IntPtr Packet, Int32 &Index ) : UInt32
Packet System.IntPtr
Index System.Int32
return System.UInt32

Ffb_h_EffNew() public method

public Ffb_h_EffNew ( IntPtr Packet, FFBEType &Effect ) : UInt32
Packet System.IntPtr
Effect FFBEType
return System.UInt32

Ffb_h_EffOp() public method

public Ffb_h_EffOp ( IntPtr Packet, FFB_EFF_OP &Operation ) : UInt32
Packet System.IntPtr
Operation FFB_EFF_OP
return System.UInt32

Ffb_h_Eff_Cond() public method

public Ffb_h_Eff_Cond ( IntPtr Packet, FFB_EFF_COND &Condition ) : UInt32
Packet System.IntPtr
Condition FFB_EFF_COND
return System.UInt32

Ffb_h_Eff_Constant() public method

public Ffb_h_Eff_Constant ( IntPtr Packet, FFB_EFF_CONSTANT &ConstantEffect ) : UInt32
Packet System.IntPtr
ConstantEffect FFB_EFF_CONSTANT
return System.UInt32

Ffb_h_Eff_Envlp() public method

public Ffb_h_Eff_Envlp ( IntPtr Packet, FFB_EFF_ENVLP &Envelope ) : UInt32
Packet System.IntPtr
Envelope FFB_EFF_ENVLP
return System.UInt32

Ffb_h_Eff_Period() public method

public Ffb_h_Eff_Period ( IntPtr Packet, FFB_EFF_PERIOD &Effect ) : UInt32
Packet System.IntPtr
Effect FFB_EFF_PERIOD
return System.UInt32

Ffb_h_Eff_Ramp() public method

public Ffb_h_Eff_Ramp ( IntPtr Packet, FFB_EFF_RAMP &RampEffect ) : UInt32
Packet System.IntPtr
RampEffect FFB_EFF_RAMP
return System.UInt32

Ffb_h_Eff_Report() public method

public Ffb_h_Eff_Report ( IntPtr Packet, FFB_EFF_REPORT &Effect ) : UInt32
Packet System.IntPtr
Effect FFB_EFF_REPORT
return System.UInt32

Ffb_h_Packet() public method

public Ffb_h_Packet ( IntPtr Packet, UInt32 &Type, Int32 &DataSize, Byte &Data ) : UInt32
Packet IntPtr
Type UInt32
DataSize Int32
Data Byte
return UInt32

Ffb_h_Type() public method

public Ffb_h_Type ( IntPtr Packet, FFBPType &Type ) : UInt32
Packet IntPtr
Type FFBPType
return UInt32

GetOwnerPid() public method

public GetOwnerPid ( UInt32 rID ) : int
rID UInt32
return int

GetVJDAxisExist() public method

public GetVJDAxisExist ( UInt32 rID, HID_USAGES Axis ) : bool
rID UInt32
Axis HID_USAGES
return bool

GetVJDAxisMax() public method

public GetVJDAxisMax ( UInt32 rID, HID_USAGES Axis, long &Max ) : bool
rID UInt32
Axis HID_USAGES
Max long
return bool

GetVJDAxisMin() public method

public GetVJDAxisMin ( UInt32 rID, HID_USAGES Axis, long &Min ) : bool
rID UInt32
Axis HID_USAGES
Min long
return bool

GetVJDButtonNumber() public method

public GetVJDButtonNumber ( uint rID ) : int
rID uint
return int

GetVJDContPovNumber() public method

public GetVJDContPovNumber ( uint rID ) : int
rID uint
return int

GetVJDDiscPovNumber() public method

public GetVJDDiscPovNumber ( uint rID ) : int
rID uint
return int

GetVJDStatus() public method

public GetVJDStatus ( UInt32 rID ) : VjdStat
rID UInt32
return VjdStat

GetvJoyManufacturerString() public method

public GetvJoyManufacturerString ( ) : string
return string

GetvJoyProductString() public method

public GetvJoyProductString ( ) : string
return string

GetvJoySerialNumberString() public method

public GetvJoySerialNumberString ( ) : string
return string

GetvJoyVersion() public method

public GetvJoyVersion ( ) : short
return short

IsDeviceFfb() public method

public IsDeviceFfb ( UInt32 rID ) : bool
rID UInt32
return bool

IsDeviceFfbEffect() public method

public IsDeviceFfbEffect ( UInt32 rID, UInt32 Effect ) : bool
rID UInt32
Effect UInt32
return bool

RegisterRemovalCB() public method

public RegisterRemovalCB ( RemovalCbFunc cb, object data ) : void
cb RemovalCbFunc
data object
return void

RegisterRemovalCB() public method

public RegisterRemovalCB ( WrapRemovalCbFunc cb, IntPtr data ) : void
cb WrapRemovalCbFunc
data IntPtr
return void

RelinquishVJD() public method

public RelinquishVJD ( uint rID ) : void
rID uint
return void

ResetAll() public method

public ResetAll ( ) : bool
return bool

ResetButtons() public method

public ResetButtons ( UInt32 rID ) : bool
rID UInt32
return bool

ResetPovs() public method

public ResetPovs ( UInt32 rID ) : bool
rID UInt32
return bool

ResetVJD() public method

public ResetVJD ( UInt32 rID ) : bool
rID UInt32
return bool

SetAxis() public method

public SetAxis ( Int32 Value, UInt32 rID, HID_USAGES Axis ) : bool
Value Int32
rID UInt32
Axis HID_USAGES
return bool

SetBtn() public method

public SetBtn ( bool Value, UInt32 rID, uint nBtn ) : bool
Value bool
rID UInt32
nBtn uint
return bool

SetContPov() public method

public SetContPov ( Int32 Value, UInt32 rID, uint nPov ) : bool
Value Int32
rID UInt32
nPov uint
return bool

SetDiscPov() public method

public SetDiscPov ( Int32 Value, UInt32 rID, uint nPov ) : bool
Value Int32
rID UInt32
nPov uint
return bool

UpdateVJD() public method

public UpdateVJD ( UInt32 rID, JoystickState &pData ) : bool
rID UInt32
pData JoystickState
return bool

WrapperFfbCB() public static method

public static WrapperFfbCB ( IntPtr data, IntPtr userData ) : void
data IntPtr
userData IntPtr
return void

WrapperRemCB() public static method

public static WrapperRemCB ( bool complete, bool First, IntPtr userData ) : void
complete bool
First bool
userData IntPtr
return void

isVJDExists() public method

public isVJDExists ( UInt32 rID ) : bool
rID UInt32
return bool

vJoyEnabled() public method

public vJoyEnabled ( ) : bool
return bool