Cocoa -> X11 proxy

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

Moderator: Moderators

Cocoa -> X11 proxy

Postby blaise » Tue Feb 13, 2007 6:56 pm

Hi,

Following this thread http://www.3dconnexion.com/forum/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 http://www.math.lsu.edu/~bourdin/Files/MagellanProxy.tgz ). A very simple program using the X11 bindings (shamelessly taken from the old unix SDK) is at http://www.math.lsu.edu/~bourdin/Files/xapp.tgz

I am stll a bit puzzled about the signature and name values in main.c . I pulled them from the example in this thread http://www.3dconnexion.com/forum/viewtopic.php?t=232 without really understanding.


Have fun with the code.

Blaise
blaise
 
Posts: 4
Joined: Wed Jan 17, 2007 9:43 am

Postby 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.
ettore
Moderator
Moderator
 
Posts: 127
Joined: Wed Mar 14, 2007 5:55 pm
Location: SF Bay Area, CA


Return to Developer's Forum for Mac OS X

Who is online

Users browsing this forum: No registered users and 0 guests