I want to play idle-action games (like Witcher I or FTL) with a single hand. These games are both action and idle because you can press spacebar to stop action and think about strategy and what to do next. This pause cannot be remapped to mouse in-game and that is why I asking here. In Ubuntu, is there any possible way how to fake spacebar input every time I press 4th mouse button?

Note: I'm running these games using wine

  • What kind of mouse is it? – Jeff Apr 10 '18 at 13:25
  • @Jeff It is gaming mouse made by Trust. It have standard 3 buttons plus two buttons on left side (pressable with thumb).There is also dpi-switch. I don't have original package for long time already so i can't tell you what model it is because i don't know it myself. – Jacob Apr 10 '18 at 13:48

I think you will want to install imwheel as discussed in ManyButtonsMouseHowto under the Mapping More Buttons section. imwheel should allow you to "define application-specific actions to your additional mouse buttons".

So using imwheel you should be able to remap the button to whatever you want and have it only behave like that in the applications you want, in your case FTL and Witcher.

| improve this answer | |
  • I see, Thanks. Just one question : Do i need to set it to wine or to .exe ? – Jacob Apr 10 '18 at 14:23
  • I think you will want to set it to wine. If that does not work let me know. – Jeff Apr 10 '18 at 14:51
  • Does not works, prephaps, I'm the one who is wrong. Tell me, is this wrong '#Wine thumbs to spacebar for Witcher and FTL "^Wine" None, Thumb1, Spacebar None, Thumb2, Spacebar' – Jacob Apr 10 '18 at 15:07
  • That looks good to me, though I don't have a mouse I can test with at the moment. If you look at "sadris" second post on this thread Wine and 5 Button Mouse it seems he used the game it's self, not wine. So try that. I'm not sure how accurate the rest of the information in that thread is as it is 10 years old, but I'm having a hard time finding much information on this setup. – Jeff Apr 10 '18 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.