Button mapping in preferences not used

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

Moderator: Moderators

Post Reply
hstokholm
Posts: 3
Joined: Tue Jun 10, 2014 4:03 am

Button mapping in preferences not used

Post by hstokholm »

Hey all,

I have been tasked with implementing support for the 3dxware 10 driver in our application, and it is almost done. So far things are working correctly on windows, but I have a small problem on Mac. I am connected to the device and I get axis and button input. But when I change the button mapping in the preference panel of the driver nothing happens. When changing the axis everything is working smoothly, but even though I have assigned virtual numpad to the left button on the space navigator, the button event is still sent to the application instead of opening the numpad.
Has anyone else experienced this problem or know of possible fixes?

Heine
crobl
Moderator
Moderator
Posts: 138
Joined: Mon Feb 26, 2007 8:34 am
Location: Freiham, Germany

Re: Button mapping in preferences not used

Post by crobl »

Hello Heine,

please, try to change the mask parameter of RegisterConnexionClient() to kConnexionMaskAxis only. This should do the job.
Note: Do not call SetConnexionClientButtonMask() after that.

If you call RegisterConnexionClient() with a button mask or call SetConnexionClientButtonMask() it tells the driver that your application wants to take care of the button handling (mapping within the application, which is not advised to do!). The driver will send your application raw buttons only and not use mappings done in the panel.

Please let me know if this solves your issue!

Regards,

Christian
hstokholm
Posts: 3
Joined: Tue Jun 10, 2014 4:03 am

Re: Button mapping in preferences not used

Post by hstokholm »

Thanks Christian!

Everything seems to be working now.
crobl
Moderator
Moderator
Posts: 138
Joined: Mon Feb 26, 2007 8:34 am
Location: Freiham, Germany

Re: Button mapping in preferences not used

Post by crobl »

Hello Heine,

thats great to hear, that your issue is solved.

If you have any question, please feel free to ask!

Regards,

Christian
Post Reply