MegaGlest Forum

Archives (read only) => Vanilla Glest => Linux and other ports => Topic started by: v.v.b. on 8 March 2007, 16:29:50

Title: Ctrl-2, 3, 4 doesn't work!
Post by: v.v.b. on 8 March 2007, 16:29:50
Under linux in Glest 2.0.0.0 doesn't work Ctrl-2, 3, 4...
Only works Ctrl-1.

And one more thing. Is Glest under linux is using OSS? I can't run Glest if I'm listening music on Audacious (XMMS or something).
 Is it planning to switch to ALSA?

Vadim V. Balashoff
Title:
Post by: AqD on 25 August 2007, 10:18:14
It's probably a bug in SDL.

Here is the patch (you need to rebuild glest from source):

Code: [Select]
--- source/shared_lib/sources/platform/sdl/window.cpp.old 2005-10-22 18:37:00.000000000 +0800
+++ source/shared_lib/sources/platform/sdl/window.cpp 2007-08-24 22:59:17.000000000 +0800
@@ -223,6 +223,26 @@
  return vkReturn;
  case SDLK_BACKSPACE:
  return vkBack;
+ case SDLK_0:
+                        return '0';
+ case SDLK_1:
+                        return '1';
+ case SDLK_2:
+                        return '2';
+ case SDLK_3:
+                        return '3';
+ case SDLK_4:
+                        return '4';
+ case SDLK_5:
+                        return '5';
+ case SDLK_6:
+                        return '6';
+ case SDLK_7:
+                        return '7';
+ case SDLK_8:
+                        return '8';
+ case SDLK_9:
+                        return '9';
  default:
  char c = (char) keysym.unicode;
  if(c > 0)
Title:
Post by: titi on 30 January 2008, 13:13:20
It's fixed and in the official svn now.( 3.0.0 beta5-6 )
Title:
Post by: hailstone on 30 January 2008, 22:27:55
I am able to run Glest while playing music in another program using ALSA on OpenSUSE 10.3.
Title:
Post by: MatzeB on 31 January 2008, 09:45:36
(the CTRL+ stuff is not an SDL bug BTW, but some stupid directx conventions that glest expects and that I didn't emulate correctly in the SDL port). Anyway about the music: glest is using the OpenAL library for sound on linux, so you should configure that to your needs. Take a look here:

http://supertux.lethargik.org/wiki/OpenAL_Configuration (http://supertux.lethargik.org/wiki/OpenAL_Configuration)
Title:
Post by: daniel.santos on 6 February 2008, 05:51:12
This has been broken for me as well, but is working now, so thanks whomever fixed it.
Title:
Post by: martiƱo on 6 February 2008, 14:24:27
Quote from: "MatzeB"
(the CTRL+ stuff is not an SDL bug BTW, but some stupid directx conventions that glest expects and that I didn't emulate correctly in the SDL port). Anyway about the music: glest is using the OpenAL library for sound on linux, so you should configure that to your needs. Take a look here:

http://supertux.lethargik.org/wiki/OpenAL_Configuration (http://supertux.lethargik.org/wiki/OpenAL_Configuration)


What is this? I though we were talking about group assingment of units.
Title:
Post by: daniel.santos on 6 February 2008, 16:09:22
This post has multiple personalities.  One of them is a sound/music problem. :)