home *** CD-ROM | disk | FTP | other *** search
- #include <exec/types.h>
- #include <exec/exec.h>
- #include <intuition/intuitionbase.h>
- #include <functions.h>
-
- #include "pointer.h"
-
- #define NULL 0L
-
- struct IntuitionBase *IntuitionBase;
-
- main()
- {
- int i ;
- char *window ;
-
- IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library",1L);
-
- if( IntuitionBase == NULL )
- {
- printf("Can't open intuition.library !!!\n");
- exit() ;
- }
-
- window = (char *)IntuitionBase->ActiveWindow ;
-
- SetPointer(window,&NewPointer,
- (long)NEWPOINTER_H,
- (long)NEWPOINTER_W,
- (long)NEWPOINTER_XOFF,
- (long)NEWPOINTER_YOFF) ;
-
- Delay(1000L) ;
-
- ClearPointer(window) ;
- }
-