[SDL] SDLKey wiki question

Sylvain Beucler beuc at beuc.net
Sat Feb 16 04:30:48 PST 2008


On Sat, Feb 16, 2008 at 04:25:12AM +0100, David Olofson wrote:
> On Friday 15 February 2008, Sylvain Beucler wrote:
> > > > And using a French keyboard and not enabling Unicode will not
> > > > yield SDLK_1  
> > > > when pressing shift-&?
> > 
> > This will trigger SDLK_LSHIFT, then SDLK_AMPERSAND.
> > 
> > > I'm not sure, I don't have a French keyboard to test with.
> > 
> > $ setxkbmap fr
> > :)
> 
> Yeah, that should work, unless these keyboards actually send different 
> scan codes.
> 
> (The only keyboards I know of that do that are some special "no 
> configuration" Dvorak keyboards that do this to work around the fact 
> that some systems don't have Dvorak keymaps.)

Yes, I could precise that it works for US<->FR mapping, and for this
particular case (top 1-0 digits and letters). The behavior of weird
keys such as the '</>' french key is a different story ;)

-- 
Sylvain


More information about the SDL mailing list