Skip to content

lomnido/pyspacemouse-to-trackpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

pyspacemouse-to-trackpoint

Ad-hoc Python code made just for fun to use 3D mouse (3dconnexion devices) as TrackPoint. Current state is just proof-of-concept.

Credit

Huge Thanks to Kuba Andrýsek for the code regarding reading 3D mouse data, which was taken from his project pySpaceMouse.

What does work:

  • automated detection of 3D mouse device (by Kuba Andrýsek)
  • move cursor around: Up, Down, Left, Right
  • left and right clicks
  • scroll up/down by using yaw (angle on the XY plane)

What does NOT work:

  • script is ad-hoc, no permanent system integration thus far
  • sensitivity can only be changed by values from inside the script

How to run:

Python dependencies

These dependenies are usually not installed:

  • python3-evdev
  • python3-uinput

1st: test if you find your connected device

You can use:

evdev-joystick --list

To see if your device can be found and ready to use.

2nd: ad-hoc run

You have to run it as root like:

python3 pyspacemouse.py

To stop just stop the script.

Nones

  • 3D mouse may work without the need its light to be up.
  • official drivers for 3D mouse may not be required.

Releases

No releases published

Packages

No packages published

Languages