libx52/utils
nirenjan d9ae8d4b79 Add connect/disconnect methods to libx52
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.
2020-05-23 02:18:40 -07:00
..
cli Add connect/disconnect methods to libx52 2020-05-23 02:18:40 -07:00
test Add check for LED support in x52test 2020-05-22 11:15:27 -07:00
Makefile.am Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00