Is there any way to exploit a mouse additional buttons with darktable ?

I had to replace my mouse. I absolutely needed a model with a button to switch the scroll wheel between traditionnal mode and freewheel mode, for when changing masks size in darktable. To get this I opted for a gaming mouse, a Logitech G502, which has several additional buttons.

Is there a way to use these buttons for shortcuts ? After reading the manual it seems that it’s not possible, but I don’t know maybe someone found a trick.

For example i would love to be able to do “mouse_button_#8 pressed + moving the mouse up or down” to change the exposure.

EDIT : I’m on linux (arch based) and have Piper available (GitHub - libratbag/piper: GTK application to configure gaming devices) to change the mouse settings.

Have you tried defining a shortcut with those extra buttons using the visual shotcut mapper?

I would start with a simple switch-like action, to keep it simple. If that works, there’s a good chance that more complex actions also work.

1 Like

as long as the driver of your mouse is able to simulate keystrokes of the keyboard it can be used to trigger darktable shortcuts assigned to keyboard commands.
I actually use exactly that with my gaming mouse which has a lot of buttons too

1 Like

That’s what I’m wondering, for the moment I don’t know if that’s possible. The only mouse related software that I used is Piper (GitHub - libratbag/piper: GTK application to configure gaming devices).

check out https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://github.com/PixlOne/logiops&ved=2ahUKEwiJgv64juiPAxWuw_ACHQn9Nl0QFnoECCQQAQ&usg=AOvVaw2seA9ekHFw9gacVdeMWWbm