Maximum value from device

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
mlee
Posts: 2
Joined: Tue Mar 10, 2009 7:37 am

Maximum value from device

Post by mlee »

Is there any way to retrieve or determine the maximum possible value returned by the device with COM? The range of these values change based on the sensitivity settings on the 3Dconnexion control panel.

Thanks,
Michael
jwick
Moderator
Moderator
Posts: 3341
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

Hi Michael,

Not with our COM (3DxInput) API. You can get more information by using the HID API, or the old 3DxWare Win32 API.

Even so, the data can be scaled by the user to outrageous values by clever manipulations of the config files. The best thing for you to do is assume that values will be +/-500, then clamp the values at that point if it would cause a problem in your code to get anything outside that range.

That still allows the users to change the slope of the data w/o blowing up your code.

Jim
3Dx Software Development
perronne
Posts: 3
Joined: Mon Jun 28, 2010 1:39 am

getting logical max and logical min values

Post by perronne »

I am using HID SDK of windows to interact wit devices.
logical max and min values are stored in an array which is often named pInputValueCaps in the structure of the device.
For a space explorer they are 6 input values (so, 6 input capabilities).

What is the mapping (index-> values)?
is it :
0-> tx
1-> ty
2-> tz
3-> rx
4-> ry
5-> rz
jwick
Moderator
Moderator
Posts: 3341
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

Yes, I believe so. But the axis names are using the HID meaning of X,Y,Z, etc.
perronne
Posts: 3
Joined: Mon Jun 28, 2010 1:39 am

Post by perronne »

Ok, can I retrieve the names X Y Z in HID device structure (where) ?
jwick
Moderator
Moderator
Posts: 3341
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

I'm not sure I understand your question.

The HID nomenclature for the axes matches the 2D mouse plus the additional axes:

X - movement left and right, parallel to the desk
Y - movement toward you and away from you parallel to the desk
Z - movement perpendicular to the desk

The rotations are for rotation along each of those axes using the right hand rule.
perronne
Posts: 3
Joined: Mon Jun 28, 2010 1:39 am

Post by perronne »

Oh sorry, I just understand your previous answer!
By definition HID mouse defines that the first input value is X, the second Y, etc...

Tks
Post Reply