wgois / OIS

Official OIS repository. Object oriented Input System
https://wgois.github.io/OIS/
zlib License
254 stars 86 forks source link

Linux: scan all /dev/input/event* files for joysticks #84

Closed Bob-Z closed 1 year ago

Bob-Z commented 2 years ago

Since I updated my system to Ubuntu 22.04, joysticks are added starting from event256 file:

$ ls -l /dev/input/ ... crw-rw----+ 1 root input 13, 256 june 25 17:48 event256

Since OIS is scanning event files from event0 to event63, my joysticks are not found anymore. This pull request fix this by scanning all event files in /dev/input

Ybalrid commented 1 year ago

Oh, that is interesting

Ybalrid commented 1 year ago

I suppose old versions of Linux only had 64 of these ??