June 2018
Intermediate to advanced
484 pages
11h 36m
English
After installing the packages, we will connect our joystick to the computer system and check whether the joystick is recognized or not by using the following command:
$ ls /dev/input/
This will produce an output showing that all device nodes in the system correspond to input devices, as shown in the following screenshot:

You will find that the js0 device node was created by the driver when the joystick was plugged into the computer system. Next, we can use the jstest command so we can check whether it is working or not:
$ sudo jstest /dev/input/js0
The output is shown in the following screenshot: