Warning: this is very work-in-progress.
A few Python scripts for converting between OSC messages, mouse and keyboard events. The intent of these are for playing already existing games using sensors from a mobile phone (using something like Sensors2OSC) or some other application that can send OSC messages. This is not really a re-usable library or tool (yet!), just an example of how to go about making this functionality happen.
Dependencies: keyboard, mouse, vectormath, and python-osc libraries. You'll also need to have Python 3 installed.
I'll add more info on how to run / setup the scripts soon.