Home

Awesome

spacepad

A simple python script that turns a 3Dconnexion SpaceMouse device into a standard Xbox-style gamepad device, using pyspacemouse and vgamepad. This allows the SpaceMouse to be used in browsers via the Gamepad API.

You do not need to install 3Dconnexion's software or drivers to use this script.

This repo also includes hidapi.dll for Windows, from libusb, under the BSD license detailed in LICENSE-hidapi.md.

usage

pip install -r requirements.txt
python main.py

mapping

The mapping used is a bit quirky, since it was designed to be used with a fork of the Figma SpaceMouse plugin.

gamepadspacemouse
left thumbstick xx
left thumbstick yy
right thumbstick xroll
right thumbstick yz
left triggerpitch
right triggeryaw