Checks tracker input selection, freshness and compatibility with saved input assignments.
Subsystem: GUI, controls, inventory and player interaction
Fixture/harness: freetrackinputtests
Setup: The standalone FreeTrackInputTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/FreeTrackInputTests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Debug|x64, Release|x64.
FreeTrackInputTests.cpp
Source: Tests/FreeTrackInputTests.cpp
Exercise Stream
Fixture: Free Track Input tests
Case symbol: ExerciseStream
Source: Tests/FreeTrackInputTests.cpp:32
- Test
- Exercise Stream: unselected device is never polled; absent tracker leaves manual targets intact; empty record cannot overwrite mouse.
Source check messages (including original failure wording)
-
unselected device is never polled
-
absent tracker leaves manual targets intact
-
absent tracker is not live
-
empty record cannot overwrite mouse
-
enable establishes a baseline before accepting data
-
moving lateral tracker accepted
-
lateral-only tracking preserves mouse/joystick vertical target
-
mixed input has no extra roll or translation
-
lateral invert is independent
-
duplicate frames never rewrite camera
-
switching axes resets liveness and waits for a fresh baseline
-
vertical tracker accepted
-
vertical-only invert preserves lateral target
-
camera permission gates leave targets intact
-
both axes accepted
-
both assigned axes retain existing six-DOF movement
-
both targets use current tracker pose
-
liveness expires at the timeout boundary
-
stopped producer cannot replay a pose
-
timeout clears retained head movement and rate
-
restarted producer re-arms
-
high counter accepted
-
counter wrap with centered pose accepted
-
centered tracking is valid
-
nonfinite pose rejected
-
valid frame after invalid pose accepted
-
deselecting last channel stops DLL calls immediately
-
disable clears transient state
-
re-enable cannot replay retained frame
-
status reports observed update rate
Entry-point checks
Fixture: Free Track Input tests
Case symbol: main
Source: Tests/FreeTrackInputTests.cpp:117
- Test
- Entry-point checks: Persisted input record remains 32 bytes; old mouse assignment remains mouse; virtual device never falls through to mouse.
Source check messages (including original failure wording)
-
Persisted input record remains 32 bytes
-
old mouse assignment remains mouse
-
virtual device never falls through to mouse
-
saved virtual device and invert survive restart