I am attaching a sample code that works under X, to get that to work under Mir, we only need to get cursor co-ordinates from unity8, then we only need to update get_cursor_position() method.
it requires python-evdev, python3-autopilot and python3-xlib installed.
I am attaching a sample code that works under X, to get that to work under Mir, we only need to get cursor co-ordinates from unity8, then we only need to update get_cursor_ position( ) method.
it requires python-evdev, python3-autopilot and python3-xlib installed.