Forward ring input events before filtering, and include swipe info

This commit is contained in:
James Babcock committed 2026-09-19 19:02:11 -07:00
1 parent b972cd7682
commit 7b19c00443
20 files changed
+368 -75

No files matched your search

+6 -2
View File
@@ -1,3 +1,5 @@
import type { RingInput } from "../g2/ring-input";
/**
* Where an input came from. The ring and the glasses' arms are the stock
* sources; "watch" is the Wear OS remote, which components may treat with a
@@ -10,10 +12,12 @@ export type InputSource = "ring" | "left-arm" | "right-arm" | "watch";
export type BaseInputEvent = {
/**
* When the event was received from the device (or synthesized), as a
* Date.now() epoch-ms value. The G2 wire formats carry no device-side
* clock, so this is phone receive time.
* Date.now() epoch-ms value. This remains separate from the original
* ring clock so app timers can continue comparing against Date.now().
*/
timestampMs: number;
/** Present for unfiltered ring reports forwarded by Faceclaw/19. */
ringInput?: RingInput;
};
/** The per-type part of InputEvent; makeInputEvent adds the BaseInputEvent fields. */