only small problem is that alt+enter will switch fullscreen and end
editing at the same time
}
while (SDL_PollEvent(&evenement)) {
}
while (SDL_PollEvent(&evenement)) {
+ if (!sdlEventProc(evenement)) {
+ tryquit = 1;
+ break;
+ }
switch (evenement.type) {
case SDL_TEXTEDITING:
/* FIXME - We should handle this for complete input method support */
switch (evenement.type) {
case SDL_TEXTEDITING:
/* FIXME - We should handle this for complete input method support */
extern const char **creatureskin[2];
extern const char **creatureskin[2];
+SDL_bool sdlEventProc(const SDL_Event &e);
+
+
SDL_SetWindowFullscreen(sdlwindow, flags);
}
SDL_SetWindowFullscreen(sdlwindow, flags);
}
-static SDL_bool sdlEventProc(const SDL_Event &e)
+SDL_bool sdlEventProc(const SDL_Event &e)
{
switch (e.type) {
case SDL_QUIT:
{
switch (e.type) {
case SDL_QUIT: