Author Topic: Any way to get FSO to recognize mouse buttons 4 and 5 without emulation?  (Read 1466 times)

0 Members and 2 Guests are viewing this topic.

Offline MP-Ryan

  • Makes General Discussion Make Sense.
  • Global Moderator
  • 210
  • Keyboard > Pen > Sword
Any way to get FSO to recognize mouse buttons 4 and 5 without emulation?
Right now, I have to set mouse buttons 4 and 5 to a key through emulation to have them work in game.  Is there any way to get the game to recognize them?  (Feature request?)
"In the beginning, the Universe was created.  This made a lot of people very angry and has widely been regarded as a bad move."  [Douglas Adams]

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Any way to get FSO to recognize mouse buttons 4 and 5 without emulation?
IIRC PPJoy can do that by assigning buttons to keyboard keys, but I'm not sure.

 

Offline MP-Ryan

  • Makes General Discussion Make Sense.
  • Global Moderator
  • 210
  • Keyboard > Pen > Sword
Re: Any way to get FSO to recognize mouse buttons 4 and 5 without emulation?
IIRC PPJoy can do that by assigning buttons to keyboard keys, but I'm not sure.

I can do that already.

What I'm looking to find out, or see if it an be added, is for the game to recognize buttons 4 and 5 as separate buttons WITHOUT mapping them to a keyboard key.  Unfortunately, while FSO easily recognizes mapped keyboard keys on mouse buttons, some other software does not, and the application-specific emulation in SetPoint doesn't seem to work with FSO.
"In the beginning, the Universe was created.  This made a lot of people very angry and has widely been regarded as a bad move."  [Douglas Adams]

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Any way to get FSO to recognize mouse buttons 4 and 5 without emulation?
Wait for new pilot code would be my guess.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Any way to get FSO to recognize mouse buttons 4 and 5 without emulation?
Even with new pilot code there are platform issues that have to be dealt with.  SDL for instance uses mouse buttons 4 & 5 as the mouse wheel (up and down, respectively), whereas Windows treats the mouse wheel as an axis.  It can still be done with some hacks to the Windows code to make it see the mouse wheel as buttons and then have the extra buttons be 6 and up.  The easiest thing would probably just be to wait until the Windows side of things moves to SDL and then there won't be any weird hacks involved to support all mouse buttons and the wheel.

There is also an issue of the mouse and joystick buttons overlapping as far as the control code goes.  These will need to be separated before any real changes can be made to support additional mouse functionality.

Either way, the new pilot code is set up to support this, so it will all be ready once the rest of the code is changed to properly support the mouse.