[AD] linux hotplugging

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Line 527 of src/linux/ljoynu.c adds an inotify watch on /dev but the joystick scanning code in ljoy_scan looks in /dev/input for joysticks. inotify does not produce events for sub-directories so new js* devices added in /dev/input won't cause an inotify event to be sent due to only /dev being scanned.

Changing /dev to /dev/input on line 527 fixes this. A user in #allegro confirms it as well. Any objections to me changing this?




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/