feat: Implement map overlay toggle functionality and rendering across input and rendering systems
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -70,6 +70,7 @@ class Wolf3dFlutterInput extends Wolf3dInput {
|
||||
LogicalKeyboardKey.keyD,
|
||||
LogicalKeyboardKey.arrowRight,
|
||||
},
|
||||
WolfInputAction.mapToggle: {LogicalKeyboardKey.tab},
|
||||
WolfInputAction.fire: {
|
||||
LogicalKeyboardKey.controlLeft,
|
||||
LogicalKeyboardKey.controlRight,
|
||||
@@ -209,6 +210,7 @@ class Wolf3dFlutterInput extends Wolf3dInput {
|
||||
kbBackward || (_isMouseLookEnabled && _mouseDeltaY > 1.5);
|
||||
isTurningLeft = kbLeft || (_isMouseLookEnabled && _mouseDeltaX < -1.5);
|
||||
isTurningRight = kbRight || (_isMouseLookEnabled && _mouseDeltaX > 1.5);
|
||||
isMapToggle = _isNewlyPressed(WolfInputAction.mapToggle, newlyPressedKeys);
|
||||
|
||||
// Deltas are one-frame impulses, so consume them immediately after use.
|
||||
_mouseDeltaX = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user