Add more reliable mouse/keyboard grabbing to fix keyboard input not working in ui in some games

This commit is contained in:
dec05eba
2024-11-30 22:38:03 +01:00
parent 6cde892148
commit 9661f0b823
2 changed files with 20 additions and 12 deletions

View File

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