Cocoa -> X11 proxy

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

Moderator: Moderators

Post Reply
Posts: 4
Joined: Wed Jan 17, 2007 9:43 am

Cocoa -> X11 proxy

Post by blaise » Tue Feb 13, 2007 6:56 pm


Following this thread viewtopic.php?t=280, I wrote a very primitive proxy that translate motion events from the cocoa SDK into Xevents, compatible with the legacy spaceball unix SDK.

I really don't know anything about X11 or cocoa programming and can barely write C (I'm a fortran90 / scientific computing person), so I can garanty that the code is ugly, but it does its job.

If anybody is interested in having a look at the code (it is hosted at ... nProxy.tgz ). A very simple program using the X11 bindings (shamelessly taken from the old unix SDK) is at

I am stll a bit puzzled about the signature and name values in main.c . I pulled them from the example in this thread viewtopic.php?t=232 without really understanding.

Have fun with the code.


Posts: 127
Joined: Wed Mar 14, 2007 5:55 pm
Location: SF Bay Area, CA

Post by ettore » Wed Mar 26, 2008 3:40 pm

hi Blaise, I'm going to have a look at your code... thanks for sharing.
ettore pasquini
software engineer
3Dconnexion, inc.

Post Reply