16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 22:39:17 +02:00

drivermode: Allow to (un)set picking mode by combining Alt with Shift/Ctrl

Pressing Alt toggles picking mode. This is fine for keyboard and mouse usage,
but some use cases, such as disabling picking mode when a finger is placed
on a thumbstick and enabling it back when it's lifted, require finer control.
Allow to always enable picking mode when pressing Alt with Shift, and to always
disable picking mode when pressing Alt with Ctrl.
This commit is contained in:
Sebastian Krzyszkowiak
2026-06-30 06:14:43 +02:00
parent 116eed6100
commit 2f187b470f

View File

@@ -496,7 +496,7 @@ void driver_mode::on_key(int const Key, int const Scancode, int const Action, in
if (Action == GLFW_PRESS)
{
// toggle picking mode
set_picking(!Global.ControlPicking);
set_picking(Global.shiftState ? true : (Global.ctrlState ? false : !Global.ControlPicking));
}
}