MegaGlest Forum
Archives (read only) => Vanilla Glest => Linux and other ports => Topic started 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
-
It's probably a bug in SDL.
Here is the patch (you need to rebuild glest from source):
--- 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)
-
It's fixed and in the official svn now.( 3.0.0 beta5-6 )
-
I am able to run Glest while playing music in another program using ALSA on OpenSUSE 10.3.
-
(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)
-
This has been broken for me as well, but is working now, so thanks whomever fixed it.
-
(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.
-
This post has multiple personalities. One of them is a sound/music problem. :)