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.
Cannot detect SpacePilot Pro
Moderator: Moderators
Re: Cannot detect SpacePilot Pro
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.
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.
Re: Cannot detect SpacePilot Pro
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.
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.
Re: Cannot detect SpacePilot Pro
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 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.
Re: Cannot detect SpacePilot Pro
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.
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.
