summaryrefslogtreecommitdiff
path: root/rtl/netwlibc/mouse.pp
blob: abe241330d32aef09fbb0994954bdcf327466c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
    This file is part of the Free Pascal run time library.
    Copyright (c) 1999-2004 Armin Diehl, member of the
    Free Pascal development team

    Dummy Mouse unit for netware

    See the file COPYING.FPC, included in this distribution,
    for details about the copyright.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 **********************************************************************}
{2001/04/14 armin: first version, only a dummy, i think there is no 'official' way to support
                   a mouse under netware }
unit Mouse;
interface

{$ifdef NOMOUSE}
{$DEFINE NOGPM}
{$ENDIF}

{const
  MouseEventBufSize = 16; }

{$i mouseh.inc}

implementation


procedure PlaceMouseCur(ofs:longint);
begin
end;


procedure InitMouse;
begin
end;


procedure DoneMouse;
begin
end;


function DetectMouse:byte;
begin
  DetectMouse:=0;
end;


procedure ShowMouse;
begin
end;


procedure HideMouse;
begin
end;


function GetMouseX:word;
begin
  GetMouseX:=0;
end;


function GetMouseY:word;
begin
  GetMouseY:=0;
end;


function GetMouseButtons:word;
begin
  GetMouseButtons:=0;
end;


procedure SetMouseXY(x,y:word);
begin
end;


procedure GetMouseEvent(var MouseEvent: TMouseEvent);
begin
  fillchar(MouseEvent,SizeOf(TMouseEvent),#0);
end;


procedure PutMouseEvent(const MouseEvent: TMouseEvent);
begin
end;


function PollMouseEvent(var MouseEvent: TMouseEvent):boolean;
begin
  fillchar(MouseEvent,SizeOf(TMouseEvent),#0);
  exit(false);
end;

Procedure SetMouseDriver(Const Driver : TMouseDriver);
{ Sets the mouse driver. }
begin
end;

Procedure GetMouseDriver(Var Driver : TMouseDriver);
{ Returns the currently active mouse driver }
begin
  FillChar (Driver, sizeof(Driver),0);
end;

end.