Is there any way to fix libevdev's locking issues?
from ZILtoid1991@lemmy.world to programming@programming.dev on 24 Nov 21:30
https://lemmy.world/post/39257940
from ZILtoid1991@lemmy.world to programming@programming.dev on 24 Nov 21:30
https://lemmy.world/post/39257940
github.com/ZILtoid1991/iota/blob/…/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).
#programming
threaded - newest
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 aboutEV_SYN, maybe this way you don’t have to bother with it.Okay, it seems like SDL does actually use
EV_SYNfor signaling reasons.