SpaceMouse from 3Dconnexion


I am working on my bachelor thesis. I read with an Arduino MEGA2560 the position of a SpaceMouse Wireless from 3Dconnexion. For this, I use a modified version of the USBHost Library, which drives a HID.

However, this Arduino program works with events, but I’d rather that I can read the deflection every 100ms. How do I change the code?

USBHIDSpaceMouse.ino (929 Bytes)

hidjoystickrptparser.cpp (2.13 KB)

hidjoystickrptparser.h (820 Bytes)