Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: kagaku on January 31, 2005, 07:51:09 am

Title: Bind Mouse Axis ingame
Post by: kagaku on January 31, 2005, 07:51:09 am
I finally dusted off my copy of Freespace 2 and installed it along with the upgrades from the FSP, but I have one nagging problem. I don't own a working joystick anymore, and since I began playing Battlefield 1942 I've grown very acustomed to controling flying vehicles with the mouse/keyboard.

Unfortunately, I can't seem to bind the Bank controls to the X axis of my mouse. Pitch is properly bound to the Y axis, but Yaw is currently bound to the X axis of my mouse, which isn't what I want.

How can I change the binding of Bank to the X axis?

In addition, is there any way to use the other buttons on my mouse? I've got four side buttons (two on each side) along with the middle mouse button and the scrollwheel. How can I get Freespace 2 to let me bind those keys to commands?
Title: Re: Bind Mouse Axis ingame
Post by: taylor on January 31, 2005, 09:06:57 am
Quote
Originally posted by kagaku
In addition, is there any way to use the other buttons on my mouse? I've got four side buttons (two on each side) along with the middle mouse button and the scrollwheel. How can I get Freespace 2 to let me bind those keys to commands?

It only supports 3 buttons at the moment.  Another problem is that mouse buttons and joystick buttons (HAT) use the same config so a button press on the mouse can equal a different function on the joystick and you get multiple actions in game.  This needs a bit of work to get functioning better but I'm working on it.  Support for more mouse buttons will be added at the same time.  The problem holding this up is that the new control configuration breaks pilot files.  There are several changes coming in the near future that will break pilot files again so I'm waiting to do all of the changes at once.  Don't have a time frame on when this will get done though.

Not sure about your axis problem.  Maybe someone else can answer it.
Title: Bind Mouse Axis ingame
Post by: Moonsword on January 31, 2005, 09:26:29 am
Where are your manners, man?

:welcome:

Welcome to the HLP.  Glad to have you.

The Wiki contains most of our knowledge, so check that and search to see if a question's been asked in the forum before (both links are up at the top of the page on the right).

And again, welcome to our little corner of the asylum.  The doctor will be by soon with the meds. :p
Title: Bind Mouse Axis ingame
Post by: Kie99 on January 31, 2005, 10:38:17 am
:welcome:

This should be in General Freespace IMHO
Title: Re: Bind Mouse Axis ingame
Post by: castor on January 31, 2005, 12:05:57 pm
Quote
Originally posted by kagaku
In addition, is there any way to use the other buttons on my mouse? I've got four side buttons (two on each side) along with the middle mouse button and the scrollwheel. How can I get Freespace 2 to let me bind those keys to commands?
At least Logitech's mouse software lets you map the buttons to (virtually) any keypress..
Title: Bind Mouse Axis ingame
Post by: kagaku on January 31, 2005, 02:39:43 pm
My current mouse software (RazerConfig) lets me do the same thing, and it works properly in anything I've tried so far.. ..except Freespace 2.

I did try to rebind the X axis using a gamepad I have, but that only worked for the gamepad and not the mouse (even though it says 'Joystick/Mouse X Axis' :rolleyes:). Thanks for the quick answers and the warm welcome.