fix unicode
This commit is contained in:
parent
0f18bd0337
commit
de940a98e8
@ -7,7 +7,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import CoreMotion
|
import CoreMotion
|
||||||
import GameController // ‹GCController›
|
import GameController // GCController
|
||||||
|
|
||||||
//──────────────────────────────────────────────────────────────────────── MARK:- Providers
|
//──────────────────────────────────────────────────────────────────────── MARK:- Providers
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ final class DeviceMotionProvider: DSUMotionProvider {
|
|||||||
let ay = Float(m.gravity.y + m.userAcceleration.y)
|
let ay = Float(m.gravity.y + m.userAcceleration.y)
|
||||||
let az = Float(m.gravity.z + m.userAcceleration.z)
|
let az = Float(m.gravity.z + m.userAcceleration.z)
|
||||||
|
|
||||||
// Rotate axes to match Cemuhook’s "landscape-left as neutral" convention
|
// Rotate axes to match Cemuhook's "landscape-left as neutral" convention
|
||||||
let a: SIMD3<Float>
|
let a: SIMD3<Float>
|
||||||
let g: SIMD3<Float>
|
let g: SIMD3<Float>
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ final class DeviceMotionProvider: DSUMotionProvider {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert gyro rad/s → °/s here so the server doesn’t have to.
|
// Convert gyro rad/s → °/s here so the server doesn't have to.
|
||||||
let gDeg = g * (180 / .pi)
|
let gDeg = g * (180 / .pi)
|
||||||
|
|
||||||
return DSUMotionSample(timestampUS: currentUS(),
|
return DSUMotionSample(timestampUS: currentUS(),
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CocoaAsyncSocket // ‹GCDAsyncUdpSocket›
|
import CocoaAsyncSocket // GCDAsyncUdpSocket
|
||||||
import zlib // CRC-32
|
import zlib // CRC-32
|
||||||
|
|
||||||
//──────────────────────────────────────────────────────────────────────── MARK:- DSU Motion protocol
|
//──────────────────────────────────────────────────────────────────────── MARK:- DSU Motion protocol
|
||||||
|
Loading…
x
Reference in New Issue
Block a user