UFO:Alien Invasion

Technical support => Linux => Topic started by: badbunny on October 26, 2009, 10:21:55 am

Title: Weird mouse problem
Post by: badbunny on October 26, 2009, 10:21:55 am
Hello,
I just installed UFO:AI v.2.2.1, following these instructions: http://ufoai.ninex.info/wiki/index.php/Debian
Now, when I run the game, the mouse cursor keeps running towards the upper left corner, as if it was following a joystick pointed that way. I can move the cursor with the mouse, but as soon as I stop, it heads back towards the corner.
I assume this can be corrected by disabling joystick, how's that done?
Title: Re: Weird mouse problem
Post by: geever on October 26, 2009, 11:26:15 am
Hello,
I just installed UFO:AI v.2.2.1, following these instructions: http://ufoai.ninex.info/wiki/index.php/Debian
Now, when I run the game, the mouse cursor keeps running towards the upper left corner, as if it was following a joystick pointed that way. I can move the cursor with the mouse, but as soon as I stop, it heads back towards the corner.
I assume this can be corrected by disabling joystick, how's that done?

Unplug it. :) But moving it a bit is usually enough.

-geever
Title: Re: Weird mouse problem
Post by: badbunny on October 26, 2009, 05:49:29 pm
Well now. I forgot to tell you, but I don't actually have a joystick. :)
Title: Re: Weird mouse problem
Post by: geever on October 26, 2009, 05:53:35 pm
Well now. I forgot to tell you, but I don't actually have a joystick. :)

Try removing ~/.ufoai/2.2.1/base/keys.cfg and check ufoconsole.log if it found any joystick.

-geever
Title: Re: Weird mouse problem
Post by: badbunny on October 26, 2009, 06:08:06 pm
Apparently I have the 2.3 version. I thought I didn't but I'm not that smart, really.

Anyway, I deleted the keys.cfg and started the game. This is what I found in the log:

Quote
------- input initialization -------
1 possible joysticks
joystick 0 opened - set cvar in_joystickNo to change this
... name: Microsoft Microsoft� Digital Media Pro Keyboard
... axes: 37
... hats: 0
... buttons: 41
... balls: 0
Title: Re: Weird mouse problem
Post by: geever on October 26, 2009, 06:37:18 pm
Apparently I have the 2.3 version. I thought I didn't but I'm not that smart, really.

Anyway, I deleted the keys.cfg and started the game. This is what I found in the log:


Okay, you can disable joysticks by starting the game with
Code: [Select]
ufo +set in_joystick 0

When you quit it will save that setting.

-geever
Title: Re: Weird mouse problem
Post by: badbunny on October 26, 2009, 07:14:46 pm
That did it! Thank you for the amazingly fast help!

...wish I could get this kind of support with commercial games that I pay for... :)
Title: Re: Weird mouse problem
Post by: geever on October 26, 2009, 07:28:51 pm
That did it! Thank you for the amazingly fast help!

Well, Mattn helped me with that info.

From r26789 it can be enabled/disabled from Input Options menu too.

-geever