Quick Start
Start with Integration recipes — four copy-paste patterns (Pong, UI, Dart, Bowling).
Add VeltoKit via SPM or CocoaPods, then:
Minimal loop
import VeltoKit
let motion = MotionSDK()
motion.configureForPong() // or .configureForMenu() / pointer / gesture — see recipes
motion.connect() // scan + auto-connect (physical iPhone)
// Each frame (~60 Hz):
let input = motion.pollInput(deltaTime: dt)
Add to Info.plist: NSBluetoothAlwaysUsageDescription.
Pick a recipe
| You build… | Call | Doc |
|---|---|---|
| Pong | configureForPong() + TrikiSimplePong | Recipes §1 |
| Menu / Quiz | configureForMenu() + TrikiUIPicker | Recipes §2 |
| Dart | configureForPointerGame() | Recipes §3 |
| Bowling | configureForGestureGame() | Recipes §4 |
Manual bytes (your own BLE stack)
let motion = MotionSDK()
motion.configureForPong()
motion.enqueueBLE(bytes)
motion.updateFrame(deltaTime: dt)
let input = motion.input