We want to support 3DConnexion devices in a product that has a game like logic loop.
As such, every so often, we want to poll the device for the joystick's position.
We went about it by trying to use DirectInput but the values we are receiving are not what we expected.
When we let go of the joystick, the values don't go back to 0.
Looking around it seems that developers are being advised to use the SDK but as far as I can tell, it is event driven, which doesn't fit at all with our application.
So, is DirectInput supported, how do we get absolute range of motion values for all axis? Where is some example code that works?
If the SDK is the only supported way, how can we use it to get the absolute axis values?
Thanks
How do I get absolute state of device on demand?
Moderator: Moderators
-
- Posts: 5
- Joined: Wed Oct 21, 2015 12:20 pm
-
- Posts: 5
- Joined: Wed Oct 21, 2015 12:20 pm
Re: How do I get absolute state of device on demand?
Soooo...
Anything? :/
Anything? :/
Re: How do I get absolute state of device on demand?
Olá tmagalhaes,
Very sorry for the delay in replying to your question. We're looking to see what's the best approach for your use-case and we should have an answer shortly.
Very sorry for the delay in replying to your question. We're looking to see what's the best approach for your use-case and we should have an answer shortly.
-
- Posts: 5
- Joined: Wed Oct 21, 2015 12:20 pm
Re: How do I get absolute state of device on demand?
Thanks for the reply.
Will be waiting for further information.
Will be waiting for further information.
Re: How do I get absolute state of device on demand?
Sorry it took us this long to reply.
The 3D mouse motion (axis) data may be modified by the driver using scaling factor set by the user. You should code for the default values and then let the user increase or decrease the data (to "speed up" or "slow down" the camera control).
Regarding polling, DirectInput seems to misinterpret the device USB descriptor and does not provide the raw data (which is absolute to begin with). If you need absolute data, we recommend that you add support for driver API (3DxWare SDK) and simply cache the data (to allow the polling code to retrieve it).
The 3D mouse motion (axis) data may be modified by the driver using scaling factor set by the user. You should code for the default values and then let the user increase or decrease the data (to "speed up" or "slow down" the camera control).
Regarding polling, DirectInput seems to misinterpret the device USB descriptor and does not provide the raw data (which is absolute to begin with). If you need absolute data, we recommend that you add support for driver API (3DxWare SDK) and simply cache the data (to allow the polling code to retrieve it).
-
- Posts: 5
- Joined: Wed Oct 21, 2015 12:20 pm
Re: How do I get absolute state of device on demand?
Olá Nuno.
Thanks for the reply, we'll look into those options.
Thanks for the reply, we'll look into those options.