more key mappings

This commit is contained in:
Nick Fisher
2025-06-23 10:33:50 +08:00
parent a01bf36576
commit e8721b6133

View File

@@ -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 }