Don't print game focus OSD message if input is -1

This commit is contained in:
twinaphex 2016-12-11 06:39:30 +01:00
parent b4c1927e27
commit a47dd21751
3 changed files with 15 additions and 10 deletions

View File

@ -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

@ -1 +1 @@
Subproject commit 5c24d99ff22a25ef38e9e39985f80cf57a1e7418
Subproject commit cc207e32c8668bfe5a5cc514394e7df8f020ecf6

@ -1 +1 @@
Subproject commit a4a4d5e22c375d37bd286106904ef819eafff29b
Subproject commit 2eb0986f10392a4c2365869b17b59ad79226c440