mirror of https://github.com/nirenjan/libx52.git
Prior to this change, libx52_init needed a supported joystick to be plugged in, otherwise it would fail with LIBX52_ERROR_NO_DEVICE. This change modifies the behavior so that libx52_init would still succeed, but the application should call libx52_connect to make sure that the device handle is valid. libx52_init still tries to connect to the joystick, but absence is no longer treated as a failure. This change also modifies x52cli to check that the joystick is actually connected before calling the individual handlers. Because libx52_init no longer fails if the joystick is absent, we need to rely on the return code from libx52_connect. |
||
---|---|---|
.. | ||
libusbx52 | ||
libx52 | ||
libx52util | ||
Makefile.am |