gui: keyaction - Make the dial on the K70 CORE RGB behave like the volume barrel

This commit is contained in:
Karl Fleischmann
2026-06-02 17:43:44 +02:00
parent 444a250367
commit d4c07dcde6
+14
View File
@@ -86,6 +86,20 @@ QString KeyAction::defaultAction(const QString& key, KeyMap::Model model){
if(key == "profdn")
return "$mode:-4";
// The K70 CORE RGB only has a dial. Bind the Volume Barrel/Mute for its rotation/press.
if(key == "ctrlwheelcw") {
if(model == KeyMap::K70_CORE_RGB)
return "volup";
}
if(key == "ctrlwheelccw") {
if(model == KeyMap::K70_CORE_RGB)
return "voldn";
}
if(key == "ctrlwheelb") {
if(model == KeyMap::K70_CORE_RGB)
return "mute";
}
#ifdef Q_OS_MACOS
// macOS has no forwards and backwards, so we bind them to macros that simulate that action
if(key == "mouse4")