German Umlaute in monkey with GetChar()

About Monkey 2 Forums Monkey 2 Programming Help German Umlaute in monkey with GetChar()

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Henry1975 1 year, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9136

    Henry1975
    Participant

    Hello everyone.

    Actually I’m converting some old code from BlitzMax to monkey and I got stuck with the scanning of german umlaute with GetChar().
    In BlitzMax it worked well, monkey doesn’t get the right scancodes.

    Strange thing is, the key event finds the correct ones:
    ä = 228 (KeyEvent)
    ä = 195 (GetChar)

    ö = 246 (KeyEvent)
    ö = 195 (GetChar)

    ü = 252 (KeyEvent)
    ü = 195 (GetChar)

    Anyone able to help me in this case?

    Thanks in advance
    Henry

    #9145

    Mark Sibly
    Keymaster

    I’m not sure what you mean by ‘the key event finds the correct ones’ – what key event?!?

    #9146

    Mark Sibly
    Keymaster

    Found it – fix now up at github in the develop branch!

    You really only need to update the modules/mojo/input/keyboard.monkey2 file. You’ll also need to update modules.

    #9147

    Henry1975
    Participant

    Thank you very much Mark!

    I did a dirty workaround with event.Key to catch the wrong GetChar() values. Worked but as I said, it was dirty.
    I’ll fetch the developer branch and rework my code.

    Big thanks!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.