this post was submitted on 24 Nov 2025
10 points (100.0% liked)

Programming

23594 readers
119 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

https://github.com/ZILtoid1991/iota/blob/main/source/iota/controls/polling.d#L865

I have done multiple changes, but the moment I get an event on a game controller, it'll lock up until a new event is made on the game controller. I cannot find any documentation on what to do exactly, only some vague gesturing about EV_SYN events, and that they should be handled in a certain way. And of course the usual recommendations of "but there are already libraries made to abstract OS-level stuff", except many of them often janky in more than one way (a lot of them still uses DirectInput).

top 2 comments
sorted by: hot top controversial new old
[โ€“] ZILtoid1991@lemmy.world 1 points 1 day ago (1 children)

Did some digging iin those libraries, apparently all just using the standard read() function instead of the libevdev one, and I have yet to see anything about EV_SYN, maybe this way you don't have to bother with it.

[โ€“] ZILtoid1991@lemmy.world 1 points 1 day ago

Okay, it seems like SDL does actually use EV_SYN for signaling reasons.