Maximum value from device

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

Moderator: Moderators

Maximum value from device

Postby mlee » Tue Mar 10, 2009 7:43 am

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
mlee
 
Posts: 2
Joined: Tue Mar 10, 2009 7:37 am

Postby jwick » Tue Mar 10, 2009 8:50 am

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
jwick
Moderator
Moderator
 
Posts: 1769
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA

getting logical max and logical min values

Postby perronne » Mon Jun 28, 2010 1:55 am

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
perronne
 
Posts: 3
Joined: Mon Jun 28, 2010 1:39 am

Postby jwick » Mon Jun 28, 2010 5:06 am

Yes, I believe so. But the axis names are using the HID meaning of X,Y,Z, etc.
jwick
Moderator
Moderator
 
Posts: 1769
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA

Postby perronne » Mon Jun 28, 2010 5:21 am

Ok, can I retrieve the names X Y Z in HID device structure (where) ?
perronne
 
Posts: 3
Joined: Mon Jun 28, 2010 1:39 am

Postby jwick » Mon Jun 28, 2010 5:33 am

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.
jwick
Moderator
Moderator
 
Posts: 1769
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA

Postby perronne » Mon Jun 28, 2010 5:48 am

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
perronne
 
Posts: 3
Joined: Mon Jun 28, 2010 1:39 am


Return to Developer's Forum for Windows

Who is online

Users browsing this forum: Google [Bot] and 1 guest