RunLoop and modal events blocking driver

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

Moderator: Moderators

Post Reply
tuscland
Posts: 4
Joined: Mon Nov 12, 2007 6:01 am

RunLoop and modal events blocking driver

Post by tuscland » Mon Nov 12, 2007 6:04 am

Hi,

I would like to know if there's a way to create a client for the SpaceNavigator and assign it to another runloop?
The problem I am facing is that my program converts SpaceNavigator into mouse events, and when I click on a menu of the application, the SN events are no sent anymore because the main runloop is in a modal state.


Thanks in advance for any suggestion!
Cam

flomotan
Moderator
Moderator
Posts: 287
Joined: Mon Jan 08, 2007 3:37 pm

Post by flomotan » Mon Nov 12, 2007 9:11 am

You can create another thread specifically for listening to SN events. As you mentioned, just execute the runloop for that thread indefinitely until you terminate your app

Post Reply