Jump to content
The Dark Mod Forums

Extra mouse buttons can't be mapped as controls


Recommended Posts

There seems to be a limitation regarding controllers (2.09 release, Linux / X11). The engine appears to not detect special mouse keys: In the Settings - Controls menu, I cannot map actions to some mouse buttons, they aren't being sensed at all. Tilting the mouse wheel sideways seems to register (as "mouse4" and "mouse5") but the forward and backward navigation keys do not.

I noticed this a while ago but I don't need those buttons. However I'm trying to introduce the game to someone close: He needs to use a mouse with special buttons for gaming due to medical reasons. If non-standard mouse keys can't be mapped, I'm afraid this is a game we won't be able to enjoy. For this reason I'd like to ask if others can confirm this limitation, and if so can the engine be patched to solve it please? Thank you.

Link to post
Share on other sites
13 minutes ago, cabalistic said:

It's a known limitation due to awful input handling on Linux: https://bugs.thedarkmod.com/view.php?id=5208

That whole input code needs a full rewrite, so I can't make any promises on a speedy resolution.

Thank you for clarifying. Are there any known tricks or workarounds in the meantime? It would be nice if for the time being a quick patch were be possible, but I don't know the code so if it takes time to find any solution I understand. I'll follow that bug as well to stay up to date with this.

Link to post
Share on other sites

Autokey seems to be able to do that. I am under windows and use AutoHotkey et. al. for those purposes and Autokey is noted as linux alternative in the web.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to post
Share on other sites

I made a post about this here (I still use this solution for myself):

 

Edit: just want to add that if you have a mouse that actually has linux client software that can "configure" it to do what you want, that is also a "modern" option if that's available.  Also, for that old mouse of mine, it had hard coded "modes" that you could switch through with a button on top of the mouse... I believe I had to have it in a certain mode to not get clashes with darkmod.

 

Edited by Sneaker
Link to post
Share on other sites

Some mouse buttons emit keyboard events automatically. I have a Logitech G600 MMO mouse and all of the buttons on the side are just aliases for the number keys ("1"-"0", "-" then "="). So if your friend can use a mouse like that he can just bind those number keys as he wishes, without needing to worry about handling them as special mouse buttons.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...