input.pas 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. This file is part of the Free Pascal MorphOS support package
  3. Copyright (c) 2015 the Free Pascal Development Team
  4. input.device interface unit
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {$MODE FPC}
  12. unit input;
  13. {
  14. Contents of this file is based on input.h from the MorphOS SDK:
  15. input.device include (V50)
  16. Copyright (c) 2002 The MorphOS Development Team, All Rights Reserved
  17. }
  18. { Pascal conversion based on fpc-triforce repo by Magorium }
  19. interface
  20. uses
  21. exec;
  22. const
  23. IND_ADDHANDLER = CMD_NONSTD + 0;
  24. IND_REMHANDLER = CMD_NONSTD + 1;
  25. IND_WRITEEVENT = CMD_NONSTD + 2;
  26. IND_SETTHRESH = CMD_NONSTD + 3;
  27. IND_SETPERIOD = CMD_NONSTD + 4;
  28. IND_SETMPORT = CMD_NONSTD + 5;
  29. IND_SETMTYPE = CMD_NONSTD + 6;
  30. IND_SETMTRIG = CMD_NONSTD + 7;
  31. var
  32. InputBase: pDevice;
  33. function PeekQualifier: UWORD; syscall InputBase 042;
  34. implementation
  35. end.