keycodes with custom scg

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

Moderator: Moderators

Post Reply
moose
Posts: 2
Joined: Wed Jun 03, 2009 8:38 am

keycodes with custom scg

Post by moose »

I want to use the Spacenavigator-Family for the control of pan-tilt-heads in a video surveillance system.

After different attempts I was meanwhile able to implement some piece of code using the COM-Interface with polling. With the help of the forum and a little bit of trying I was also able to create my own scg-file - e.g. I only need four of the six axes, wanted to label them slightly different and more important needed typical functions/descriptions for the buttons. No problem so far...

...but using the IsKeyDown(key, &isPressed) method I am only able to get the keycodes from 1 to Get_Keys(&nKeys) and the additional two virtual keys 30/31 (which is usually keycode 12 and 59 :roll:). The user should be able to configure the buttons with the functions he needs; how can I get the corresponding keycodes?

I've scrolled the forum, the API-Description and the supplied samples back and forth, unfortunally I've found no clue.

To use this opportunity: mentioned a several times in this forum - an COM-API control of the LED would be great. :wink:
while ( !asleep ) sheep++;
jwick
Moderator
Moderator
Posts: 3455
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

There is no way via the COM interface to get this additional from the scg file. The user can use the 3DxWare GUI to assign additional commands to the buttons.

Your only current option for getting this information is to switch to the older 3DxWare C/C++ API. This has SiSync functions that can retrieve this additional information.

Jim
3Dx Software Development
Post Reply