forked from Blendman974/faceclaw
Add a proper app icon, remove g2-kit dependency, add ACKNOWLEDGEMENTS file
This commit is contained in:
1 parent
3ac080aea5
commit
3aa3bcba63
19 files changed
+63
-35
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { EventSourceType, EventSourceTypeName, OsEventTypeList, OsEventTypeName, } from "g2-kit/lite";
|
||||
import { ImageSource } from "@nativescript/core";
|
||||
import { EventSourceType, EventSourceTypeName, OsEventTypeList, OsEventTypeName } from "./events";
|
||||
import { loadDeviceAddresses } from "./device-addresses";
|
||||
import { ensureBlePermissions } from "./android-permissions";
|
||||
import { FaceclawCommunicatorBridge, type FrameMetrics, type RawInputEvent } from "../native/faceclaw-communicator";
|
||||
@@ -15,6 +15,7 @@ import {
|
||||
getDashboardNightscoutSettings,
|
||||
getDashboardSystemCardName,
|
||||
receiveInput,
|
||||
resetDashboardSleepTimerAndWake,
|
||||
setDashboardBatteryLevels,
|
||||
setDashboardActions,
|
||||
setDashboardNightscoutApiToken,
|
||||
@@ -238,6 +239,7 @@ class DashboardController {
|
||||
this.log = "";
|
||||
this.lastInput = "waiting...";
|
||||
this.lastSys = "none yet";
|
||||
resetDashboardSleepTimerAndWake();
|
||||
this.refreshEvenAppStatus();
|
||||
this.setPhase("connecting");
|
||||
this.setStatus("Connecting to the glasses...");
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
export const EventSourceType = {
|
||||
TOUCH_EVENT_FORM_DUMMY_NULL: 0,
|
||||
TOUCH_EVENT_FROM_GLASSES_R: 1,
|
||||
TOUCH_EVENT_FROM_RING: 2,
|
||||
TOUCH_EVENT_FROM_GLASSES_L: 3,
|
||||
} as const;
|
||||
|
||||
export const EventSourceTypeName: Record<number, string> = {
|
||||
0: "TOUCH_EVENT_FORM_DUMMY_NULL",
|
||||
1: "TOUCH_EVENT_FROM_GLASSES_R",
|
||||
2: "TOUCH_EVENT_FROM_RING",
|
||||
3: "TOUCH_EVENT_FROM_GLASSES_L",
|
||||
};
|
||||
|
||||
export const OsEventTypeList = {
|
||||
CLICK_EVENT: 0,
|
||||
SCROLL_TOP_EVENT: 1,
|
||||
SCROLL_BOTTOM_EVENT: 2,
|
||||
DOUBLE_CLICK_EVENT: 3,
|
||||
FOREGROUND_ENTER_EVENT: 4,
|
||||
FOREGROUND_EXIT_EVENT: 5,
|
||||
ABNORMAL_EXIT_EVENT: 6,
|
||||
SYSTEM_EXIT_EVENT: 7,
|
||||
IMU_DATA_REPORT: 8,
|
||||
} as const;
|
||||
|
||||
export const OsEventTypeName: Record<number, string> = {
|
||||
0: "CLICK_EVENT",
|
||||
1: "SCROLL_TOP_EVENT",
|
||||
2: "SCROLL_BOTTOM_EVENT",
|
||||
3: "DOUBLE_CLICK_EVENT",
|
||||
4: "FOREGROUND_ENTER_EVENT",
|
||||
5: "FOREGROUND_EXIT_EVENT",
|
||||
6: "ABNORMAL_EXIT_EVENT",
|
||||
7: "SYSTEM_EXIT_EVENT",
|
||||
8: "IMU_DATA_REPORT",
|
||||
};
|
||||
Reference in new issue
Block a user