Documentation Archive Developer
Search

GameController Changes

GameController

Added GCAcceleration.init()
Added GCAcceleration.init(x: Double, y: Double, z: Double)
Added GCExtendedGamepadSnapShotDataV100.init()
Added GCExtendedGamepadSnapShotDataV100.init(version: UInt16, size: UInt16, dpadX: float_t, dpadY: float_t, buttonA: float_t, buttonB: float_t, buttonX: float_t, buttonY: float_t, leftShoulder: float_t, rightShoulder: float_t, leftThumbstickX: float_t, leftThumbstickY: float_t, rightThumbstickX: float_t, rightThumbstickY: float_t, leftTrigger: float_t, rightTrigger: float_t)
Added GCGamepadSnapShotDataV100.init()
Added GCGamepadSnapShotDataV100.init(version: UInt16, size: UInt16, dpadX: float_t, dpadY: float_t, buttonA: float_t, buttonB: float_t, buttonX: float_t, buttonY: float_t, leftShoulder: float_t, rightShoulder: float_t)
Added GCQuaternion.init()
Added GCQuaternion.init(x: Double, y: Double, z: Double, w: Double)
Added GCRotationRate.init()
Added GCRotationRate.init(x: Double, y: Double, z: Double)
Modified GCAcceleration [struct]
Declaration
From
struct GCAcceleration {
    var x: Double
    var y: Double
    var z: Double
}
To
struct GCAcceleration {
    var x: Double
    var y: Double
    var z: Double
    init()
    init(x x: Double, y y: Double, z z: Double)
}

Modified GCExtendedGamepadSnapShotDataV100 [struct]
Declaration
From
struct GCExtendedGamepadSnapShotDataV100 {
    var version: UInt16
    var size: UInt16
    var dpadX: float_t
    var dpadY: float_t
    var buttonA: float_t
    var buttonB: float_t
    var buttonX: float_t
    var buttonY: float_t
    var leftShoulder: float_t
    var rightShoulder: float_t
    var leftThumbstickX: float_t
    var leftThumbstickY: float_t
    var rightThumbstickX: float_t
    var rightThumbstickY: float_t
    var leftTrigger: float_t
    var rightTrigger: float_t
}
To
struct GCExtendedGamepadSnapShotDataV100 {
    var version: UInt16
    var size: UInt16
    var dpadX: float_t
    var dpadY: float_t
    var buttonA: float_t
    var buttonB: float_t
    var buttonX: float_t
    var buttonY: float_t
    var leftShoulder: float_t
    var rightShoulder: float_t
    var leftThumbstickX: float_t
    var leftThumbstickY: float_t
    var rightThumbstickX: float_t
    var rightThumbstickY: float_t
    var leftTrigger: float_t
    var rightTrigger: float_t
    init()
    init(version version: UInt16, size size: UInt16, dpadX dpadX: float_t, dpadY dpadY: float_t, buttonA buttonA: float_t, buttonB buttonB: float_t, buttonX buttonX: float_t, buttonY buttonY: float_t, leftShoulder leftShoulder: float_t, rightShoulder rightShoulder: float_t, leftThumbstickX leftThumbstickX: float_t, leftThumbstickY leftThumbstickY: float_t, rightThumbstickX rightThumbstickX: float_t, rightThumbstickY rightThumbstickY: float_t, leftTrigger leftTrigger: float_t, rightTrigger rightTrigger: float_t)
}

Modified GCGamepadSnapShotDataV100 [struct]
Declaration
From
struct GCGamepadSnapShotDataV100 {
    var version: UInt16
    var size: UInt16
    var dpadX: float_t
    var dpadY: float_t
    var buttonA: float_t
    var buttonB: float_t
    var buttonX: float_t
    var buttonY: float_t
    var leftShoulder: float_t
    var rightShoulder: float_t
}
To
struct GCGamepadSnapShotDataV100 {
    var version: UInt16
    var size: UInt16
    var dpadX: float_t
    var dpadY: float_t
    var buttonA: float_t
    var buttonB: float_t
    var buttonX: float_t
    var buttonY: float_t
    var leftShoulder: float_t
    var rightShoulder: float_t
    init()
    init(version version: UInt16, size size: UInt16, dpadX dpadX: float_t, dpadY dpadY: float_t, buttonA buttonA: float_t, buttonB buttonB: float_t, buttonX buttonX: float_t, buttonY buttonY: float_t, leftShoulder leftShoulder: float_t, rightShoulder rightShoulder: float_t)
}

Modified GCQuaternion [struct]
Declaration
From
struct GCQuaternion {
    var x: Double
    var y: Double
    var z: Double
    var w: Double
}
To
struct GCQuaternion {
    var x: Double
    var y: Double
    var z: Double
    var w: Double
    init()
    init(x x: Double, y y: Double, z z: Double, w w: Double)
}

Modified GCRotationRate [struct]
Declaration
From
struct GCRotationRate {
    var x: Double
    var y: Double
    var z: Double
}
To
struct GCRotationRate {
    var x: Double
    var y: Double
    var z: Double
    init()
    init(x x: Double, y y: Double, z z: Double)
}

Modified GCControllerDidConnectNotification
Declaration
From
let GCControllerDidConnectNotification: NSString!
To
let GCControllerDidConnectNotification: String

Modified GCControllerDidDisconnectNotification
Declaration
From
let GCControllerDidDisconnectNotification: NSString!
To
let GCControllerDidDisconnectNotification: String