STEAM GROUP
Linux User Group s-lug
STEAM GROUP
Linux User Group s-lug
247
IN-GAME
1,739
ONLINE
Founded
April 16, 2010
Language
English
Holysword May 24, 2019 @ 10:54am
Gaming Mouse with Proton
I just decided to try Dungeons & Dragons online with Proton and I was delighted to find out that it worked automatically out-of-the-box!

Sadly it came with the disadvantage that it does not recognize my mouse buttons properly. It is a G700s by Logitech. I've played this game in 2012-2014 with the same mouse and all the buttons got recognized without a problem...

Do you guys tinker with Wine to get your gaming mouses working? Is there any black magic needed?
< >
Showing 1-5 of 5 comments
[SQ]Noname May 24, 2019 @ 2:32pm 
I don't think Wine or Proton can do anything about that. I tried installing a Windows Logitech driver via Wine/Playonlinux once with no luck.

You will have to get your OS to recognize the buttons natively. Either you find someone who reverse-engineered the protocol like here[github.com] for the G300, or you try something like xbindkeys. As long as the OS recognizes the buttons being pressed, you can bind them to something, and then bind that in the game.
Holysword May 24, 2019 @ 2:59pm 
I did bind the mousebuttons to something else (e.g. left and right keys) usinng xbindkey. They work fine on Linux. The problem is that game seems to receive the signals directly, bypassing all X communication. Any change like that would have to come from the kernel, I'm afraid...
Or... there could be a trick on Wine.
I also failed installing the Logitech drivers, btw.
Aoi Blue May 25, 2019 @ 2:40am 
Originally posted by Holysword:
I did bind the mousebuttons to something else (e.g. left and right keys) usinng xbindkey. They work fine on Linux. The problem is that game seems to receive the signals directly, bypassing all X communication. Any change like that would have to come from the kernel, I'm afraid...
Or... there could be a trick on Wine.
I also failed installing the Logitech drivers, btw.
Yeah, this is an issue with the games themselves, not Proton or Linux.
The Logitech drivers get around this by installing a generic keymapper to map them as macro keys.

Unfortunately, that driver is a hardware driver, and Proton obviously won't support hardware drivers for USB-HID devices like mice and keyboards.

Fortunately, there are plenty of tools that ship with Linux to do keybindings system-wide. You can try binding them to one of the predesignated "Macro" key keycodes or specific keystroke combinations you wouldn't normally use.

The USB HID keyboard standard added a bunch of macro and multimedia keys. Most games read those being passed through even if they can't read beyond 3 mouse buttons.

I know it is very stupid that games STILL don't read more than three mouse buttons in this day in age.

The USB-HID standard allows for an insane number of mouse buttons, but I've never heard of more than 30 buttons being put on a pointer device, and that would be some of those macro CAD digitizers, not gaming mice. Still, the games should support specification limits in case gamers come up with any cool custom setups. This is especially important for accessability systems.
Last edited by Aoi Blue; May 25, 2019 @ 2:41am
Holysword May 25, 2019 @ 2:45am 
Originally posted by Aoi Blue:
Originally posted by Holysword:
I did bind the mousebuttons to something else (e.g. left and right keys) usinng xbindkey. They work fine on Linux. The problem is that game seems to receive the signals directly, bypassing all X communication. Any change like that would have to come from the kernel, I'm afraid...
Or... there could be a trick on Wine.
I also failed installing the Logitech drivers, btw.
Yeah, this is an issue with the games themselves, not Proton or Linux.
The Logitech drivers get around this by installing a generic keymapper to map them as macro keys.

Unfortunately, that driver is a hardware driver, and Proton obviously won't support hardware drivers for USB-HID devices like mice and keyboards.

Fortunately, there are plenty of tools that ship with Linux to do keybindings system-wide. You can try binding them to one of the predesignated "Macro" key keycodes or specific keystroke combinations you wouldn't normally use.

The USB HID keyboard standard added a bunch of macro and multimedia keys. Most games read those being passed through even if they can't read beyond 3 mouse buttons.

I know it is very stupid that games STILL don't read more than three mouse buttons in this day in age.

The USB-HID standard allows for an insane number of mouse buttons, but I've never heard of more than 30 buttons being put on a pointer device, and that would be some of those macro CAD digitizers, not gaming mice. Still, the games should support specification limits in case gamers come up with any cool custom setups. This is especially important for accessability systems.
Can I get an example of these many tools to keybinds system-wide which would also force Wine to accept them?
Because I'm using xbindkeys to merely bind my mouse button to "Left" key (I've tried using xte and xdotools so far) and the game completely ignores it. The binding works within Linux itself.
Holysword May 25, 2019 @ 4:36am 
Woah, I just managed to get it working by writing a script using python-uinput:
https://superuser.com/questions/883782/how-do-i-properly-map-a-keyboard-key-to-a-mouse-button

Actually, this opens up a lot of doors.I wonder if there is a GUI for doing that...
< >
Showing 1-5 of 5 comments
Per page: 1530 50