Steam for Linux > Dyskusje ogólne > Szczegóły tematu
JnvSor 20 Lis, 2012 - 5:07
Multiple button mice
Right now TF2 (And I presume other source games) recognize all my mouses button presses. That's great.

Except it recognizes 3 at a time as mouse4 and 2 as mouse5. I used evrouter to hook the 3 extra buttons up to keypresses but TF2 still ignores the keypresses and reads them as mouse button presses.

Basically, my fancy G500 is useless because TF2 is a bit too zealous when it comes to mouse buttons. Can I disable this behavior? Is this a bug to be reported?
Wyświetlanie 1-7 z 7 komentarzy
< >
NTolerance 23 Lis, 2012 - 14:55 
Looks like the source engine only supports MOUSE1-MOUSE5. Even in Windows it's a requirement to bind keyboard presses to MOUSE6+.

I wonder if there's an alternative to evrouter which will fool TF2 into seeing the fake keyboard presses. Does anyone know what library TF2 uses for input?
JnvSor 24 Lis, 2012 - 6:20 
That's not the problem, I totally anticipated that, that's why I mapped the 3 other buttons to keys. The problem is that the source engine is picking up the buttonpresses and incorrectly assuming they are mouse4 and mouse5 and ignoring the keypresses.
NTolerance 28 Lis, 2012 - 18:23 
Fixed it! The solution is to use xvkbd and xbindkeys to bind your mouse buttons to keyboard keys. Give this a try:

https://wiki.archlinux.org/index.php/All_Mouse_Buttons_Working#xvkbd_and_xbindkeys

JnvSor 29 Lis, 2012 - 10:58 
Nope. Using that makes those buttons do nothing in wine games (And no offense to valve but the vast majority of A3 linux games are through wine so I'm not going to blow that just for them)
NTolerance 29 Lis, 2012 - 11:14 
I thought this thread was about TF2. What I posted is tested and working in Ubuntu 12.04 64-bit. Also, you can always stop the xbindkeys application before playing something other than TF2.

Did you test this with TF2?
JnvSor 29 Lis, 2012 - 13:18 
Yes. It works with TF2. But it breaks so many other games it's still a bug.

And switching between the two is hardly an option when it requires sudo kill invocations.

I'll be testing serious sam to see which input method works with it (But if prior experience has anything to say it will prefer evrouter)
JnvSor 30 Lis, 2012 - 14:44 
As predicted serious sam catches evrouter, but not xbindkeys. TF2 is the exception - all other games I've tried (And wine games) dislike xbindkeys. 'Tis a bug.
Wyświetlanie 1-7 z 7 komentarzy
< >
Na stronę: 15 30 50
Data napisania: 20 Lis, 2012 - 5:07
Posty: 7