diff options
author | Antonio Ospite <ospite@studenti.unina.it> | 2013-12-16 04:51:47 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-12-16 05:13:32 -0500 |
commit | 7d0e6192c2f36139e4aa5e4107f4d7fb56d9f290 (patch) | |
tree | d6cfbf03d30d01613af947ee46e16a2402f3f191 /Documentation/input | |
parent | e585c40ba19b155150f17124a308ac06e26d424a (diff) |
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: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/input')
-rw-r--r-- | Documentation/input/joystick-api.txt | 2 | ||||
-rw-r--r-- | Documentation/input/joystick.txt | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/input/joystick-api.txt b/Documentation/input/joystick-api.txt index c507330740cd..f95f64838788 100644 --- a/Documentation/input/joystick-api.txt +++ b/Documentation/input/joystick-api.txt | |||
@@ -16,7 +16,7 @@ joystick. | |||
16 | 16 | ||
17 | By default, the device is opened in blocking mode. | 17 | By default, the device is opened in blocking mode. |
18 | 18 | ||
19 | int fd = open ("/dev/js0", O_RDONLY); | 19 | int fd = open ("/dev/input/js0", O_RDONLY); |
20 | 20 | ||
21 | 21 | ||
22 | 2. Event Reading | 22 | 2. Event Reading |
diff --git a/Documentation/input/joystick.txt b/Documentation/input/joystick.txt index 304262bb661a..8d027dc86c1f 100644 --- a/Documentation/input/joystick.txt +++ b/Documentation/input/joystick.txt | |||
@@ -116,7 +116,7 @@ your needs: | |||
116 | For testing the joystick driver functionality, there is the jstest | 116 | For testing the joystick driver functionality, there is the jstest |
117 | program in the utilities package. You run it by typing: | 117 | program in the utilities package. You run it by typing: |
118 | 118 | ||
119 | jstest /dev/js0 | 119 | jstest /dev/input/js0 |
120 | 120 | ||
121 | And it should show a line with the joystick values, which update as you | 121 | And it should show a line with the joystick values, which update as you |
122 | move the stick, and press its buttons. The axes should all be zero when the | 122 | 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 | some analog joysticks, that either do not use linear resistors, or if you | 136 | some analog joysticks, that either do not use linear resistors, or if you |
137 | want better precision, you can use the jscal program | 137 | want better precision, you can use the jscal program |
138 | 138 | ||
139 | jscal -c /dev/js0 | 139 | jscal -c /dev/input/js0 |
140 | 140 | ||
141 | included in the joystick package to set better correction coefficients than | 141 | included in the joystick package to set better correction coefficients than |
142 | what the driver would choose itself. | 142 | what the driver would choose itself. |
@@ -145,7 +145,7 @@ what the driver would choose itself. | |||
145 | calibration using the jstest command, and if you do, you then can save the | 145 | calibration using the jstest command, and if you do, you then can save the |
146 | correction coefficients into a file | 146 | correction coefficients into a file |
147 | 147 | ||
148 | jscal -p /dev/js0 > /etc/joystick.cal | 148 | jscal -p /dev/input/js0 > /etc/joystick.cal |
149 | 149 | ||
150 | And add a line to your rc script executing that file | 150 | And add a line to your rc script executing that file |
151 | 151 | ||
@@ -556,7 +556,7 @@ interface, and "old" for the "0.x" interface. You run it by typing: | |||
556 | 556 | ||
557 | 5. FAQ | 557 | 5. FAQ |
558 | ~~~~~~ | 558 | ~~~~~~ |
559 | Q: Running 'jstest /dev/js0' results in "File not found" error. What's the | 559 | Q: Running 'jstest /dev/input/js0' results in "File not found" error. What's the |
560 | cause? | 560 | cause? |
561 | A: The device files don't exist. Create them (see section 2.2). | 561 | A: The device files don't exist. Create them (see section 2.2). |
562 | 562 | ||