Skip to content

Commit a0093fd

Browse files
committed
docs: enhance documentation clarity by correcting button field, link paths, and minor wording.
1 parent 7259bb8 commit a0093fd

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
3. Create a pull request to `master` and assign a reviewer.
77
4. The reviewer will review your code and merge it into `master`.
88

9-
## Adding new device
9+
## Adding a new device
1010

1111
This section describes how to add support for a new SpaceMouse or similar 6-DOF device.
1212

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ with pyspacemouse.open() as device:
8686
with pyspacemouse.open(device="SpaceNavigator") as device:
8787
state = device.read()
8888

89-
# Open second device (when multiple same devices)
89+
# Open second device when multiple identical devices are connected
9090
with pyspacemouse.open(device_index=1) as device:
9191
state = device.read()
9292

@@ -164,7 +164,7 @@ with pyspacemouse.open(device_spec=custom) as device:
164164
state = device.read()
165165
```
166166

167-
See [Custom Device Configuration](./mouseApi/index.md#custom-device-configuration) for full API.
167+
See [Custom Device Configuration](./docs/mouseApi/index.md#custom-device-configuration) for full API.
168168

169169
## CLI
170170

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
3. Create a pull request to `master` and assign a reviewer.
77
4. The reviewer will review your code and merge it into `master`.
88

9-
## Adding new device
9+
## Adding a new device
1010

1111
This section describes how to add support for a new SpaceMouse or similar 6-DOF device.
1212

docs/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ with pyspacemouse.open() as device:
5454

5555
## API Reference
5656

57+
From version 2.0.0 the API has been modularized and changed.
58+
Please look at the [API Reference](./mouseApi/index.md) and [Examples](https://github.com/JakubAndrysek/PySpaceMouse/tree/master/examples) for more information.
59+
5760
### Device Discovery
5861

5962
```python
@@ -83,7 +86,7 @@ with pyspacemouse.open() as device:
8386
with pyspacemouse.open(device="SpaceNavigator") as device:
8487
state = device.read()
8588

86-
# Open second device (when multiple same devices)
89+
# Open second device when multiple identical devices are connected
8790
with pyspacemouse.open(device_index=1) as device:
8891
state = device.read()
8992

docs/mouseApi/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ State objects returned from `read()` have 7 attributes: [t,x,y,z,roll,pitch,yaw,
4949
* t: timestamp in seconds since the script started.
5050
* x,y,z: translations in the range [-1.0, 1.0]
5151
* roll, pitch, yaw: rotations in the range [-1.0, 1.0].
52-
* button: list of button states (0 or 1), in order specified in the device specifier
52+
* buttons: list of button states (0 or 1), in order specified in the device specifier
5353

5454
## Custom Device Configuration
5555

0 commit comments

Comments
 (0)