A script to replace the Space Navigator?

You’d already have to have a decent joystick, but if you did, could you use this script -

Link

and remap the joystick functions to make a super-duper 3D navigator?

It says Linux only, but it’s python, so maybe it’s portable to Windows and Mac.