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:
parent
a9454fdf9c
commit
fe557bca1d
7 changed files with 105 additions and 41 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue