Hyprland
Hyprland copied to clipboard
Gaming controller support
Support for binding controller events to actions (and possibly moving the mouse around with sticks) would be very useful for people in long gaming sessions wanting to quickly switch between applications/interfaces, hacked consoles running Linux, etc
Nice enhancement.
This is already possible with the software that steamdeck uses. https://github.com/Samsagax/gamescope-session
When you set it up, you are able to open any X11 application as a non-steam shortcut and set controller bindings for each application, with integration with gamescope.
For example, I've got discord and spotube, and I am able to use the guide button to use the steam deck overlay to switch between the two applications seamlessly, whilst still being able to play any game I like.
I am unsure how I would distinguish controllers from keyboards / mice. I think they're just plain old keyboards? What does wev say?
https://github.com/AntiMicroX/antimicrox another alternative and research
https://github.com/nowrep/wljoywake for research, it implements idle_inhibit_unstable_v1 for gamepads
There is a gist that reads gamepad inputs: https://gist.github.com/jasonwhite/c5b2048c15993d285130
It uses #include <linux/joystick.h> library.
It seems that Hyprland detects the gamepad as a keyboard:
Keyboard at 563f7db63840:
xbox-wireless-controller-keyboard
rules: r "", m "", l "pl", v "", o ""
active keymap: Polish
main: yes
it doesn't detect it as a keyboard... if you look at evtest there are 3 devices, hyprland detects 2 of them.
i've been trying to get it to notice it, but so far not having any luck