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:
2026-03-23 11:08:43 +01:00
parent d63b316f1b
commit 1165e0bc44
11 changed files with 600 additions and 0 deletions
@@ -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;