1 |
– |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
#include <i86.h> |
5 |
|
#include <graph.h> |
6 |
|
#include "driver.h" |
7 |
|
|
8 |
+ |
#define NULL 0 |
9 |
+ |
|
10 |
|
#define M_RIGHTBUTT 0x8 |
11 |
|
#define M_LEFTBUTT 0x2 |
12 |
|
#define M_MOTION 0x1 |
174 |
|
|
175 |
|
dp->getcur = ms_getcur; |
176 |
|
} |
177 |
+ |
|
178 |
+ |
void |
179 |
+ |
ms_gcdone( dp ) |
180 |
+ |
struct driver *dp; |
181 |
+ |
{ |
182 |
+ |
union REGS inregs, outregs; |
183 |
+ |
|
184 |
+ |
if (dp->getcur != ms_getcur) |
185 |
+ |
return; /* not installed */ |
186 |
+ |
|
187 |
+ |
dp->getcur = NULL; |
188 |
+ |
|
189 |
+ |
/* uninstall watcher */ |
190 |
+ |
|
191 |
+ |
inregs.w.ax = 0; |
192 |
+ |
int386 (0x33, &inregs, &outregs); |
193 |
+ |
} |
194 |
+ |
|