Hey, we have forums!

Author Topic: [SOLVED][Linux] mouse clicks/keyboard not recognized  (Read 9800 times)

0 Members and 1 Guest are viewing this topic.

Offline Ancurio

  • Mini Bit
  • **
  • Posts: 3
    • View Profile
[SOLVED][Linux] mouse clicks/keyboard not recognized
« on: June 10, 2011, 05:18:01 pm »
Hello everyone!

I recently pulled the latest source using mercurial, compiled it, copied all data files from
my windows partition, and now I have the problem that, even though the game
starts fine, it won't react to any mouse-clicks (or keyboard input) at all.
Moving the ingame cursor is fine, but I have to change tty every time and send a sigkill
(it doesn't even care about sigterms) just to get back to my desktop.

Could anyone please suggest a way for me to track down the cause for this problem,
as I have almost zero SDL knowledge.
Thank you very much in advance!
« Last Edit: June 12, 2011, 09:20:01 pm by Ancurio »

Offline GMMan

  • Giant Bit
  • ******
  • Posts: 254
  • "Uh... I'll be right here after you're done..."
    • View Profile
Re: [Linux] mouse clicks/keyboard not recognized
« Reply #1 on: June 11, 2011, 12:19:15 am »
You'll need to update the scripts. Achurch made extensive changes to the scripting system, so you'll need to get the latest scripts for things to work right. It's included in mercurial clones under the directory game-scripts.
Follow me on Twitter: @gmman_bzflag

Offline Ancurio

  • Mini Bit
  • **
  • Posts: 3
    • View Profile
Re: [Linux] mouse clicks/keyboard not recognized
« Reply #2 on: June 12, 2011, 02:05:36 pm »
Hey, first of thanks for the quick reply^^

So I did as you told me, and now the state of my game is the following:
-Left clicking works, so I can finally navigate the menus
-At first it seemed like the Keyboard didn't work, but then I discovered that all Keybindings were reset to "0".
 Most of them I could reassign properly, except for the right mouse button and ESC.
Thanks to your advice the game is now quasi playable, but it is really weird that it won't let me reassign those two buttons..
Whenever try to set an action to RMB, it just returns to the previous binding,
when I try it with ESC (for getting into the menu), it makes a noise as if I just canceled the binding.
Did anyone else ever have this sort of experience?

Offline GMMan

  • Giant Bit
  • ******
  • Posts: 254
  • "Uh... I'll be right here after you're done..."
    • View Profile
Re: [Linux] mouse clicks/keyboard not recognized
« Reply #3 on: June 12, 2011, 04:06:57 pm »
You might have your usersettings.xml reset. It's a known problem with Windows builds, but I haven't tried with an open source Linux build. There should be another usersettings.xml file in the game folder, either named default_usersettings.xml or usersettings-1.xml. Overwrite your original, and try again. If that doesn't work, you'll have to manually edit the file to get the key binding you want.
Follow me on Twitter: @gmman_bzflag

Offline Ancurio

  • Mini Bit
  • **
  • Posts: 3
    • View Profile
Re: [Linux] mouse clicks/keyboard not recognized
« Reply #4 on: June 12, 2011, 09:19:10 pm »
I found something named "default-1.xml" in my windows steam version,
which had the desired presets in it. Now it all works beautifully!

Again, thank you so much! ^^