~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to fpcdocs/mouseex/ex7.pp

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Program Example7;
 
2
 
 
3
{ Program to demonstrate the SetMouseXY function. }
 
4
 
 
5
Uses mouse;
 
6
 
 
7
begin
 
8
  InitMouse;
 
9
  Writeln('Click right mouse button to quit.');
 
10
  SetMouseXY(40,12);
 
11
  Repeat
 
12
    Writeln(GetMouseX,',',GetMouseY);
 
13
    If (GetMouseX>70) then
 
14
      SetMouseXY(10,GetMouseY);
 
15
    If (GetMouseY>20) then
 
16
      SetMouseXY(GetMouseX,5);
 
17
  Until (GetMouseButtons=MouseRightButton);
 
18
  DoneMouse;
 
19
end.