Cannot detect SpacePilot Pro

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
Mikajel
Posts: 4
Joined: Wed Dec 02, 2015 12:01 pm

Cannot detect SpacePilot Pro

Post by Mikajel »

Hello,

I have been trying to implement 3dMouse into our university project and so far I have not been very successful.
My issue is spacePilot not being recognized. Basically, SiOpen returns NULL instead of handle. I have been trying to get the error message out, but cannot locate SpwErrorVal that is supposed to be set. I have searched through files in SDK and there is no trace of it. I have found the enum file for errors, but that really is not worth much if I cant access that variable.

Thanks for any effort to help.
jwick
Moderator
Moderator
Posts: 3456
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Cannot detect SpacePilot Pro

Post by jwick »

I'm assuming the device and the demos work.
Does the 3DxTest demo application build and run?
Are you passing a valid HWND into SiOpen? Does that window stay around?
The log file will tell you a lot about that is going on. Turn it on in the systray.
Mikajel
Posts: 4
Joined: Wed Dec 02, 2015 12:01 pm

Re: Cannot detect SpacePilot Pro

Post by Mikajel »

Hello,
I am sorry for the late answer, but the project was paused. I turned on the logging in systray. However, the only log that is appearing comes from demo, which builds and runs fine in VS2010. HWND I am passing should be correct, I am tracing its value from main window into the mouse module I am working on and the value stays the same. We are only working with one main window. Maybe it would be worth mentioning that we are working in QtCreator. I am having issue as soon as I run into SiGetEventWinInit function, program crashes there.
Mikajel
Posts: 4
Joined: Wed Dec 02, 2015 12:01 pm

Re: Cannot detect SpacePilot Pro

Post by Mikajel »

jwick wrote:I'm assuming the device and the demos work.
Does the 3DxTest demo application build and run?
Are you passing a valid HWND into SiOpen? Does that window stay around?
The log file will tell you a lot about that is going on. Turn it on in the systray.
The problem may be using the MSG in QtCreator. I am trying to figure out how to handle 3dConn messages in Qt, if you have solved similar issue, any link/advice would be welcome.
jwick
Moderator
Moderator
Posts: 3456
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Cannot detect SpacePilot Pro

Post by jwick »

This post discusses Qt
And, a little older
As I recall, you can filter the windows events going to Qt. That is where you need to ask the library if it is a 3Dx event.
Other cooked events from Qt may not be Windows messages.
Post Reply