Implement "show_cursor" attribute in Graphics module

If false (the default), the system cursor is hidden
inside the game window.
This commit is contained in:
Jonas Kulla 2013-09-24 22:52:42 +02:00
parent a9454fdf9c
commit fe557bca1d
7 changed files with 105 additions and 41 deletions

View file

@ -69,17 +69,21 @@ public:
/* Called from rgss thread */
void requestFullscreenMode(bool mode);
void requestWindowResize(int width, int height);
void requestShowCursor(bool mode);
void requestTerminate();
bool getFullscreen();
bool getFullscreen() const;
bool getShowCursor() const;
void showMessageBox(const char *body, int flags = 0);
private:
void resetInputStates();
void setFullscreen(SDL_Window *, bool mode);
void updateCursorState(bool inWindow);
bool fullscreen;
bool showCursor;
volatile bool msgBoxDone;
};