Author Topic: Mouse Button problem and feature request  (Read 1682 times)

0 Members and 1 Guest are viewing this topic.

Mouse Button problem and feature request
I'm using a mouse with 4 Buttons (left, right, wheel/middle, thumb), which makes 6 buttons under linux.
Unfortunately FreeSpace recognizes both the left and right button as button1 and the middle and thumb button as button2, completely ignoring the mouse wheel. So effectively I'm stuck with a two-button-mouse. Under linux all the buttons are recognized and mapped, other apps and games also use them properly, so I don't think it's a system issue. The original game (under windows) also recognized all buttons. Does anyone have a hint what to do to activate all or at least more of the buttons?

In addition, is there any possibility that the FreeSpace options menu get at switch if the mouse y-axis shall be inverted or not?
I don't think it wouldn't be too hard to implement and greatly eases the transition between FreeSpace and other games ...

Greetings
Black Jack

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Mouse Button problem and feature request
Mouse Invert: F2 -> Control Configuration -> Ship

Invert option is on the bottom:



As far as multi-buttons go, there was a script that fixed that, IIRC... ask Nuke.  Oh, and
:welcomeblue:

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Mouse Button problem and feature request
You are limited to what SDL supports, which at this time is limited to: left, right, middle/wheel.  The code doesn't support the wheel yet, but I have already coded in support for it as part of the pilot file upgrade (since adding new controls breaks pilot files).

There should be no reason for it to mess up your buttons like that though.  Try creating a new pilot file and see if perhaps it's corruption that messed it up.

 

Offline castor

  • 29
    • http://www.ffighters.co.uk./home/
Re: Mouse Button problem and feature request
You may also need to remap the mouse button codes for sensible operation.
For example, this is what I use to map the "thumb button" as the "middle button":
Code: [Select]
xmodmap -e "pointer = 1 6 3 4 5 7 8 2 9 10"
..swapping the button codes 2&6.

With my current X, SDL etc. versions that seems to be enough, but Its not so long ago when I had to use quite obscure remap strings to make it work at all..
One hint, if you end up remapping stuff, the "xev" command line tool is your friend :)


  
Re: Mouse Button problem and feature request
Thanks, I'll try your advices.
But now it's time for bed ... :-)