From 2ab1732b6be219006e9cdebeb6b70b304c616257 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 2 Jun 2025 12:12:51 +0800 Subject: [PATCH] add synthesized property to KeyEvent and add additional keys --- thermion_dart/lib/src/input/src/input_types.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/thermion_dart/lib/src/input/src/input_types.dart b/thermion_dart/lib/src/input/src/input_types.dart index 97e2b380..bbd5bb69 100644 --- a/thermion_dart/lib/src/input/src/input_types.dart +++ b/thermion_dart/lib/src/input/src/input_types.dart @@ -82,14 +82,15 @@ class KeyEvent extends InputEvent { final KeyEventType type; final LogicalKey logicalKey; final PhysicalKey physicalKey; + final bool synthesized; - KeyEvent(this.type, this.logicalKey, this.physicalKey); + KeyEvent(this.type, this.logicalKey, this.physicalKey, { this.synthesized = false}); } enum KeyEventType { down, up } -enum LogicalKey { w, a, s, d, g, r, shift, esc, del } +enum LogicalKey { w, a, s, d, g, r, shift, esc, del, space } -enum PhysicalKey { w, a, s, d, g, r, shift, esc, del } +enum PhysicalKey { w, a, s, d, g, r, shift, esc, del, space } enum InputAction { TRANSLATE, ROTATE, PICK, ZOOM, NONE }