Xbox/Playstation Controller Support

Describe your issue

What's the expected behaviour?

Plug in controller, play DOOM and shoot some demons

What's the current behaviour?

Plug in controller, boot up DOOM and demons laugh at me because my controller isn't working. Get killed

How to reproduce your issue?

Using a USB dongle, plug in an Xbox 360 off-brand controller

What device are you using?

On what postmarketOS version did you encounter the issue?

  • edge (master branch)

  • v22.06

  • v21.12 (supported until 2022-07-12)

  • I confirm that the issue still is present after running sudo apk upgrade -a

On what environment did you encounter the issue?

Phone environments

  • Phosh
  • Plasma Mobile
  • Sxmo (Wayland/Sway)

Other

  • No environment ("none" in pmbootstrap)
  • GNOME
  • KDE Plasma
  • Kodi
  • MATE
  • Shelli
  • Sway
  • Weston
  • Xfce4
  • fbkeyboard
  • i3wm
  • Sxmo (Xorg/Dwm)
  • console UI
  • framebufferphone
  • All of 'em (it's a kernel thing after all)

How did you get postmarketOS image?

What's the build date of the image? (in yyyy-mm-dd format)

Additional information

I am very sorry 😞 , but I am new to git stuff and I don't know how to upstream this change myself. But, the kernel config just needs some 's for xpad and hid_playstation, with support maybe as well for the Steam controller. Hopefully somebody can upstream this change... I'd like to, but I am new to the Open Source scene, and newer still to contributing, and I am not sure how to begin. 😄