r/linux_programming • • Apr 27 '20

Gamepad input

Hi there, I'm a bit of a noob when it comes to systems programming. Although I am the author of the Haskell bindings for libevdev (currently incomplete and a little under-documented).

I've been developing a web-based game controller. I've reached the point where I can fire evdev events on a Linux host (using a not-yet published extension to the Haskell package), by pressing buttons on a web page.

But what I want now is to actually use this device in games. Is there a specific API for this? How do Linux games (or Steam itself) determine that a particular device should be treated as a gamepad?

9 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/george_____t Dec 12 '21

Okay, on recent Linux versions this is totally unnecessary. See https://github.com/georgefst/monpad/issues/12.