Commit 7d0e6192 authored by Antonio Ospite's avatar Antonio Ospite Committed by Dmitry Torokhov

Input: joystick - refer to /dev/input/js0 in documentation

Nowadays the joystick device nodes are created under /dev/input, reflect
this in the documentation in order to make copy and paste easier for
users.
Signed-off-by: default avatarAntonio Ospite <ospite@studenti.unina.it>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent e585c40b
...@@ -16,7 +16,7 @@ joystick. ...@@ -16,7 +16,7 @@ joystick.
By default, the device is opened in blocking mode. By default, the device is opened in blocking mode.
int fd = open ("/dev/js0", O_RDONLY); int fd = open ("/dev/input/js0", O_RDONLY);
2. Event Reading 2. Event Reading
......
...@@ -116,7 +116,7 @@ your needs: ...@@ -116,7 +116,7 @@ your needs:
For testing the joystick driver functionality, there is the jstest For testing the joystick driver functionality, there is the jstest
program in the utilities package. You run it by typing: program in the utilities package. You run it by typing:
jstest /dev/js0 jstest /dev/input/js0
And it should show a line with the joystick values, which update as you And it should show a line with the joystick values, which update as you
move the stick, and press its buttons. The axes should all be zero when the move the stick, and press its buttons. The axes should all be zero when the
...@@ -136,7 +136,7 @@ joystick should be autocalibrated by the driver automagically. However, with ...@@ -136,7 +136,7 @@ joystick should be autocalibrated by the driver automagically. However, with
some analog joysticks, that either do not use linear resistors, or if you some analog joysticks, that either do not use linear resistors, or if you
want better precision, you can use the jscal program want better precision, you can use the jscal program
jscal -c /dev/js0 jscal -c /dev/input/js0
included in the joystick package to set better correction coefficients than included in the joystick package to set better correction coefficients than
what the driver would choose itself. what the driver would choose itself.
...@@ -145,7 +145,7 @@ what the driver would choose itself. ...@@ -145,7 +145,7 @@ what the driver would choose itself.
calibration using the jstest command, and if you do, you then can save the calibration using the jstest command, and if you do, you then can save the
correction coefficients into a file correction coefficients into a file
jscal -p /dev/js0 > /etc/joystick.cal jscal -p /dev/input/js0 > /etc/joystick.cal
And add a line to your rc script executing that file And add a line to your rc script executing that file
...@@ -556,7 +556,7 @@ interface, and "old" for the "0.x" interface. You run it by typing: ...@@ -556,7 +556,7 @@ interface, and "old" for the "0.x" interface. You run it by typing:
5. FAQ 5. FAQ
~~~~~~ ~~~~~~
Q: Running 'jstest /dev/js0' results in "File not found" error. What's the Q: Running 'jstest /dev/input/js0' results in "File not found" error. What's the
cause? cause?
A: The device files don't exist. Create them (see section 2.2). A: The device files don't exist. Create them (see section 2.2).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment