mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 02:00:13 +02:00
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).
8 lines
411 B
Nix
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
|
|
''
|