ForceFeedback Changes for Swift
ForceFeedback
Added FFCUSTOMFORCE.init(cChannels: DWORD, dwSamplePeriod: DWORD, cSamples: DWORD, rglForceData: LPLONG!)
Added FF_DOWNLOADSKIPPED
Added FF_EFFECTRESTARTED
Added FF_FALSE
Added FF_OK
Added FF_TRUNCATED
Added FF_TRUNCATEDANDRESTARTED
Added FFERR_GENERIC
Added FFERR_INVALIDPARAM
Added FFERR_NOINTERFACE
Added FFERR_OUTOFMEMORY
Added FFERR_UNSUPPORTED
Modified FFCUSTOMFORCE [struct]
Declaration | |
---|---|
From | struct FFCUSTOMFORCE { var cChannels: DWORD var dwSamplePeriod: DWORD var cSamples: DWORD var rglForceData: LPLONG init() init(cChannels cChannels: DWORD, dwSamplePeriod dwSamplePeriod: DWORD, cSamples cSamples: DWORD, rglForceData rglForceData: LPLONG) } |
To | struct FFCUSTOMFORCE { var cChannels: DWORD var dwSamplePeriod: DWORD var cSamples: DWORD var rglForceData: LPLONG! init() init(cChannels cChannels: DWORD, dwSamplePeriod dwSamplePeriod: DWORD, cSamples cSamples: DWORD, rglForceData rglForceData: LPLONG!) } |
Modified FFCUSTOMFORCE.rglForceData
Declaration | |
---|---|
From | var rglForceData: LPLONG |
To | var rglForceData: LPLONG! |
Modified FFEFFECT [struct]
Declaration | |
---|---|
From | struct FFEFFECT { var dwSize: DWORD var dwFlags: DWORD var dwDuration: DWORD var dwSamplePeriod: DWORD var dwGain: DWORD var dwTriggerButton: DWORD var dwTriggerRepeatInterval: DWORD var cAxes: DWORD var rgdwAxes: LPDWORD var rglDirection: LPLONG var lpEnvelope: PFFENVELOPE var cbTypeSpecificParams: DWORD var lpvTypeSpecificParams: UnsafeMutablePointer<Void> var dwStartDelay: DWORD init() init(dwSize dwSize: DWORD, dwFlags dwFlags: DWORD, dwDuration dwDuration: DWORD, dwSamplePeriod dwSamplePeriod: DWORD, dwGain dwGain: DWORD, dwTriggerButton dwTriggerButton: DWORD, dwTriggerRepeatInterval dwTriggerRepeatInterval: DWORD, cAxes cAxes: DWORD, rgdwAxes rgdwAxes: LPDWORD, rglDirection rglDirection: LPLONG, lpEnvelope lpEnvelope: PFFENVELOPE, cbTypeSpecificParams cbTypeSpecificParams: DWORD, lpvTypeSpecificParams lpvTypeSpecificParams: UnsafeMutablePointer<Void>, dwStartDelay dwStartDelay: DWORD) } |
To | struct FFEFFECT { var dwSize: DWORD var dwFlags: DWORD var dwDuration: DWORD var dwSamplePeriod: DWORD var dwGain: DWORD var dwTriggerButton: DWORD var dwTriggerRepeatInterval: DWORD var cAxes: DWORD var rgdwAxes: LPDWORD! var rglDirection: LPLONG! var lpEnvelope: PFFENVELOPE! var cbTypeSpecificParams: DWORD var lpvTypeSpecificParams: UnsafeMutableRawPointer! var dwStartDelay: DWORD init() init(dwSize dwSize: DWORD, dwFlags dwFlags: DWORD, dwDuration dwDuration: DWORD, dwSamplePeriod dwSamplePeriod: DWORD, dwGain dwGain: DWORD, dwTriggerButton dwTriggerButton: DWORD, dwTriggerRepeatInterval dwTriggerRepeatInterval: DWORD, cAxes cAxes: DWORD, rgdwAxes rgdwAxes: LPDWORD!, rglDirection rglDirection: LPLONG!, lpEnvelope lpEnvelope: PFFENVELOPE!, cbTypeSpecificParams cbTypeSpecificParams: DWORD, lpvTypeSpecificParams lpvTypeSpecificParams: UnsafeMutableRawPointer!, dwStartDelay dwStartDelay: DWORD) } |
Modified FFEFFECT.lpEnvelope
Declaration | |
---|---|
From | var lpEnvelope: PFFENVELOPE |
To | var lpEnvelope: PFFENVELOPE! |
Modified FFEFFECT.lpvTypeSpecificParams
Declaration | |
---|---|
From | var lpvTypeSpecificParams: UnsafeMutablePointer<Void> |
To | var lpvTypeSpecificParams: UnsafeMutableRawPointer! |
Modified FFEFFECT.rgdwAxes
Declaration | |
---|---|
From | var rgdwAxes: LPDWORD |
To | var rgdwAxes: LPDWORD! |
Modified FFEFFECT.rglDirection
Declaration | |
---|---|
From | var rglDirection: LPLONG |
To | var rglDirection: LPLONG! |
Modified FFEFFESCAPE [struct]
Declaration | |
---|---|
From | struct FFEFFESCAPE { var dwSize: DWORD var dwCommand: DWORD var lpvInBuffer: UnsafeMutablePointer<Void> var cbInBuffer: DWORD var lpvOutBuffer: UnsafeMutablePointer<Void> var cbOutBuffer: DWORD init() init(dwSize dwSize: DWORD, dwCommand dwCommand: DWORD, lpvInBuffer lpvInBuffer: UnsafeMutablePointer<Void>, cbInBuffer cbInBuffer: DWORD, lpvOutBuffer lpvOutBuffer: UnsafeMutablePointer<Void>, cbOutBuffer cbOutBuffer: DWORD) } |
To | struct FFEFFESCAPE { var dwSize: DWORD var dwCommand: DWORD var lpvInBuffer: UnsafeMutableRawPointer! var cbInBuffer: DWORD var lpvOutBuffer: UnsafeMutableRawPointer! var cbOutBuffer: DWORD init() init(dwSize dwSize: DWORD, dwCommand dwCommand: DWORD, lpvInBuffer lpvInBuffer: UnsafeMutableRawPointer!, cbInBuffer cbInBuffer: DWORD, lpvOutBuffer lpvOutBuffer: UnsafeMutableRawPointer!, cbOutBuffer cbOutBuffer: DWORD) } |
Modified FFEFFESCAPE.lpvInBuffer
Declaration | |
---|---|
From | var lpvInBuffer: UnsafeMutablePointer<Void> |
To | var lpvInBuffer: UnsafeMutableRawPointer! |
Modified FFEFFESCAPE.lpvOutBuffer
Declaration | |
---|---|
From | var lpvOutBuffer: UnsafeMutablePointer<Void> |
To | var lpvOutBuffer: UnsafeMutableRawPointer! |
Modified FFCreateDevice(_: io_service_t, _: UnsafeMutablePointer<FFDeviceObjectReference?>!) -> HRESULT
Declaration | |
---|---|
From | func FFCreateDevice(_ hidDevice: io_service_t, _ pDeviceReference: UnsafeMutablePointer<FFDeviceObjectReference>) -> HRESULT |
To | func FFCreateDevice(_ hidDevice: io_service_t, _ pDeviceReference: UnsafeMutablePointer<FFDeviceObjectReference?>!) -> HRESULT |
Declaration | |
---|---|
From | func FFDeviceCreateEffect(_ deviceReference: FFDeviceObjectReference, _ uuidRef: CFUUID!, _ pEffectDefinition: UnsafeMutablePointer<FFEFFECT>, _ pEffectReference: UnsafeMutablePointer<FFEffectObjectReference>) -> HRESULT |
To | func FFDeviceCreateEffect(_ deviceReference: FFDeviceObjectReference!, _ uuidRef: CFUUID!, _ pEffectDefinition: UnsafeMutablePointer<FFEFFECT>!, _ pEffectReference: UnsafeMutablePointer<FFEffectObjectReference?>!) -> HRESULT |
Modified FFDeviceEscape(_: FFDeviceObjectReference!, _: UnsafeMutablePointer<FFEFFESCAPE>!) -> HRESULT
Declaration | |
---|---|
From | func FFDeviceEscape(_ deviceReference: FFDeviceObjectReference, _ pFFEffectEscape: UnsafeMutablePointer<FFEFFESCAPE>) -> HRESULT |
To | func FFDeviceEscape(_ deviceReference: FFDeviceObjectReference!, _ pFFEffectEscape: UnsafeMutablePointer<FFEFFESCAPE>!) -> HRESULT |
Declaration | |
---|---|
From | func FFDeviceGetForceFeedbackCapabilities(_ deviceReference: FFDeviceObjectReference, _ pFFCapabilities: UnsafeMutablePointer<FFCAPABILITIES>) -> HRESULT |
To | func FFDeviceGetForceFeedbackCapabilities(_ deviceReference: FFDeviceObjectReference!, _ pFFCapabilities: UnsafeMutablePointer<FFCAPABILITIES>!) -> HRESULT |
Declaration | |
---|---|
From | func FFDeviceGetForceFeedbackProperty(_ deviceReference: FFDeviceObjectReference, _ property: FFProperty, _ pValue: UnsafeMutablePointer<Void>, _ valueSize: IOByteCount) -> HRESULT |
To | func FFDeviceGetForceFeedbackProperty(_ deviceReference: FFDeviceObjectReference!, _ property: FFProperty, _ pValue: UnsafeMutableRawPointer!, _ valueSize: IOByteCount) -> HRESULT |
Declaration | |
---|---|
From | func FFDeviceGetForceFeedbackState(_ deviceReference: FFDeviceObjectReference, _ pFFState: UnsafeMutablePointer<FFState>) -> HRESULT |
To | func FFDeviceGetForceFeedbackState(_ deviceReference: FFDeviceObjectReference!, _ pFFState: UnsafeMutablePointer<FFState>!) -> HRESULT |
Declaration | |
---|---|
From | func FFDeviceReleaseEffect(_ deviceReference: FFDeviceObjectReference, _ effectReference: FFEffectObjectReference) -> HRESULT |
To | func FFDeviceReleaseEffect(_ deviceReference: FFDeviceObjectReference!, _ effectReference: FFEffectObjectReference!) -> HRESULT |
Declaration | |
---|---|
From | func FFDeviceSendForceFeedbackCommand(_ deviceReference: FFDeviceObjectReference, _ flags: FFCommandFlag) -> HRESULT |
To | func FFDeviceSendForceFeedbackCommand(_ deviceReference: FFDeviceObjectReference!, _ flags: FFCommandFlag) -> HRESULT |
Declaration | |
---|---|
From | func FFDeviceSetCooperativeLevel(_ deviceReference: FFDeviceObjectReference, _ taskIdentifier: UnsafeMutablePointer<Void>, _ flags: FFCooperativeLevelFlag) -> HRESULT |
To | func FFDeviceSetCooperativeLevel(_ deviceReference: FFDeviceObjectReference!, _ taskIdentifier: UnsafeMutableRawPointer!, _ flags: FFCooperativeLevelFlag) -> HRESULT |
Declaration | |
---|---|
From | func FFDeviceSetForceFeedbackProperty(_ deviceReference: FFDeviceObjectReference, _ property: FFProperty, _ pValue: UnsafeMutablePointer<Void>) -> HRESULT |
To | func FFDeviceSetForceFeedbackProperty(_ deviceReference: FFDeviceObjectReference!, _ property: FFProperty, _ pValue: UnsafeMutableRawPointer!) -> HRESULT |
Declaration | |
---|---|
From | func FFEffectDownload(_ effectReference: FFEffectObjectReference) -> HRESULT |
To | func FFEffectDownload(_ effectReference: FFEffectObjectReference!) -> HRESULT |
Modified FFEffectEscape(_: FFEffectObjectReference!, _: UnsafeMutablePointer<FFEFFESCAPE>!) -> HRESULT
Declaration | |
---|---|
From | func FFEffectEscape(_ effectReference: FFEffectObjectReference, _ pFFEffectEscape: UnsafeMutablePointer<FFEFFESCAPE>) -> HRESULT |
To | func FFEffectEscape(_ effectReference: FFEffectObjectReference!, _ pFFEffectEscape: UnsafeMutablePointer<FFEFFESCAPE>!) -> HRESULT |
Declaration | |
---|---|
From | func FFEffectGetEffectStatus(_ effectReference: FFEffectObjectReference, _ pFlags: UnsafeMutablePointer<FFEffectStatusFlag>) -> HRESULT |
To | func FFEffectGetEffectStatus(_ effectReference: FFEffectObjectReference!, _ pFlags: UnsafeMutablePointer<FFEffectStatusFlag>!) -> HRESULT |
Declaration | |
---|---|
From | func FFEffectGetParameters(_ effectReference: FFEffectObjectReference, _ pFFEffect: UnsafeMutablePointer<FFEFFECT>, _ flags: FFEffectParameterFlag) -> HRESULT |
To | func FFEffectGetParameters(_ effectReference: FFEffectObjectReference!, _ pFFEffect: UnsafeMutablePointer<FFEFFECT>!, _ flags: FFEffectParameterFlag) -> HRESULT |
Declaration | |
---|---|
From | func FFEffectSetParameters(_ effectReference: FFEffectObjectReference, _ pFFEffect: UnsafeMutablePointer<FFEFFECT>, _ flags: FFEffectParameterFlag) -> HRESULT |
To | func FFEffectSetParameters(_ effectReference: FFEffectObjectReference!, _ pFFEffect: UnsafeMutablePointer<FFEFFECT>!, _ flags: FFEffectParameterFlag) -> HRESULT |
Declaration | |
---|---|
From | func FFEffectStart(_ effectReference: FFEffectObjectReference, _ iterations: UInt32, _ flags: FFEffectStartFlag) -> HRESULT |
To | func FFEffectStart(_ effectReference: FFEffectObjectReference!, _ iterations: UInt32, _ flags: FFEffectStartFlag) -> HRESULT |
Declaration | |
---|---|
From | func FFEffectStop(_ effectReference: FFEffectObjectReference) -> HRESULT |
To | func FFEffectStop(_ effectReference: FFEffectObjectReference!) -> HRESULT |
Declaration | |
---|---|
From | func FFEffectUnload(_ effectReference: FFEffectObjectReference) -> HRESULT |
To | func FFEffectUnload(_ effectReference: FFEffectObjectReference!) -> HRESULT |
Declaration | |
---|---|
From | func FFReleaseDevice(_ deviceReference: FFDeviceObjectReference) -> HRESULT |
To | func FFReleaseDevice(_ deviceReference: FFDeviceObjectReference!) -> HRESULT |