home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
206.lha
/
Grab_Pointer
/
test.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-12-28
|
653b
|
37 lines
#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) ;
}