diff --git a/thermion_dart/lib/src/input/src/input_types.dart b/thermion_dart/lib/src/input/src/input_types.dart index 1083a8a9..4a986e85 100644 --- a/thermion_dart/lib/src/input/src/input_types.dart +++ b/thermion_dart/lib/src/input/src/input_types.dart @@ -84,13 +84,92 @@ class KeyEvent extends InputEvent { final PhysicalKey physicalKey; final bool synthesized; - KeyEvent(this.type, this.logicalKey, this.physicalKey, { this.synthesized = false}); + KeyEvent(this.type, this.logicalKey, this.physicalKey, + {this.synthesized = false}); } enum KeyEventType { down, up } -enum LogicalKey { w, a, s, d, g, r, x, y, z, shift, esc, del, space, backtick } +enum LogicalKey { + w, + a, + s, + d, + g, + r, + x, + y, + z, + shift, + esc, + del, + space, + backtick, + key0, + key1, + key2, + key3, + key4, + key5, + key6, + key7, + key8, + key9, + period, + numpad0, + numpad1, + numpad2, + numpad3, + numpad4, + numpad5, + numpad6, + numpad7, + numpad8, + numpad9, + numpadPeriod, + numpadEnter, + enter +} -enum PhysicalKey { w, a, s, d, g, r, x, y, z, shift, esc, del, space, backtick } +enum PhysicalKey { + w, + a, + s, + d, + g, + r, + x, + y, + z, + shift, + esc, + del, + space, + backtick, + key0, + key1, + key2, + key3, + key4, + key5, + key6, + key7, + key8, + key9, + enter, + period, + numpad0, + numpad1, + numpad2, + numpad3, + numpad4, + numpad5, + numpad6, + numpad7, + numpad8, + numpad9, + numpadPeriod, + numpadEnter +} enum InputAction { TRANSLATE, ROTATE, PICK, ZOOM, NONE }