Don't display cursor when using gamepad

This commit is contained in:
loki
2019-12-25 20:57:23 +01:00
parent c11872f0f5
commit c3cba2bdad
7 changed files with 25 additions and 20 deletions

View File

@@ -26,11 +26,9 @@ struct input_raw_t {
uinput_t mouse_input;
display_t display;
gamepad_state_t gamepad_state;
};
//TODO: Use libevdev for keyboard and mouse, then any mention of X11 can be removed from linux_input.cpp
//TODO: Use libevdev for keyboard and mouse, then any mention of X11 can be removed from linux_evdev.cpp
struct display_attr_t {
display_attr_t() : display { XOpenDisplay(nullptr) }, window { DefaultRootWindow(display) }, attr {} {
XGetWindowAttributes(display, window, &attr);