8 |
|
#include <graph.h> |
9 |
|
#include "driver.h" |
10 |
|
|
11 |
+ |
#define NULL 0 |
12 |
+ |
|
13 |
|
#define M_RIGHTBUTT 0x8 |
14 |
|
#define M_LEFTBUTT 0x2 |
15 |
|
#define M_MOTION 0x1 |
177 |
|
|
178 |
|
dp->getcur = ms_getcur; |
179 |
|
} |
180 |
+ |
|
181 |
+ |
void |
182 |
+ |
ms_gcdone( dp ) |
183 |
+ |
struct driver *dp; |
184 |
+ |
{ |
185 |
+ |
union REGS inregs, outregs; |
186 |
+ |
|
187 |
+ |
if (dp->getcur != ms_getcur) |
188 |
+ |
return; /* not installed */ |
189 |
+ |
|
190 |
+ |
dp->getcur = NULL; |
191 |
+ |
|
192 |
+ |
/* uninstall watcher */ |
193 |
+ |
|
194 |
+ |
inregs.w.ax = 0; |
195 |
+ |
int386 (0x33, &inregs, &outregs); |
196 |
+ |
} |
197 |
+ |
|