by blaise » Thu Feb 01, 2007 4:23 pm
Hi Ziva,
I have been putting a bit more thought into that, and poking around a litle bit.
Using the code in the other threads, I have been able to recover the axis and rotation informations from my spacenavigator.
CEI tell me that they incorporated the sample X11 code from the UNIX SDK, nd that they are just listening to X11 events. Looking at xapp.c and xdrvlib.c from the SDK, it seems to me that all that is to be done is
- Create the atoms MagellanMotionEvent, MagellanButtonPressEvent, MagellanReleaseEvent and MagellanCommandEvent
- in the messageHandlerProc, convert the msg->axis and msg->buttons into MagellanMotionEvent etc, then use XSendEvent
I don't know much about mac or X11 programming. I am a Fortran/Fortran90 scientific computing person, so there is a chance that all I am saying is just nonsensical junk....
Am I completely missing the point?
Blaise