CVS update (hotkeys)

The new SDL 1.1 snapshot has hotkey support:
http://www.devolution.com/~slouken/SDL/cvs.html

Enjoy!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

I removed keyboard hotkey functions from the SDL 1.1 API, and added
the function SDL_WM_ToggleFullScreen() which is currently only implemented
on the X11 video driver.

The ALT-ENTER functionality can be implemented with the following code:

int Handle_AltEnter(const SDL_Event *event)
{
if ( event->type == SDL_KEYDOWN ) {
if ( (event->key.keysym.sym == SDLK_RETURN) &&
(event->key.keysym.mod & KMOD_ALT) ) {
SDL_WM_ToggleFullScreen(SDL_GetVideoSurface());
return(0);
}
}
return(1);
}

SDL_SetEventFilter(Handle_AltEnter);

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec