Skip to content

Commit 5be23f5

Browse files
Add Triki layered BLE gamepad stack for new firmware.
Introduce TrikiBLEManager, preset-based TrikiParser (v2 + legacy fallback), TrikiMotionEngine, and TrikiGameController; wire MotionSDK.pollInput through the pipeline while keeping GameInput for existing games. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1f81441 commit 5be23f5

10 files changed

Lines changed: 1208 additions & 421 deletions

File tree

AGENTS.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ VeltoKit/
3030
MotionEngine.swift # Per-frame processing, modes, calibration
3131
GameInput.swift # Output contract — start here for game logic
3232
MotionConfig.swift # Presets per MotionMode
33-
BLE/BLEManager.swift # Scan, connect, notify
34-
BLEGyroParser.swift # Packet parsing
33+
BLE/BLEManager.swift # Stub → TrikiBLEManager
34+
Triki/TrikiBLEManager.swift # Scan, connect, reconnect, notify
35+
Triki/TrikiParser.swift # Format-detecting int16 decode
36+
Triki/TrikiMotionEngine.swift # Velocity / shake / tilt / swing
37+
Triki/TrikiGameController.swift # Gamepad API (TrikiGameInput)
38+
BLEGyroParser.swift # Legacy block parser (enriched GameInput path)
3539
app/
3640
gametriki.xcodeproj
3741
Platform/TrikiInputAdapter.swift # Optional adapter (sample app)

0 commit comments

Comments
 (0)