project-navigation
Personal tools

Author Topic: Weird mouse problem  (Read 3748 times)

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Weird mouse problem
« 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?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Weird mouse problem
« Reply #1 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

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Re: Weird mouse problem
« Reply #2 on: October 26, 2009, 05:49:29 pm »
Well now. I forgot to tell you, but I don't actually have a joystick. :)

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Weird mouse problem
« Reply #3 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

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Re: Weird mouse problem
« Reply #4 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

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Weird mouse problem
« Reply #5 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

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Re: Weird mouse problem
« Reply #6 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... :)

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Weird mouse problem
« Reply #7 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