diff options
author | Jean-François Têtu <jean-francois.tetu@savoirfairelinux.com> | 2018-01-18 18:58:18 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-01-19 12:35:23 -0500 |
commit | a3f061bc26e07fecc4e3c2ed12d5d6947d996036 (patch) | |
tree | be1a5d68f9790b46e3861b7cf9b63f5477967cfc | |
parent | deb106beb7efebd43a98d0fa84b3709a862da20c (diff) |
Input: fix small typos in force feedback documentation
Fix small typos in the Instructions and Uploading sections. Fix a typo in
the start/stop effect example usage code.
Signed-off-by: Jean-François Têtu <jean-francois.tetu@savoirfairelinux.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | Documentation/input/ff.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/input/ff.rst b/Documentation/input/ff.rst index 26d461998e08..0c02e87ee86d 100644 --- a/Documentation/input/ff.rst +++ b/Documentation/input/ff.rst | |||
@@ -31,7 +31,7 @@ To enable force feedback, you have to: | |||
31 | 31 | ||
32 | Before you start, let me WARN you that some devices shake violently during the | 32 | Before you start, let me WARN you that some devices shake violently during the |
33 | initialisation phase. This happens for example with my "AVB Top Shot Pegasus". | 33 | initialisation phase. This happens for example with my "AVB Top Shot Pegasus". |
34 | To stop this annoying behaviour, move you joystick to its limits. Anyway, you | 34 | To stop this annoying behaviour, move your joystick to its limits. Anyway, you |
35 | should keep a hand on your device, in order to avoid it to break down if | 35 | should keep a hand on your device, in order to avoid it to break down if |
36 | something goes wrong. | 36 | something goes wrong. |
37 | 37 | ||
@@ -121,7 +121,7 @@ uploaded, but not played. | |||
121 | The content of effect may be modified. In particular, its field "id" is set | 121 | The content of effect may be modified. In particular, its field "id" is set |
122 | to the unique id assigned by the driver. This data is required for performing | 122 | to the unique id assigned by the driver. This data is required for performing |
123 | some operations (removing an effect, controlling the playback). | 123 | some operations (removing an effect, controlling the playback). |
124 | This if field must be set to -1 by the user in order to tell the driver to | 124 | The "id" field must be set to -1 by the user in order to tell the driver to |
125 | allocate a new effect. | 125 | allocate a new effect. |
126 | 126 | ||
127 | Effects are file descriptor specific. | 127 | Effects are file descriptor specific. |
@@ -178,7 +178,7 @@ Control of playing is done with write(). Below is an example: | |||
178 | stop.code = effect.id; | 178 | stop.code = effect.id; |
179 | stop.value = 0; | 179 | stop.value = 0; |
180 | 180 | ||
181 | write(fd, (const void*) &play, sizeof(stop)); | 181 | write(fd, (const void*) &stop, sizeof(stop)); |
182 | 182 | ||
183 | Setting the gain | 183 | Setting the gain |
184 | ---------------- | 184 | ---------------- |