From f9f214c14f480f65f50478e81676742166815f85 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Fri, 14 Apr 2000 08:11:21 +0000 Subject: [PATCH] * changed name of mouse unit to msmouse * added warning that MouseHideWindow isn't (properly) supported under Win98 --- docs/mouse.tex | 11 +++++++---- docs/mouseex/mouse1.pp | 2 +- docs/mouseex/mouse10.pp | 2 +- docs/mouseex/mouse2.pp | 2 +- docs/mouseex/mouse3.pp | 2 +- docs/mouseex/mouse4.pp | 2 +- docs/mouseex/mouse5.pp | 2 +- docs/mouseex/mouse6.pp | 2 +- docs/mouseex/mouse7.pp | 2 +- docs/mouseex/mouse8.pp | 2 +- docs/mouseex/mouse9.pp | 2 +- 11 files changed, 17 insertions(+), 14 deletions(-) diff --git a/docs/mouse.tex b/docs/mouse.tex index 1045a23bd1..5318a07143 100644 --- a/docs/mouse.tex +++ b/docs/mouse.tex @@ -1,6 +1,6 @@ -\chapter{The Mouse unit} -The mouse unit provides basic Mouse handling under Dos (Go32v1 and Go32v2) -Some general remarks about the mouse unit: +\chapter{The MsMouse unit} +The msmouse unit provides basic mouse handling under Dos (Go32v1 and Go32v2) +Some general remarks about the msmouse unit: \begin{itemize} \item The mouse driver does not know when the text screen scrolls. This results in unerased mouse cursors on the screen when the screen scrolls while the @@ -15,7 +15,7 @@ both x and y by 8 (and add 1 if you want to have it 1 based). differ. For example, mode 13h (320*200 pixels) is handled by the mouse driver as 640*200, so you will have to multiply the X coordinates you give to the driver and divide the ones you get from it by 2 in that mode. -\item By default the mouse unit is compiled with the conditional define +\item By default the msmouse unit is compiled with the conditional define MouseCheck. This causes every procedure/function of the unit to check the MouseFound variable prior to doing anything. Of course this is not necessary, so if you are sure you are not calling any mouse unit procedures when no @@ -223,6 +223,9 @@ This may be annoying, but it's the way it's implemented in the mouse driver. While \var{xmin, ymin, xmax} and \var{ymax} are Longint parameters, only the lower 16 bits are used. +Warning: it seems Win98 SE doesn't (properly) support this function, +maybe this already the case with earlier versions too! + \Errors None. \SeeAlso diff --git a/docs/mouseex/mouse1.pp b/docs/mouseex/mouse1.pp index b8d184b93a..5018798d03 100644 --- a/docs/mouseex/mouse1.pp +++ b/docs/mouseex/mouse1.pp @@ -2,7 +2,7 @@ Program Mouse1; {example for InitMouse and MouseFound} -Uses Mouse; +Uses MsMouse; Begin If MouseFound Then diff --git a/docs/mouseex/mouse10.pp b/docs/mouseex/mouse10.pp index dbc9d04e0e..cd88431da1 100644 --- a/docs/mouseex/mouse10.pp +++ b/docs/mouseex/mouse10.pp @@ -1,4 +1,4 @@ -Uses Mouse, Crt; +Uses MsMouse, Crt; Var hor, vert: Longint; x, y: Longint; diff --git a/docs/mouseex/mouse2.pp b/docs/mouseex/mouse2.pp index d66ac03aec..4555970af4 100644 --- a/docs/mouseex/mouse2.pp +++ b/docs/mouseex/mouse2.pp @@ -1,6 +1,6 @@ {example for ShowMouse and HideMouse} -Uses Mouse; +Uses MsMouse; Begin ClrScr; diff --git a/docs/mouseex/mouse3.pp b/docs/mouseex/mouse3.pp index bfef894792..1ce6881352 100644 --- a/docs/mouseex/mouse3.pp +++ b/docs/mouseex/mouse3.pp @@ -1,6 +1,6 @@ {example for GetMouseState, IsLPressed, IsRPressed and IsMPressed} -Uses Mouse, Crt; +Uses MsMouse, Crt; Var X, Y, State: Longint; diff --git a/docs/mouseex/mouse4.pp b/docs/mouseex/mouse4.pp index 8d970dddec..4cbc0bfeba 100644 --- a/docs/mouseex/mouse4.pp +++ b/docs/mouseex/mouse4.pp @@ -1,6 +1,6 @@ {example for SetMousePos} -Uses Mouse, Crt; +Uses MsMouse, Crt; Begin If MouseFound Then diff --git a/docs/mouseex/mouse5.pp b/docs/mouseex/mouse5.pp index 182cf544b3..0dc1280cf3 100644 --- a/docs/mouseex/mouse5.pp +++ b/docs/mouseex/mouse5.pp @@ -1,6 +1,6 @@ {example for GetLastButtonPress and GetLastButtonRelease} -Uses Mouse, Crt; +Uses MsMouse, Crt; Var x, y, times: Longint; c: Char; diff --git a/docs/mouseex/mouse6.pp b/docs/mouseex/mouse6.pp index 33b4610df2..7d85d7b053 100644 --- a/docs/mouseex/mouse6.pp +++ b/docs/mouseex/mouse6.pp @@ -1,6 +1,6 @@ {example for SetMouseXRange, SetMouseYRange and SetMouseWindow} -Uses Mouse, Crt; +Uses MsMouse, Crt; Begin If MouseFound Then diff --git a/docs/mouseex/mouse7.pp b/docs/mouseex/mouse7.pp index d48e68cafd..ed3f537d3a 100644 --- a/docs/mouseex/mouse7.pp +++ b/docs/mouseex/mouse7.pp @@ -6,7 +6,7 @@ on the screen over which you move the cursor. To get a "transparent" cursor, use the Ascii value 0} -Uses Mouse, Crt; +Uses MsMouse, Crt; Var ascii, fc, bc: Byte; x,y: Longint; diff --git a/docs/mouseex/mouse8.pp b/docs/mouseex/mouse8.pp index 9f6e6d6328..fb7a92253e 100644 --- a/docs/mouseex/mouse8.pp +++ b/docs/mouseex/mouse8.pp @@ -2,7 +2,7 @@ {warning: no error checking is performed on the input} -Uses Mouse, Crt; +Uses MsMouse, Crt; Var ascii: Byte; x,y: Longint; diff --git a/docs/mouseex/mouse9.pp b/docs/mouseex/mouse9.pp index 90a24f8238..f98fbe83e3 100644 --- a/docs/mouseex/mouse9.pp +++ b/docs/mouseex/mouse9.pp @@ -10,7 +10,7 @@ Note: the mouse functions are zero-based, GotoXY is 1-based} -Uses Mouse, Crt; +Uses MsMouse, Crt; Var x, y, buttons: Longint; MouseOn: Boolean;