/foohid-py

Python wrapper for the foohid OSX driver

Primary LanguageCMIT LicenseMIT

foohid-py

Python wrapper for the foohid OSX driver

https://github.com/unbit/foohid

Exposed functions

import foohid

foohid.create('your new device', report_descriptor)
foohid.destroy('your new device')
foohid.send('your new device', hid_message)
foohid.list()

Included tests/examples

test_mouse.py -> creates a virtual mouse and randomly moves it (your cursor will move too ;)

test_joypad.py -> creates a virtual joypad and randomly moves left and right axis (run a game with joypad support to check it)

test_list.py -> tests listing feature