multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.38k stars 424 forks source link

Bonus mouse buttons don't work #806

Open Grafu opened 5 years ago

Grafu commented 5 years ago

Describe the bug

I am able to asign my bonus mouse buttons a control on settings / key binds but when I click those buttons in-game, they don't do anything.

To reproduce

  1. Have Logitech MX Anywhere 2S.
  2. Assign key to a keystroke function.
  3. Assign a MTA control to that key in settings.
  4. Try to click the mouse button.

Expected behaviour

The mouse button should do the MTA control function. And I am sure something is with MTA, otherwise assigning of the control to button in MTA settings would not work.

Version

Multi Theft Auto v1.5.6-release-16345 MTA:SA Server v1.5.6-release-16345

Additional context

The mouse model I have does not allow to assign MTA controls in any other way but through a keystroke assignment. If you are blocking keystroke assignments, you should reconsider the block to maybe only custom binds, not default GTA controls. I bought an expensive mouse with many buttons and now those buttons are useless on MTA.

1B0Y commented 5 years ago

Just a quick test: Try running MTA and your Logitech software in administrator, as my Corsair Scimitar had a similar issue,

ghost commented 5 years ago

Could you please see if onClientKey is being called ?

goodluck456 commented 3 years ago

This is Backsage from MTA. I am using a Logitech Marathon M705 that has two side buttons and running Windows 10 Home 20H2 build 19042.685. And running MTA 1.5.8. I can confirm this issue is happening only in MTA. I tried doing this in single player and other applications, the side buttons work there. But for some strange reason, they don't seem to be working in MTA. Not even the middle mouse button is working. And I made a little script using onClientKey and I can confirm that the buttons (mouse3, mouse4, and mouse5) aren't even being triggered. And I tried running Logitech Options and MTA both in Administrator but that didn't resolve the issue.

LosFaul commented 3 years ago

Mouse3, Mouse4 and Mouse5 are definitive supported in MTA and working for me (owning a roccat kane aimo and my older speedlink mice works nicely)

My guess: it's a problem with logitech drivers

goodluck456 commented 3 years ago

Mouse3, Mouse4 and Mouse5 are definitive supported in MTA and working for me (owning a roccat kane aimo and my older speedlink mice works nicely)

My guess: it's a problem with logitech drivers

Edit: I had to reset my binds to default, reconnect to server, and the side mouse buttons worked.