From 2f187b470f6eee2161325ff86b21544a44f7e9d5 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Tue, 30 Jun 2026 06:14:43 +0200 Subject: [PATCH] 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. --- application/drivermode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/drivermode.cpp b/application/drivermode.cpp index 0aa033e1..19aece2e 100644 --- a/application/drivermode.cpp +++ b/application/drivermode.cpp @@ -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)); } }