How to determine the buttons of a device programatically

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
cebugdev
Posts: 6
Joined: Tue Nov 02, 2021 1:23 am

How to determine the buttons of a device programatically

Post by cebugdev »

this is for Spacemouse/navigator.

I am using the code from here: https://www.codegardening.com/2011/02/u ... th-qt.html
to integrate 3DX to QT and it works with QT 5 with some changes ofcourse,
since it uses Win32 and not the provided SDK, how do I detect what are the buttons supported or available on a specific device? Unfortunately I only have the SpaceMouse Pro version and I dont have the other models, but I need to detect which buttons are available for each device so I can only display which buttons are available to be set on my UI.

is there a device or product ID i can check from Win32 so i can just comparemanualy? But ofcourse I need information as well on which product/model type

or what is the best way to do this?
ngomes
Moderator
Moderator
Posts: 3321
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: How to determine the buttons of a device programatically

Post by ngomes »

Answered here.
Nuno Gomes
Post Reply