mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 19:21:09 +00:00
Merge pull request #11284 from sonninnos/dinput-mousegrab-fix
Fix dinput mouse grab crash without mouse
This commit is contained in:
commit
2a374755f4
@ -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