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
src
|
|
@ -869,6 +869,16 @@ void Graphics::setFullscreen(bool value)
|
|||
p->threadData->ethread->requestFullscreenMode(value);
|
||||
}
|
||||
|
||||
bool Graphics::getShowCursor() const
|
||||
{
|
||||
return p->threadData->ethread->getShowCursor();
|
||||
}
|
||||
|
||||
void Graphics::setShowCursor(bool value)
|
||||
{
|
||||
p->threadData->ethread->requestShowCursor(value);
|
||||
}
|
||||
|
||||
Scene *Graphics::getScreen() const
|
||||
{
|
||||
return &p->screen;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue