From 9661f0b823e7b63c4ddbcd8042c559cd5a7f7773 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 30 Nov 2024 22:38:03 +0100 Subject: Add more reliable mouse/keyboard grabbing to fix keyboard input not working in ui in some games --- include/Overlay.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/Overlay.hpp b/include/Overlay.hpp index bf49a42..bfa8db4 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -60,6 +60,7 @@ namespace gsr { void xi_setup(); void handle_xi_events(); void process_key_bindings(mgl::Event &event); + void grab_mouse_and_keyboard(); void xi_setup_fake_cursor(); void xi_grab_all_devices(); void xi_warp_pointer(mgl::vec2i position); -- cgit v1.2.3