I have bought crosscode on sale, and while I like the game so far, the one source of frustration for me is the fact that primary and secondary mouse buttons are overloaded and it can be hard to use their features. Sadly, this game doesn’t support rebinding mouse buttons because it was build with snort and matchsticks. Is there a program that can remap mouse keys while the game is running and only while it is running? I know about xbindkeys, it seems like I have to manually turn off my binding when I don’t play the game.

You are viewing a single thread.
View all comments
-1 points

I use highly customizable tiling manager, so I more or less automated these things where I switch bindings depending on what window is focussed. I think though that if you know how to rebind the mouse click manually you can just automate it through bash script.

Basically First line, rebind everything Second line launch the game Third line, rebind things back.

permalink
report
reply
1 point
*

I am using steam (yeah, I’m sorry)

I guess I could pgrep the games process and if it isn’t present then kill the xbindkeys.

EDIT: i found a mod that allows you to bind to mouse buttons 4 and 5 in game.

permalink
report
parent
reply
1 point

Maybe you can do something like that in the launch options:

xbindkeys <stuff> && %command% && pskill xbindkeys

I don’t remember the game run command but it should be similar to %command% or something…

permalink
report
parent
reply
1 point

I dunno, i have tried %command% and it just doesn’t work for me. Maybe I did something wrong. Whatever, I don’t need this anymore. Thanks for trying to help

permalink
report
parent
reply

Linux Gaming

!linux_gaming@lemmy.ml

Create post

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

Community stats

  • 1.6K

    Monthly active users

  • 934

    Posts

  • 10K

    Comments