mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 19:21:06 +00:00
Don't print game focus OSD message if input is -1
This commit is contained in:
parent
b4c1927e27
commit
a47dd21751
@ -2515,18 +2515,23 @@ bool command_event(enum event_command cmd, void *data)
|
||||
"Game focus is: ",
|
||||
game_focus_state ? "on" : "off");
|
||||
|
||||
if (game_focus_state) {
|
||||
if (game_focus_state)
|
||||
{
|
||||
input_driver_grab_mouse();
|
||||
video_driver_hide_mouse();
|
||||
input_driver_set_hotkey_block();
|
||||
input_driver_keyboard_mapping_set_block(1);
|
||||
if (mode != -1)
|
||||
runloop_msg_queue_push(msg_hash_to_str(MSG_GAME_FOCUS_ON),
|
||||
1, 120, true);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
input_driver_ungrab_mouse();
|
||||
video_driver_show_mouse();
|
||||
input_driver_unset_hotkey_block();
|
||||
input_driver_keyboard_mapping_set_block(0);
|
||||
if (mode != -1)
|
||||
runloop_msg_queue_push(msg_hash_to_str(MSG_GAME_FOCUS_OFF),
|
||||
1, 120, true);
|
||||
}
|
||||
|
2
deps/SPIRV-Cross
vendored
2
deps/SPIRV-Cross
vendored
@ -1 +1 @@
|
||||
Subproject commit 5c24d99ff22a25ef38e9e39985f80cf57a1e7418
|
||||
Subproject commit cc207e32c8668bfe5a5cc514394e7df8f020ecf6
|
2
deps/glslang/glslang
vendored
2
deps/glslang/glslang
vendored
@ -1 +1 @@
|
||||
Subproject commit a4a4d5e22c375d37bd286106904ef819eafff29b
|
||||
Subproject commit 2eb0986f10392a4c2365869b17b59ad79226c440
|
Loading…
x
Reference in New Issue
Block a user