mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Fix dinput mouse grab crash without mouse
This commit is contained in:
parent
69fb4414c9
commit
178a701332
@ -938,6 +938,8 @@ static void dinput_free(void *data)
|
||||
static void dinput_grab_mouse(void *data, bool state)
|
||||
{
|
||||
struct dinput_input *di = (struct dinput_input*)data;
|
||||
if (!di->mouse)
|
||||
return;
|
||||
|
||||
IDirectInputDevice8_Unacquire(di->mouse);
|
||||
IDirectInputDevice8_SetCooperativeLevel(di->mouse,
|
||||
|
Loading…
x
Reference in New Issue
Block a user