Documentation Archive Developer
Search

ForceFeedback Changes for Swift

ForceFeedback

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!)
}

Declaration
From
var rglForceData: LPLONG
To
var rglForceData: LPLONG!

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)
}

Declaration
From
var lpEnvelope: PFFENVELOPE
To
var lpEnvelope: PFFENVELOPE!

Declaration
From
var lpvTypeSpecificParams: UnsafeMutablePointer<Void>
To
var lpvTypeSpecificParams: UnsafeMutableRawPointer!

Declaration
From
var rgdwAxes: LPDWORD
To
var rgdwAxes: LPDWORD!

Declaration
From
var rglDirection: LPLONG
To
var rglDirection: LPLONG!

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)
}

Declaration
From
var lpvInBuffer: UnsafeMutablePointer<Void>
To
var lpvInBuffer: UnsafeMutableRawPointer!

Declaration
From
var lpvOutBuffer: UnsafeMutablePointer<Void>
To
var lpvOutBuffer: UnsafeMutableRawPointer!

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

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

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