more key mappings
This commit is contained in:
@@ -84,13 +84,92 @@ class KeyEvent extends InputEvent {
|
|||||||
final PhysicalKey physicalKey;
|
final PhysicalKey physicalKey;
|
||||||
final bool synthesized;
|
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 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 }
|
enum InputAction { TRANSLATE, ROTATE, PICK, ZOOM, NONE }
|
||||||
|
|||||||
Reference in New Issue
Block a user