Move and rename DashboardInputEvent->InputEvent

This commit is contained in:
James Babcock committed 2026-08-30 13:02:44 -07:00
1 parent 3e8be93833
commit 80d688dd4e
51 files changed
+299 -361

No files matched your search

+3 -2
View File
@@ -1,7 +1,8 @@
import { getDefaultLargeFont, getDefaultSmallFont } from "../../graphics/ui-fonts";
import { GrayImage, type UiFont } from "../../graphics/image";
import { truncateText } from "../../graphics/textwrap";
import { DashboardInputEvent, Layer, LayerContext } from "../../ui/layers";
import { InputEvent } from "../../ui/gestures";
import { Layer, LayerContext } from "../../ui/layers";
import { nightscoutBridge, type NightscoutState } from "../../native/nightscout-bridge";
import {
isNightscoutSettingsConfigured,
@@ -361,7 +362,7 @@ export class NightscoutLayer implements Layer {
return image;
}
async handleInput(event: DashboardInputEvent, ctx: LayerContext): Promise<void> {
async handleInput(event: InputEvent, ctx: LayerContext): Promise<void> {
// The menu lives on the window's long-press menu (see nightscoutMenuItems);
// double-click at the app root is handled by the yield wrapper.
if (event.type === "double-click") {