Game Development Community

Text input with an foreign keyboard does not work properly

by Pascal Ognibene · in Torque Game Engine · 07/05/2005 (2:08 am) · 9 replies

Hi all,

I'm using Torque 1.3 on a Linux system with
an AZERTY keyboard (french keyboard). The problem
I have occurs as well with most of European keyboards
like QWERTZ and so on. It does not happen on Windows,
though dead keys are not managed properly on Windows.

I can't type in accented letters (like a ´ in html). Can't
show here example because the forum eats these letters.

Also most of the keyboard keys are filtered. I can roughly enter
only a-z A-Z + some signs.

Looking at Torque C++ code I've seen that torque maps
SDL 8 bits key codes to internal codes. Unicode information
is ignored. The translation seems
to be borked somewhere.

I can display these chars in the GUI editor if I copy&paste them,
so there must be in the font.

Finally, my questions :

-Is it a known problem and if yes, is there a fix for it?
-Looking at the code I assume that Torque GUI font is
8 bit only:
-where is it located?
-How to get the charset in it?

With these infos I think I can hack the engine with another
translation table and SDL capabilities. But of course only if
this is not fixed yet.

Any help/info is welcome.

Pascal

#1
04/17/2007 (5:49 am)
Hi,

the problem with foreign keyboards has not been solved with TGE 1.4.2.
I am using a german keyboard and cannot enter the characters +#~^ etc,
also not in the console.

Felix
.
#2
07/24/2007 (7:30 am)
I have the same problem, anyone get the solution or have any idea to solver this ?
#3
08/15/2007 (9:13 am)
Same here not sure where to dig to solve it. Its maybe an SDL issue.
#4
09/06/2007 (6:45 am)
I run into similar trouble with a US keyboard & Windows set to the Dvorak layout. The key remapping under options sometimes works and sometimes gives the wrong result (e.g. pressing the Dvorak O key returns an R),
#5
09/09/2007 (9:07 am)
We have the same issue with Penguins Arena. A lot of french players are used to play with "ZQSD" (azerty keyboard) and it's messed up in the option screen.
#6
09/29/2007 (7:46 am)
I also noticed a key mapping issue with Windows, this is not affecting at all Mac TGE - one more time superiority of the Mac is proven ;-)

I have experienced this with either our own game: Darkwind: War On Wheels and with Bank's AfterWorld MMO.

I'm using an AZERTY keyboard, being French as well.

Main Screen mapping: switching 'Z' instead of 'W' doesn't work, my 'Z' key being recognized as the 'W'. Same goes for 'A', 'Q'.
When using Control 'O', while in game, mapping is working, meaning TGE is using a different input system... unless it is a Windows System (XP sp2 in my case) problem?
#7
09/29/2007 (7:56 am)
Shephan: the only difference between "while in game" and "in main screen" that when you enter the game the
$enableDirectInput = 1;
   activateDirectInput();
called.
I'm sure if you activate Direct Input while on your gui, it will work.
#9
11/07/2007 (8:41 am)
By the way, we used the idea of Bank in our last update of Penguins Arena (v1.2) and everything works now.
Thanks!