pub struct vJoyInterface {Show 36 fields
pub GetvJoyVersion: Result<unsafe extern "C" fn() -> SHORT, Error>,
pub vJoyEnabled: Result<unsafe extern "C" fn() -> BOOL, Error>,
pub GetvJoyProductString: Result<unsafe extern "C" fn() -> PVOID, Error>,
pub GetvJoyManufacturerString: Result<unsafe extern "C" fn() -> PVOID, Error>,
pub GetvJoySerialNumberString: Result<unsafe extern "C" fn() -> PVOID, Error>,
pub DriverMatch: Result<unsafe extern "C" fn(DllVer: *mut WORD, DrvVer: *mut WORD) -> BOOL, Error>,
pub RegisterRemovalCB: Result<unsafe extern "C" fn(cb: RemovalCB, data: PVOID), Error>,
pub vJoyFfbCap: Result<unsafe extern "C" fn(Supported: *mut BOOL) -> BOOL, Error>,
pub GetvJoyMaxDevices: Result<unsafe extern "C" fn(n: *mut c_int) -> BOOL, Error>,
pub GetNumberExistingVJD: Result<unsafe extern "C" fn(n: *mut c_int) -> BOOL, Error>,
pub GetVJDButtonNumber: Result<unsafe extern "C" fn(rID: UINT) -> c_int, Error>,
pub GetVJDDiscPovNumber: Result<unsafe extern "C" fn(rID: UINT) -> c_int, Error>,
pub GetVJDContPovNumber: Result<unsafe extern "C" fn(rID: UINT) -> c_int, Error>,
pub GetVJDAxisExist: Result<unsafe extern "C" fn(rID: UINT, Axis: UINT) -> BOOL, Error>,
pub GetVJDAxisMax: Result<unsafe extern "C" fn(rID: UINT, Axis: UINT, Max: *mut LONG) -> BOOL, Error>,
pub GetVJDAxisMin: Result<unsafe extern "C" fn(rID: UINT, Axis: UINT, Min: *mut LONG) -> BOOL, Error>,
pub GetVJDStatus: Result<unsafe extern "C" fn(rID: UINT) -> VjdStat, Error>,
pub isVJDExists: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>,
pub GetOwnerPid: Result<unsafe extern "C" fn(rID: UINT) -> c_int, Error>,
pub AcquireVJD: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>,
pub RelinquishVJD: Result<unsafe extern "C" fn(rID: UINT), Error>,
pub UpdateVJD: Result<unsafe extern "C" fn(rID: UINT, pData: *mut JOYSTICK_POSITION_V2) -> BOOL, Error>,
pub ResetVJD: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>,
pub ResetAll: Result<unsafe extern "C" fn(), Error>,
pub ResetButtons: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>,
pub ResetPovs: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>,
pub SetAxis: Result<unsafe extern "C" fn(Value: LONG, rID: UINT, Axis: UINT) -> BOOL, Error>,
pub SetBtn: Result<unsafe extern "C" fn(Value: BOOL, rID: UINT, nBtn: UCHAR) -> BOOL, Error>,
pub SetDiscPov: Result<unsafe extern "C" fn(Value: c_int, rID: UINT, nPov: UCHAR) -> BOOL, Error>,
pub SetContPov: Result<unsafe extern "C" fn(Value: DWORD, rID: UINT, nPov: UCHAR) -> BOOL, Error>,
pub FfbGetEffect: Result<unsafe extern "C" fn() -> FFBEType, Error>,
pub FfbRegisterGenCB: Result<unsafe extern "C" fn(cb: FfbGenCB, data: PVOID), Error>,
pub FfbStart: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>,
pub FfbStop: Result<unsafe extern "C" fn(rID: UINT), Error>,
pub IsDeviceFfb: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>,
pub IsDeviceFfbEffect: Result<unsafe extern "C" fn(rID: UINT, Effect: UINT) -> BOOL, Error>,
/* private fields */
}Fields§
§GetvJoyVersion: Result<unsafe extern "C" fn() -> SHORT, Error>§vJoyEnabled: Result<unsafe extern "C" fn() -> BOOL, Error>§GetvJoyProductString: Result<unsafe extern "C" fn() -> PVOID, Error>§GetvJoyManufacturerString: Result<unsafe extern "C" fn() -> PVOID, Error>§GetvJoySerialNumberString: Result<unsafe extern "C" fn() -> PVOID, Error>§DriverMatch: Result<unsafe extern "C" fn(DllVer: *mut WORD, DrvVer: *mut WORD) -> BOOL, Error>§RegisterRemovalCB: Result<unsafe extern "C" fn(cb: RemovalCB, data: PVOID), Error>§vJoyFfbCap: Result<unsafe extern "C" fn(Supported: *mut BOOL) -> BOOL, Error>§GetvJoyMaxDevices: Result<unsafe extern "C" fn(n: *mut c_int) -> BOOL, Error>§GetNumberExistingVJD: Result<unsafe extern "C" fn(n: *mut c_int) -> BOOL, Error>§GetVJDButtonNumber: Result<unsafe extern "C" fn(rID: UINT) -> c_int, Error>§GetVJDDiscPovNumber: Result<unsafe extern "C" fn(rID: UINT) -> c_int, Error>§GetVJDContPovNumber: Result<unsafe extern "C" fn(rID: UINT) -> c_int, Error>§GetVJDAxisExist: Result<unsafe extern "C" fn(rID: UINT, Axis: UINT) -> BOOL, Error>§GetVJDAxisMax: Result<unsafe extern "C" fn(rID: UINT, Axis: UINT, Max: *mut LONG) -> BOOL, Error>§GetVJDAxisMin: Result<unsafe extern "C" fn(rID: UINT, Axis: UINT, Min: *mut LONG) -> BOOL, Error>§GetVJDStatus: Result<unsafe extern "C" fn(rID: UINT) -> VjdStat, Error>§isVJDExists: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>§GetOwnerPid: Result<unsafe extern "C" fn(rID: UINT) -> c_int, Error>§AcquireVJD: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>§RelinquishVJD: Result<unsafe extern "C" fn(rID: UINT), Error>§UpdateVJD: Result<unsafe extern "C" fn(rID: UINT, pData: *mut JOYSTICK_POSITION_V2) -> BOOL, Error>§ResetVJD: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>§ResetAll: Result<unsafe extern "C" fn(), Error>§ResetButtons: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>§ResetPovs: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>§SetAxis: Result<unsafe extern "C" fn(Value: LONG, rID: UINT, Axis: UINT) -> BOOL, Error>§SetBtn: Result<unsafe extern "C" fn(Value: BOOL, rID: UINT, nBtn: UCHAR) -> BOOL, Error>§SetDiscPov: Result<unsafe extern "C" fn(Value: c_int, rID: UINT, nPov: UCHAR) -> BOOL, Error>§SetContPov: Result<unsafe extern "C" fn(Value: DWORD, rID: UINT, nPov: UCHAR) -> BOOL, Error>§FfbGetEffect: Result<unsafe extern "C" fn() -> FFBEType, Error>§FfbRegisterGenCB: Result<unsafe extern "C" fn(cb: FfbGenCB, data: PVOID), Error>§FfbStart: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>§FfbStop: Result<unsafe extern "C" fn(rID: UINT), Error>§IsDeviceFfb: Result<unsafe extern "C" fn(rID: UINT) -> BOOL, Error>§IsDeviceFfbEffect: Result<unsafe extern "C" fn(rID: UINT, Effect: UINT) -> BOOL, Error>Implementations§
Source§impl vJoyInterface
impl vJoyInterface
pub unsafe fn new<P>(path: P) -> Result<Self, Error>
pub unsafe fn from_library<L>(library: L) -> Result<Self, Error>
pub unsafe fn GetvJoyVersion(&self) -> SHORT
pub unsafe fn vJoyEnabled(&self) -> BOOL
pub unsafe fn GetvJoyProductString(&self) -> PVOID
pub unsafe fn GetvJoyManufacturerString(&self) -> PVOID
pub unsafe fn GetvJoySerialNumberString(&self) -> PVOID
pub unsafe fn DriverMatch(&self, DllVer: *mut WORD, DrvVer: *mut WORD) -> BOOL
pub unsafe fn RegisterRemovalCB(&self, cb: RemovalCB, data: PVOID)
pub unsafe fn vJoyFfbCap(&self, Supported: *mut BOOL) -> BOOL
pub unsafe fn GetvJoyMaxDevices(&self, n: *mut c_int) -> BOOL
pub unsafe fn GetNumberExistingVJD(&self, n: *mut c_int) -> BOOL
pub unsafe fn GetVJDButtonNumber(&self, rID: UINT) -> c_int
pub unsafe fn GetVJDDiscPovNumber(&self, rID: UINT) -> c_int
pub unsafe fn GetVJDContPovNumber(&self, rID: UINT) -> c_int
pub unsafe fn GetVJDAxisExist(&self, rID: UINT, Axis: UINT) -> BOOL
pub unsafe fn GetVJDAxisMax( &self, rID: UINT, Axis: UINT, Max: *mut LONG, ) -> BOOL
pub unsafe fn GetVJDAxisMin( &self, rID: UINT, Axis: UINT, Min: *mut LONG, ) -> BOOL
pub unsafe fn GetVJDStatus(&self, rID: UINT) -> VjdStat
pub unsafe fn isVJDExists(&self, rID: UINT) -> BOOL
pub unsafe fn GetOwnerPid(&self, rID: UINT) -> c_int
pub unsafe fn AcquireVJD(&self, rID: UINT) -> BOOL
pub unsafe fn RelinquishVJD(&self, rID: UINT)
pub unsafe fn UpdateVJD( &self, rID: UINT, pData: *mut JOYSTICK_POSITION_V2, ) -> BOOL
pub unsafe fn ResetVJD(&self, rID: UINT) -> BOOL
pub unsafe fn ResetAll(&self)
pub unsafe fn ResetButtons(&self, rID: UINT) -> BOOL
pub unsafe fn ResetPovs(&self, rID: UINT) -> BOOL
pub unsafe fn SetAxis(&self, Value: LONG, rID: UINT, Axis: UINT) -> BOOL
pub unsafe fn SetBtn(&self, Value: BOOL, rID: UINT, nBtn: UCHAR) -> BOOL
pub unsafe fn SetDiscPov(&self, Value: c_int, rID: UINT, nPov: UCHAR) -> BOOL
pub unsafe fn SetContPov(&self, Value: DWORD, rID: UINT, nPov: UCHAR) -> BOOL
pub unsafe fn FfbGetEffect(&self) -> FFBEType
pub unsafe fn FfbRegisterGenCB(&self, cb: FfbGenCB, data: PVOID)
pub unsafe fn FfbStart(&self, rID: UINT) -> BOOL
pub unsafe fn FfbStop(&self, rID: UINT)
pub unsafe fn IsDeviceFfb(&self, rID: UINT) -> BOOL
pub unsafe fn IsDeviceFfbEffect(&self, rID: UINT, Effect: UINT) -> BOOL
Auto Trait Implementations§
impl Freeze for vJoyInterface
impl !RefUnwindSafe for vJoyInterface
impl Send for vJoyInterface
impl Sync for vJoyInterface
impl Unpin for vJoyInterface
impl !UnwindSafe for vJoyInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more