diff --git a/pyspacemouse/pyspacemouse_cli.py b/pyspacemouse/pyspacemouse_cli.py index a194acc..c6dafe7 100644 --- a/pyspacemouse/pyspacemouse_cli.py +++ b/pyspacemouse/pyspacemouse_cli.py @@ -53,13 +53,13 @@ def test_connect_cli(): print("Failed to open SpaceMouse") return - print("SpaceMouse opened successfully, reading x, y, z values...") + print("SpaceMouse opened successfully, reading state values...") time.sleep(1) try: while True: state = read_mouse() - print(state.x, state.y, state.z) + print(f"{state.x:.3f} {state.y:.3f} {state.z:.3f} | {state.roll:.3f} {state.pitch:.3f} {state.yaw:.3f}") time.sleep(0.01) except KeyboardInterrupt: print("KeyboardInterrupt: Exiting...")