forked from Blendman974/faceclaw
Add support for short-then-long gesture to watch input and simulated inputs
This commit is contained in:
1 parent
6483d00647
commit
216dc59255
9 files changed
+93
-14
No files matched your search
@@ -2494,6 +2494,7 @@ class DashboardController {
|
||||
| "scroll-down"
|
||||
| "long-press"
|
||||
| "long-press-release"
|
||||
| "short-then-long-press"
|
||||
| "wakeword"
|
||||
| "swipe-left"
|
||||
| "swipe-right"
|
||||
@@ -2553,6 +2554,17 @@ class DashboardController {
|
||||
systemExitReasonCode: 0,
|
||||
frameId,
|
||||
};
|
||||
case "short-then-long-press":
|
||||
// Discrete, unlike a hold: the firmware's later generic release is a
|
||||
// hardware artifact the shell ignores, so synthetic sources send none.
|
||||
return {
|
||||
kind: "sys-event",
|
||||
containerName: "",
|
||||
eventType: OsEventTypeList.SHORT_THEN_LONG_PRESS_EVENT,
|
||||
eventSource,
|
||||
systemExitReasonCode: 0,
|
||||
frameId,
|
||||
};
|
||||
case "click":
|
||||
return {
|
||||
kind: "sys-event",
|
||||
|
||||
Reference in new issue
Block a user