I've got the 3Dconnexion SpacePilot 3Dconnexion provides an SDK which is really simple, you've just have to look at their examples ..