Files
lhns--steam-frame-nix/modules/vr-keyboard-touch/check.nix
T
Pierre Kisters 0699d0f532 VR keyboard touch typing: the touched key highlights (and long-presses)
Steam's UpdateTouchState counts the event's `touches` per key: that count
is the pressed highlight (rgLayoutTouchCount -> Touched) and where the long
press (Backspace repeat, accents) starts. The touch-start event left the
new touch out of `touches`, like a touchend; now it is in, as in a DOM
touchstart (tracker.js touchEvent, with a test against a model of Steam's
handlers).
2026-10-01 03:36:13 +02:00

8 lines
411 B
Nix

# Tests of touch typing (flake check `vr-keyboard-touch`): controller tip ->
# keyboard surface -> key, press/release hysteresis, two hands, the touch
# event Steam's handlers read (tests/tracker.test.mjs).
{ pkgs }:
pkgs.runCommand "vr-keyboard-touch-checks" { nativeBuildInputs = [ pkgs.nodejs ]; } ''
node ${./tests/tracker.test.mjs} ${./tracker.js} ${../vr-keyboard-controllers/geometry.js} | tee $out
''