2 Copyright (C) 1998 BJ Eirich (aka vecna)
\r
3 This program is free software; you can redistribute it and/or
\r
4 modify it under the terms of the GNU General Public License
\r
5 as published by the Free Software Foundation; either version 2
\r
6 of the License, or (at your option) any later version.
\r
7 This program is distributed in the hope that it will be useful,
\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\r
10 See the GNU General Public Lic
\r
11 See the GNU General Public License for more details.
\r
12 You should have received a copy of the GNU General Public License
\r
13 along with this program; if not, write to the Free Software
\r
14 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
\r
22 #include "vdriver.h"
\r
24 // ================================= Data ====================================
\r
26 extern char mousepic[]; // blah
\r
28 static union REGS regs;
\r
32 int lmx=0,lmy=0,lmb=0;
\r
34 // ================================= Code ====================================
\r
36 void PutMouse(int x, int y)
\r
38 lmx=mx; lmy=my; lmb=mb;
\r
39 memset(®s, 0, sizeof regs);
\r
43 int386(0x33,®s,®s);
\r
50 memset(®s, 0, sizeof regs);
\r
51 int386(0x33,®s,®s);
\r
55 regs.w.dx=640; /*320;*/ /* -- ric:13/Jun/98 - fix horizontal jumps -- */
\r
56 int386(0x33,®s,®s);
\r
60 regs.w.dx=sy; // aen
\r
61 int386(0x33,®s,®s);
\r
63 PutMouse(sx/2,(sy/2) /2); // aen
\r
68 lmx=mx; lmy=my; lmb=mb;
\r
69 memset(®s, 0, sizeof regs);
\r
71 int386(0x33,®s,®s);
\r
73 mx=((regs.w.cx)>>1)+16; /* -- ric:13/Jun/98 - fix horizontal jumps -- */
\r
77 if (rb && wb) { mb=0; return; }
\r
78 if (wb && !rb) wb=0;
\r
81 if ((lmx!=mx) || (lmy!=my) || (lmb!=mb)) idlect=0;
\r
87 TCopySprite(mx,my,4,5,mousepic);
\r