Simon Bennett (simonb++at++wormald.com.au)
Tue, 5 Sep 1995 11:02:52 +1000 (BEST)
It's really the only way in 1.2, you only have to change "input.c"
pfuInitInput() forks off another process, which asynchronously collect
the Xevents, it's also the process with the pointer to the Display - so
if you need access to this, it really needs to be done from this process.
I'm surprised your cursor code is working at all...
> extern void pfuCursor(long _target, long _c);
> extern void pfuCursorSel(long _sel);
> extern long pfuGetCursorSel(void);
> extern long pfuGetCursor(long _target);
The main problem with these calls however is that you can only set the
cursor to those defined in the "cursor" font... which is fine if you need
a gumby cursor :)
Neither do they let you specify the mask or colours - which means they
don't provide an easy way to remove the cursor in a GLX window - there
is no equivalent to GL's cursoff() - you have to edit input.c
> code." Is it that you tried the above functions and they did not work
> correctly?
These functions work fine, they just don't go the distance. That's not
really fair thou I guess, they do provide a nice simple interface to X's
"interteresting" cursor handling functions.
If it's portability to the future you're worried about, then I wouldn't
be concerned with editing input.c or any pfu code - as the doco says it's
unsupported. In addition - this stuff will have to be tidied up and
rearranged for future versions of Performer as OpenGL versions are
supported.
+----------------------------------------------------------------------------+
Simon Bennett simonb++at++wormald.com.au
Wormald Technology Advanced Systems Engineering Ph: +61 2 9981 0611 (x512)
Meeting - an event where you take minutes and waste hours.
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:52 PDT