Skip to content

e2dk4r/gamepad_idle_inhibit

Repository files navigation

gamepad_idle_inhibit

Prevent idling for 30 seconds on any gamepad events on wayland.

For this to work your wayland compositor must support "idle-inhibit-unstable-v1".

Forked from https://github.com/e2dk4r/gamepad and adapted to wayland.

limits

  • Simultaneously 10 gamepad connections detected. So if you were able to connect 11 gamepads at same time this would behave unexpectedly.
  • Can read events from maximum of 250 gamepads.

requirements

libraries

library used for
liburing event loop and polling
libevdev detecting whether device is gamepad
wayland-client connecting to wayland display

build

meson setup build
ninja -C build
./build/gamepad

references