[SDL] ALT keys in Windows

Jeff j_post at pacbell.net
Sat Jun 18 16:44:53 PDT 2005

On Saturday 18 June 2005 04:07 pm, Bill Kendrick wrote:

> > The follow code causes the program to exit in Linux when <ALT-X> is
> > pressed. The same code in Windows ignores it and does not exit. Anyone
> > have a solution?
> In Tux Paint, we seem to have this:
>   SDLMod alt = event.key.keysym.mod & KMOD_ALT;

Thanks Bill!
It now works in both Linux and Windows.


More information about the SDL mailing list