Well, of course there is qjoypad
that does exactly what you want ... for joypads and joysticks. I have not found any easy-to-use GUI tool which does the same for mouse, though...
But all hope is not lost. I am really sure you can get this working!
I bet it is possible to use only imwheel
for that, but I haven't looked into it.
I used xbindkeys
, however, and it seems to work.
Just grap an RPM from rpmfind.net or so, if you can't compile the source code.
If you can't get lineakd
to install, I found an alternative which sends X key events. It's called xvkbd
Actually, it is a virtual on-screen keyboard, but you can get it to do what you want...
Once you installed xbindkeys, you set up your ~/.xbindkeys this way:
"xvkbd -xsendevent -text a"
The second line is which button events should be catched. Here, it is mouse button 6 (which is the thumb button on my mouse).
And the line above it says which command should be launched upon this event.
So what you have to do is use xev | grep button
to find out how X numbers your physical mouse buttons, and then set up two of those lines in .xbindkeys for each mouse button and each key to send, repectively.
Be sure you restart xbindkeys
after changing the config file.
Also, make sure to kill xbindkeys after the fun (you could write a shell script for starting it before wine and killing it afterwards).
Let me know if that works..