Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: sovka on Sat 11/03/2006 00:26:13

Title: Parser Problem with QWERTZ-Keyboard
Post by: sovka on Sat 11/03/2006 00:26:13
Hi!

I'm working on a German parser and encountered a problem. While I could add most special characters using SCI Studio, it didn't work with the lowercase 'ü', as AGS doesn't react to the key press in the first place.

Now, I think this has to do with the differences between the QWERTZ and QWERTY-keyboard, e.g. I replaced ':' with 'Ö' or '-' with 'ß' and so on. This method worked for all special characters except the lowercase 'ü'!

Unfortunately I'm no expert on this, but could it be that the QWERTY has less keys than the QWERTZ-keyboard, missing the one that ended up as the lowercase 'ü'? Has it something to do with the Extended ASCII Codes?

I know of this tracker entry (http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=119) and I have read this thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=13300.0), but I think my problem is a bit different.

So, is there workaround? Thanks for any help.
Title: Re: Parser Problem with QWERTZ-Keyboard
Post by: Pumaman on Sat 11/03/2006 11:00:07
Can you clarify where the problem is? Are you using on_key_press to process keys from the keyboard such as 'Ö' and change them to a ':', and you're saying that on_key_press doesn't get called with the 'ü'?

If that's not the problem, could you be more specific about where the problem lies?
Title: Re: Parser Problem with QWERTZ-Keyboard
Post by: sovka on Wed 30/08/2006 15:04:40
Sup!

Wow, I'm still working on this.

You basically got it right, but what I actually did was to replace the characters using a font editor after I found the corresponding ones.

Maybe it helps if list them.


QWERTZ (input)     key code     QWERTY (what AGS displays)

    àŸ                 45             -                 
    Ã,,                 34             "
    ä                 44             '
    Ö                 58             :
    ö                 59             ;
    Ü                123             {
    ü                            [nothing]
    Y                 90             Z
    y                122             z
    Z                 89             Y
    z                121             y


According to this ASCII chart (http://www.cdrummond.qc.ca/cegep/informat/Professeurs/Alain/files/ascii.htm) the key code for "ü" should be 129, but AGS doesn't react to that.

So yeah, to make a working parser I need AGS to recognise the "ü" key.
Title: Re: Parser Problem with QWERTZ-Keyboard
Post by: SSH on Wed 30/08/2006 15:58:23
Have you tried checking with is_key_pressed?