Skip to content

A simple python script that turns a spacemouse device into a standard gamepad

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE.txt
Unknown
LICENSE-hidapi.txt
Notifications You must be signed in to change notification settings

brianpeiris/spacepad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

gamepad spacemouse
left thumbstick x x
left thumbstick y y
right thumbstick x roll
right thumbstick y z
left trigger pitch
right trigger yaw

About

A simple python script that turns a spacemouse device into a standard gamepad

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE.txt
Unknown
LICENSE-hidapi.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages