I think I know how to set it up using XDefineCursor, XCreatePixmapCursor and xUndefineCursor, but I'm not sure how to get the x Display and x Window handles from 'brl.mod/glgraphics.mod/glgraphics.linux.c'.
I'd think you would usually just #include the header, but glgraphics doesn't have a header for its stuff.
EDIT:
I see this:
extern Display *bbSystemDisplay();
in glgrahpics.linux.c, but no function to get the system's window. (does that line mean it is externing that function? I don't think it is because bbSystemDisplay is not further defined in glgraphics.linux.c - I actually cant find it elsewhere.)
EDIT2: I found bbSystemDisplay, and this:
void bbSetMouseVisible(visible){
If (!x_window) Return;
If (visible)
{
XUndefineCursor(x_display,x_window);
}
Else
{
If (!x_cursor)
{
XColor black;
char bm[]={0,0,0,0,0,0,0,0};
Pixmap pix=XCreateBitmapFromData(x_display,x_window,bm,8,8);
memset(&black,0,SizeOf(XColor));
black.flags=DoRed|DoGreen|DoBlue;
x_cursor=XCreatePixmapCursor(x_display,pix,pix,&black,&black,0,0);
XFreePixmap(x_display,pix);
}
XDefineCursor(x_display,x_window,x_cursor);
}
}pretty much does it right there, but I still can't find a way to get the window handle outside of that (brl.system).
EDIT3: Bleh! This would be a reallly easy add if it was done officially.. just add a function here and there :/