$ in the gui
by abc · in Technical Issues · 05/02/2003 (2:57 pm) · 18 replies
Hi
Anyone more then me that is having problems with typeing $ in the GUI for Torque?
It seams like I cannot use "Alt Gr". (Swedish keyboard-layout is what I have).
I'm currently using a trick to enter '$' in the GUI, I print it in any app then I just copy it over, but it seams quite backwards... but anyway, does anyone know what I can do to fix it?
Anyone more then me that is having problems with typeing $ in the GUI for Torque?
It seams like I cannot use "Alt Gr". (Swedish keyboard-layout is what I have).
I'm currently using a trick to enter '$' in the GUI, I print it in any app then I just copy it over, but it seams quite backwards... but anyway, does anyone know what I can do to fix it?
About the author
#2
I cannot get that char directly from the keyboard because it seams like I cannot use the 'Alt' + another key.
I can use 'Shift' + another key but because '$' is 'Alt' + '4' on a Swedish keyboard layout I cannot get that char from my keyboard in the "Gui Editor".
Works good if I print it in the actual .cs file, but I'm a newbie to the Torque engine so I don't wanna get into that right know... I will probably do that later, when I know the engine itself better.
Seams like I cannot do a '?' either from my keyboard... this sucks, '?' is quite important in "ingame chat" I think. My keyboard layout works fine in all other apps.
05/03/2003 (2:11 pm)
yeah, but it's in the actual "GUI Editor".I cannot get that char directly from the keyboard because it seams like I cannot use the 'Alt' + another key.
I can use 'Shift' + another key but because '$' is 'Alt' + '4' on a Swedish keyboard layout I cannot get that char from my keyboard in the "Gui Editor".
Works good if I print it in the actual .cs file, but I'm a newbie to the Torque engine so I don't wanna get into that right know... I will probably do that later, when I know the engine itself better.
Seams like I cannot do a '?' either from my keyboard... this sucks, '?' is quite important in "ingame chat" I think. My keyboard layout works fine in all other apps.
#3
05/03/2003 (9:23 pm)
That's odd. As far as I know, it should be working fine regardless of the keyboard layout. Try toggling whether DirectInput is on or off in prefs.cs.
#4
$pref::Input::DirectInput = "1";
and disable it with a "0";
that did not change anything :(
05/04/2003 (6:13 am)
I guess I enable it with:$pref::Input::DirectInput = "1";
and disable it with a "0";
that did not change anything :(
#5
05/04/2003 (9:09 am)
Are you running torque on Windows or Linux?
#6
05/04/2003 (9:19 am)
I'm running torque on Linux.
#7
www.garagegames.com/projectmanager/issue.php?qis=256
I can't fix these issues because I don't have an appropriate test system. Hoping that someone in the international community will step up and fix them :)
05/04/2003 (9:42 am)
Torque on linux has problems with non-US keyboards. I created a Project Manager bug for it: www.garagegames.com/projectmanager/issue.php?qis=256
I can't fix these issues because I don't have an appropriate test system. Hoping that someone in the international community will step up and fix them :)
#8
05/04/2003 (11:06 am)
Sounds good, hopefully someone will find the problem.
#9
05/04/2003 (12:38 pm)
Doh! This is what I get for not noticing the category.
#10
05/04/2003 (4:07 pm)
@John: I might give it a go... I'll talk to you about it later on.
#11
I guess the error is somewhere in sdl-source/video/x11/x11_events.c or whatever the file was named. In that file there is a Translate function that is meant to translate the x11 keymap into the SDL keymap I guess the error is there somewhere.
Could anyone see if you could find the error?
05/08/2003 (2:17 am)
After I have looked into this a little more I see that it's probably not a Torque error/bug it's in SDL. I created a simple test program with SDL that checked for the keysyms of all keys that I pressed on. When I pressed "Alt Gr" it said it had keysym 0 and keyname Unknown. I looked in the source in SDL but I didn't see any errors :(I guess the error is somewhere in sdl-source/video/x11/x11_events.c or whatever the file was named. In that file there is a Translate function that is meant to translate the x11 keymap into the SDL keymap I guess the error is there somewhere.
Could anyone see if you could find the error?
#12
05/08/2003 (7:24 am)
Yes, the problem is in SDL, we are looking into a possible solution, I already added some bindings to torque that make some keys on my spanish keyboard to work, the weird part is that ALT GR does work on my torque/SDL-Test application. It won't print any special symbols on torque, but for example ALT + C to change camera mode works... can you try that?
#13
05/09/2003 (9:00 am)
ALT + C works for me
#14
05/09/2003 (9:46 am)
I experimented with some UNICODE stuff and I got it to "work" I was able to use the modifiers with another key correctly but not the modifiers themself only, so I stopped the tweaking :)
#15
05/10/2003 (2:33 pm)
I checked in Xavier's code and some of my own. Please let me know if this fixes your problems (or causes more problems :)
#16
05/11/2003 (5:22 am)
Actually I did not notice any diffrents :(
#17
05/11/2003 (7:54 am)
Ok, so the problem is still that the Alt-Gr key doesn't work? But you mentioned that you were able to get it to working with some experimental code? What changes did you make in that code?
#18
well, I enabled UNICODE and used it instead of a regular SDLKey, so I replaced the functions that "converted" a SDLKey to a torque key to a function that "converted" a UNICODE value to a torque key. I did some other changes to but I can't remember what those changes was, I gave up and deleted the code :)
05/11/2003 (8:03 am)
yeah same problem.well, I enabled UNICODE and used it instead of a regular SDLKey, so I replaced the functions that "converted" a SDLKey to a torque key to a function that "converted" a UNICODE value to a torque key. I did some other changes to but I can't remember what those changes was, I gave up and deleted the code :)
James "Nycto" Frasca
Not sure if that works in Torque, though