kozec / dumbxinputemu

xinput reimplementation compatibile with DirectInput controllers
GNU Lesser General Public License v3.0
133 stars 12 forks source link

Doesn't work for joydev devices #10

Closed Benjamin-L closed 6 years ago

Benjamin-L commented 6 years ago

It looks like this had previously been configured to ignore any joystick device containing the string (js) (dbc30fe07f945af43540be27f49a4bd5ebb9feb4). This works as intended, assuming that an evdev device for the same joystick actually exists, but if there is no evdev device then it will fail to detect the joystick at all. I'm not really sure how common that situation is, but I have been having issues with getting a joydev device, but not evdev, so it would be nice to have this behave a little smarter when that happens.

kozec commented 6 years ago

Ok, but what would smarter way to ignore all joydev devices look? :D

I can add some environment variable to toggle that skip, but I'm not entirely sure I understand issue here. Do you have gamepad that works only with joydev?

kozec commented 6 years ago

I've added check for two environment variables: