Author Topic: Ctrl-2, 3, 4 doesn't work!  (Read 5677 times)

v.v.b.

  • Guest
Ctrl-2, 3, 4 doesn't work!
« 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
« Last Edit: 1 January 1970, 00:00:00 by v.v.b. »

AqD

  • Guest
(No subject)
« Reply #1 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)
« Last Edit: 1 January 1970, 00:00:00 by AqD »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #2 on: 30 January 2008, 13:13:20 »
It's fixed and in the official svn now.( 3.0.0 beta5-6 )
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #3 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.
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

MatzeB

  • Guest
(No subject)
« Reply #4 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
« Last Edit: 1 January 1970, 00:00:00 by MatzeB »

daniel.santos

  • Guest
(No subject)
« Reply #5 on: 6 February 2008, 05:51:12 »
This has been broken for me as well, but is working now, so thanks whomever fixed it.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #6 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


What is this? I though we were talking about group assingment of units.
« Last Edit: 1 January 1970, 00:00:00 by martiño »

daniel.santos

  • Guest
(No subject)
« Reply #7 on: 6 February 2008, 16:09:22 »
This post has multiple personalities.  One of them is a sound/music problem. :)
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »