[SDL] Re: Numeric keypad under win32

sdl-news at lokigames.com sdl-news at lokigames.com
Mon Oct 30 10:47:53 PST 2000


"Enzo" <enzogupi at interfree.it> wrote in message
news:20001030100853.A902 at tiscalinet.it...
> Hello, I'm reposting a mail that I've sent a few days ago,
> cause I've got no answers.
>
> >Under WIN32 numeric keypad keys don't return
> >the same codes as under linux.
> >If you run the "checkkey" test program you can check that
> >return codes are not the same (in event.key.keysym.unicode).
> >
> >I patched it in my program, but I really think
> >that it's a little SDL's bug (SDL must have the same
> >behaviour under different OSs). Isn't it?

So, what results are you getting?  AFAIK arrow keys don't translate to
unicode at all.  If num-lock is on, the keypad keys should translate to the
digit characters (0-9).  Remember, event.key.keysym.sym contains the actual
key, while event.key.keysym.unicode contains the translation of the key (and
only if unicode translation is enabled).


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the SDL mailing list