International keyboards and CTRL

Hello,

How is it possible to catch CTRL modified scandinavian keys? My
original thought was that I’d look at the modifier bits and the
unicode value. This works for ALT modified keys[1], but on this
system (Win95, SDL1.2.5) the CTRL-? key sequence (that’s CTRL-) gives a keysym structure with:

sym = 39 = ASCII '
unicode = 0
mod = 0x40 = LCTRL

CTRL-? (CTRL-) on the other hand gives

sym = 91 = ASCII [
unicode = 27
mod = 0x40

My second related question is: is there any way to get the
unmodified but unicode converted character, and if so what is it?
Currently the unicode field for CTRL- keys is in the range
1…26, but that leaves no provision for international keys.

Best Regards,

Joonas Pihlaja

[1] Only works for left-ALT modified keys, not for AltGr modified
ones, but that’s another question.

P.S. An online searchable archive of this list would be most
appreciated – downloading 85MB of archives over a modem line
isn’t feasible for me. :wink:

Hello,

How is it possible to catch CTRL modified scandinavian keys?

This has been entered into bugzilla:
https://bugzilla.libsdl.org/show_bug.cgi?id=62

I think this will be taken care of with the keysym revamp for 1.3,
but I’ll leave it open so we make sure to test it when that’s in.

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment