|
@@ -3,7 +3,7 @@
|
|
Copyright (c) 1999-2000 by Florian Klaempfl
|
|
Copyright (c) 1999-2000 by Florian Klaempfl
|
|
member of the Free Pascal development team
|
|
member of the Free Pascal development team
|
|
|
|
|
|
- Mouse unit for linux
|
|
|
|
|
|
+ Mouse unit for OS/2
|
|
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
for details about the copyright.
|
|
@@ -18,6 +18,9 @@ interface
|
|
|
|
|
|
{$i mouseh.inc}
|
|
{$i mouseh.inc}
|
|
|
|
|
|
|
|
+const
|
|
|
|
+ MouseIsVisible: boolean = false;
|
|
|
|
+
|
|
implementation
|
|
implementation
|
|
|
|
|
|
uses
|
|
uses
|
|
@@ -68,6 +71,7 @@ begin
|
|
*)
|
|
*)
|
|
|
|
|
|
MouDrawPtr (Handle);
|
|
MouDrawPtr (Handle);
|
|
|
|
+ MouseIsVisible := true;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -115,6 +119,7 @@ begin
|
|
begin
|
|
begin
|
|
Dec (HideCounter);
|
|
Dec (HideCounter);
|
|
if HideCounter = 0 then MouDrawPtr (Handle);
|
|
if HideCounter = 0 then MouDrawPtr (Handle);
|
|
|
|
+ MouseIsVisible := true;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
@@ -134,6 +139,7 @@ begin
|
|
PtrRect.cRow := Pred (ScreenHeight);
|
|
PtrRect.cRow := Pred (ScreenHeight);
|
|
PtrRect.cCol := Pred (ScreenWidth);
|
|
PtrRect.cCol := Pred (ScreenWidth);
|
|
MouRemovePtr (PtrRect, Handle);
|
|
MouRemovePtr (PtrRect, Handle);
|
|
|
|
+ MouseIsVisible := false;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|