mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
Show the system cursor when ungrabbing the mouse, so you know it's
been ungrabbed.
This commit is contained in:
parent
a65432119b
commit
23d08fae65
1 changed files with 2 additions and 0 deletions
|
@ -254,11 +254,13 @@ static const char *XLateKey(SDL_keysym *keysym, int *key)
|
||||||
|
|
||||||
static void install_grabs(void)
|
static void install_grabs(void)
|
||||||
{
|
{
|
||||||
|
SDL_ShowCursor(0);
|
||||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void uninstall_grabs(void)
|
static void uninstall_grabs(void)
|
||||||
{
|
{
|
||||||
|
SDL_ShowCursor(1);
|
||||||
SDL_WM_GrabInput(SDL_GRAB_OFF);
|
SDL_WM_GrabInput(SDL_GRAB_OFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue