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/Tiwenty Apr 29 '20

Thanks, it's good to know! But I have no problem using C for what I'm doing, it's just sending a few initialization packets over HID, and parsing the data packets (60 per second haha).