1.2.10 Redefined Keys?

Hello!

I just upgraded SDL from 1.2.9 and noticed a few differences with handling keys
in my program.
I’m using the ‘^’ key (under the Escape key) to toggle a quake-like console,
with 1.2.9 this used to be the SDLK_BACKQUOTE, now with 1.2.10 I had to redefine
it to SDLK_BACKSLASH.
Another thing I noticed is that in order to type a ‘?’ key in my app, I now have
to use Left-Shift+’?’ to actually get the ‘?’ unicode in SDLKeyEvent.

Here’s what I get when pressing the keys:
? -> code=91, unicode=223
Shift+? -> code=91,unicode=63

What could I be doing wrong or is it just a regular SDL change? I’m using
WindowsXP and a german keyboard by the way.

This was a bug in the switch from DirectInput to WinDib. It has been
fixed in SVN (post-1.2.10) and should be included in any wrap-up release
as well as anything in the 1.3 tree from what I understand.

So your best bet right now is to test against SVN.

–William

Glitch wrote:> Hello!

I just upgraded SDL from 1.2.9 and noticed a few differences with handling keys
in my program.
I’m using the ‘^’ key (under the Escape key) to toggle a quake-like console,
with 1.2.9 this used to be the SDLK_BACKQUOTE, now with 1.2.10 I had to redefine
it to SDLK_BACKSLASH.
Another thing I noticed is that in order to type a ‘?’ key in my app, I now have
to use Left-Shift+’?’ to actually get the ‘?’ unicode in SDLKeyEvent.

Here’s what I get when pressing the keys:
? -> code=91, unicode=223
Shift+? -> code=91,unicode=63

What could I be doing wrong or is it just a regular SDL change? I’m using
WindowsXP and a german keyboard by the way.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

  • Glitch – Wednesday 24 May 2006 11:02:

I’m using the ‘^’ key (under the Escape key) to toggle a quake-like console,
with 1.2.9 this used to be the SDLK_BACKQUOTE, now with 1.2.10 I had to redefine
it to SDLK_BACKSLASH.

See this thread: http://www.libsdl.org/pipermail/sdl/2006-April/074043.html

FlightGear is meanwhile adapted. The question why backwards compatibility is
broken in a minor release has yet to be answered.

m.