mouse.pp 1.8 KB

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