How to use 3dConnexion Space Mouse for in game navigation?

Hey all, new poster here so please correct me if I’m posting on the wrong place. I’m trying to add the possibility to use a 3dconnexion space mouse to drive the first person character inside my interactive apartment interiors app, along with the regular WASD controls. Ideally I would like both systems to work at the same time, but it could also be acceptable to use the space mouse in a dedicated mode. Can someone point me in the right direction to get started with this? Many thanks.