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).
This commit is contained in:
Pierre Kisters committed 2026-10-01 03:36:13 +02:00
1 parent 63d589c261
commit 0699d0f532
5 files changed
+57 -16

No files matched your search

+1 -1
View File
@@ -231,7 +231,7 @@ to the laser only. Depends on Steam and SteamVR UI internals (see
**Tests:** `nix flake check` (checks `vr-keyboard-controllers`: tip and
laser relative to the keyboard; `vr-keyboard-touch`: contact, hysteresis,
two hands).
two hands, the touch list Steam's highlight and long press read).
**Debugging:** `window.__sfuiTouchTypeLog` (`SharedJSContext`: presses,
misses), `__sfuiControllers.last` (the last frame), and in `systemui`