00001 #ifndef _hapi_h
00002 #define _hapi_h
00003
00004 #include <windows.h>
00005
00006
00007
00009 #define NONE 0
00010
00011 #define BUTTON 0x1
00012
00013 #define MOVEMENT 0x2
00014
00015 #define CURSOR 0x4
00016
00017 #define CLIP 0x8
00018
00019
00020 #define ACCELERATE 0x10
00021
00022 #define SUSPEND 0x20
00023
00032 typedef struct hPOINT {
00033 int x, y;
00034 } hPOINT;
00035
00047 int __cdecl hInitialise(int count,
00048 HWND window,
00049 HDC screen,
00050 unsigned int flags);
00051
00056 void __cdecl hCleanup(void);
00057
00061 void __cdecl hSuspendMouse(int number);
00062
00066 void __cdecl hUnSuspendMouse(int number);
00067
00075 void __cdecl hGetRelativePosition(int number, hPOINT* p);
00076
00084 void __cdecl hGetAbsolutePosition(int number, hPOINT* p);
00085
00093 void __cdecl hSetAbsolutePosition(int number, hPOINT p);
00094
00107 void __cdecl hSetCursor(int number,
00108 hPOINT p,
00109 HBITMAP cursor,
00110 BYTE r, BYTE g, BYTE b);
00111
00117 void __cdecl hLockCanvas();
00118
00126 void __cdecl hUpdateCursors(int useCache);
00127
00128 int __cdecl hGetLastSuspended(void);
00129 int __cdecl hGetLastUnSuspended(void);
00130 int __cdecl hGetLastMoved(void);
00131
00132 #endif // ifndef _hapi_h