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

« back to all changes in this revision

Viewing changes to fpcdocs/mmouseex/mouse10.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
Uses MsMouse, Crt;
 
2
 
 
3
Var hor, vert: Longint;
 
4
    x, y: Longint;
 
5
 
 
6
Begin
 
7
  If MouseFound Then
 
8
    Begin
 
9
      ClrScr;
 
10
      Writeln('Click any button to quit after you''ve entered a sequence of numbers.');
 
11
      Writeln;
 
12
      Writeln('Horizontal mickey''s per pixel:');
 
13
      Writeln('Vertical mickey''s per pixel:');
 
14
      ShowMouse;
 
15
      Repeat
 
16
        GotoXY(32,3);
 
17
        ClrEol;
 
18
        Readln(hor);
 
19
        GotoXY(30,4);
 
20
        ClrEol;
 
21
        Readln(vert);
 
22
        SetMouseSpeed(hor, vert);
 
23
      Until (GetLastButtonPress(LButton,x,y) <> 0) Or
 
24
            (GetLastButtonPress(RButton,x,y) <> 0) Or
 
25
            (GetLastButtonPress(MButton,x,y) <> 0);
 
26
    End
 
27
End.
 
28