--- src/platform/sdl2-platform.c +++ src/platform/sdl2-platform.c @@ -144,7 +144,8 @@ it returns false and an error event. This function also processes platform-specific inputs/behaviours. */ static boolean pollBrogueEvent(rogueEvent *returnEvent, boolean textInput) { - static int mx = 0, my = 0; + // no screen gnat + //static int mx = 0, my = 0; returnEvent->eventType = EVENT_ERROR; returnEvent->shiftKey = _modifierHeld(0); @@ -208,7 +209,10 @@ static boolean pollBrogueEvent(rogueEvent *returnEvent, boolean textInput) { returnEvent->param1 = c; // ~ printf("textinput %s\n", event.text.text); return true; - } else if (event.type == SDL_MOUSEBUTTONDOWN || event.type == SDL_MOUSEBUTTONUP) { + } + // ignore screen gnat + /* + else if (event.type == SDL_MOUSEBUTTONDOWN || event.type == SDL_MOUSEBUTTONUP) { if (event.button.button == SDL_BUTTON_LEFT || event.button.button == SDL_BUTTON_RIGHT) { if (event.type == SDL_MOUSEBUTTONDOWN && event.button.button == SDL_BUTTON_LEFT) { returnEvent->eventType = MOUSE_DOWN; @@ -237,6 +241,7 @@ static boolean pollBrogueEvent(rogueEvent *returnEvent, boolean textInput) { ret = true; } } + */ } return ret; @@ -267,6 +272,9 @@ static void _gameLoop() { if (SDL_Init(SDL_INIT_VIDEO) < 0) sdlfatal(__FILE__, __LINE__); + // hide the screen gnat + SDL_ShowCursor(0); + if (!(IMG_Init(IMG_INIT_PNG) & IMG_INIT_PNG)) imgfatal(__FILE__, __LINE__); initTiles();