Skip to content

Commit d81fbd2

Browse files
author
peter.mitrano
committed
cleanup, remove envrc
1 parent 44b6d9c commit d81fbd2

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

.envrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/mouseApi/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
## 09. Invert Rotations
8484

8585
- File: [09_invert_rotations.py](https://github.com/JakubAndrysek/PySpaceMouse/blob/master/examples/09_invert_rotations.py)
86-
- Summary: Example: Modification of device specs
86+
- Summary: Example: Invert rotation axes
8787
- Run: `python examples/09_invert_rotations.py`
8888

8989
```py title="examples/09_invert_rotations.py"

examples/09_invert_rotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212

1313
def example_invert_rotations():
14-
"""Show how to fix rotation axes for specific conventions."""
14+
"""Show how to fix rotation axes"""
1515
print("\n" + "=" * 60)
16-
print("Example 2: Invert rotation conventions")
16+
print("Invert rotations")
1717
print("=" * 60)
1818

1919
connected = pyspacemouse.get_connected_devices()

examples/10_custom_config_unity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
def example_unity_convention():
1414
"""Create entirely custom device configuration with the Unity convention."""
1515
print("\n" + "=" * 60)
16-
print("Example 3: Create custom device spec (Unity convention)")
16+
print("Create custom device spec (Unity convention)")
1717
print("=" * 60)
1818

1919
# This shows how to create a completely custom device spec
2020
# Useful for unsupported devices or complete remapping
2121
custom_spec = pyspacemouse.create_device_info(
2222
name="CustomSpaceMouse",
2323
vendor_id=0x256F, # 3Dconnexion
24-
product_id=0xC63A, # SpaceMouse Compact
24+
product_id=0xC63A, # SpaceMouse Wireless New
2525
mappings={
2626
# Each mapping: (channel, byte1, byte2, scale)
2727
# Scale: 1 = normal direction, -1 = inverted

0 commit comments

Comments
 (0)