SDK not providing all events

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

Moderator: Moderators

Post Reply
fschwarz
Posts: 1
Joined: Wed Dec 13, 2023 2:06 pm

SDK not providing all events

Post by fschwarz »

Hi,

I'm currently looking into adding the SpaceMouse as input device to a project that allows users to trigger different actions based on the app in the foreground.

I was very hopeful when the SDK documentation indicated that, following a call to

RegisterConnexionClient(kConnexionClientWildcard, NULL, kConnexionClientModeTakeOver, kConnexionMaskAll);

I would get calls to my ConnexionMessageHandlerProc for all input events, regardless of whether my app is the currently active app on the system.

However, this does not seem to be the case: I only get calls to my ConnexionMessageHandlerProc while my app is the frontmost/active app on the system.

Is there anything I'm overlooking?

How to reproduce:
- start with the ConnexionClientTest sample code and comment out this line in ConnexionTest.m:
if(state->client == gConnexionTest->fConnexionClientID)
- build and run
- use the SpaceMouse while the sample app's window is in the foreground (-> updates values)
- use the SpaceMouse while the sample app's window is in the background (-> no more updates)

Any help would be greatly appreciated.
Post Reply