mouse.pp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Florian Klaempfl
  5. member of the Free Pascal development team
  6. Dummy Mouse unit for netware
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. {2001/04/14 armin: first version, only a dummy, i think there is no 'official' way to support
  14. a mouse under netware }
  15. unit Mouse;
  16. interface
  17. {$ifdef NOMOUSE}
  18. {$DEFINE NOGPM}
  19. {$ENDIF}
  20. {const
  21. MouseEventBufSize = 16; }
  22. {$i mouseh.inc}
  23. implementation
  24. procedure PlaceMouseCur(ofs:longint);
  25. begin
  26. end;
  27. procedure InitMouse;
  28. begin
  29. end;
  30. procedure DoneMouse;
  31. begin
  32. end;
  33. function DetectMouse:byte;
  34. begin
  35. DetectMouse:=0;
  36. end;
  37. procedure ShowMouse;
  38. begin
  39. end;
  40. procedure HideMouse;
  41. begin
  42. end;
  43. function GetMouseX:word;
  44. begin
  45. GetMouseX:=0;
  46. end;
  47. function GetMouseY:word;
  48. begin
  49. GetMouseY:=0;
  50. end;
  51. function GetMouseButtons:word;
  52. begin
  53. GetMouseButtons:=0;
  54. end;
  55. procedure SetMouseXY(x,y:word);
  56. begin
  57. end;
  58. procedure GetMouseEvent(var MouseEvent: TMouseEvent);
  59. begin
  60. fillchar(MouseEvent,SizeOf(TMouseEvent),#0);
  61. end;
  62. procedure PutMouseEvent(const MouseEvent: TMouseEvent);
  63. begin
  64. end;
  65. function PollMouseEvent(var MouseEvent: TMouseEvent):boolean;
  66. begin
  67. fillchar(MouseEvent,SizeOf(TMouseEvent),#0);
  68. exit(false);
  69. end;
  70. Procedure SetMouseDriver(Const Driver : TMouseDriver);
  71. { Sets the mouse driver. }
  72. begin
  73. end;
  74. Procedure GetMouseDriver(Var Driver : TMouseDriver);
  75. { Returns the currently active mouse driver }
  76. begin
  77. end;
  78. end.
  79. {
  80. $Log$
  81. Revision 1.3 2002-09-07 16:01:20 peter
  82. * old logs removed and tabs fixed
  83. Revision 1.2 2002/03/08 19:04:36 armin
  84. make it compilable with fpc 1.1
  85. }