I'm modifying an app to work with the SpacePilot which works fine on x86 Linux systems, but has problems when runnng on an opteron system the value of the atom
MagellanMotionEvent differs from the actual event type received by X when the joystick is moved.
I initialize by calling MagellanInit in xdrvlib.c
The MagellanMotionEvent is set to 1050 by the call to XInternAtom.
When I move the joystick, the client message event type received in my Xevent loop has the value of 1045 and thus MagellanTranslateEvent doesn't recognize the event as a motion event. If I change the line of code in MagellanTranslateEvent that reads
if(Event->xclient.message_type == MagellanMotionEvent)
to if(Event->xclient.message_type == 1045)
everything works fine.
Has anyone seen this problem?
Thanks,
John
MagellanMotionEvent on Opteron
Moderator: Moderators
Yes, I realize that the atom needs to be initialized each time the app is run.
With the old driver, the atom got initialized to 1050, but when the SpacePilot actually generated the event, the event value was actually 1045.
As soon as I upgraded to the latest driver, the events actually received matched the atom value and all is working fine.
John
With the old driver, the atom got initialized to 1050, but when the SpacePilot actually generated the event, the event value was actually 1045.
As soon as I upgraded to the latest driver, the events actually received matched the atom value and all is working fine.
John