Name: sichos-gamepad Version: 0.1.0 Release: %autorelease Summary: Lightweight native gamepad overlay daemon for SichOS License: GPL-3.0-or-later URL: https://gitlab.com/test8133536/sichos-gamepad-daemon Source0: %{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: systemd-rpm-macros Recommends: quickshell %description sichos-gamepad is a lightweight native gamepad overlay daemon for SichOS. It listens for controller Guide/Home buttons (BTN_MODE, BTN_Z, Select+Start, L3+R3) to toggle the Quickshell launcher overlay. While the launcher is open, it navigates the launcher using the D-Pad, Left Stick, and face buttons via a virtual uinput keyboard. When the launcher is closed, gamepad events pass through untouched to running games without interference. %prep %autosetup %build %set_build_flags %make_build %install %make_install PREFIX=%{_prefix} BINDIR=%{_bindir} LIBDIR=%{_prefix}/lib UNITDIR=%{_userunitdir} UDEVDIR=%{_udevrulesdir} %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_userunitdir}/%{name}.service %{_udevrulesdir}/70-%{name}.rules %changelog %autochangelog