Support for Space Navigator 3D Mouse?

How would I go by building it with VS?