mouse1.pp 514 B

123456789101112131415161718192021222324252627282930
  1. Program Mouse1;
  2. {example for InitMouse and MouseFound}
  3. Uses MsMouse;
  4. Begin
  5. If MouseFound Then
  6. Begin
  7. {go into graphics mode 13h}
  8. Asm
  9. movl $0x013, %eax
  10. pushl %ebp
  11. int $0x010
  12. popl %ebp
  13. End;
  14. InitMouse;
  15. ShowMouse; {otherwise it stays invisible}
  16. Writeln('Mouse Found! (press enter to quit)');
  17. Readln;
  18. {back to text mode}
  19. Asm
  20. movl $3, %eax
  21. pushl %ebp
  22. int $0x010
  23. popl %ebp
  24. End
  25. End
  26. End.