Ignore:
Timestamp:
Dec 17, 2024, 11:10:31 PM (4 days ago)
Author:
chronos
Message:
  • Added: Mouse API support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Independent/Forms/FormMain.pas

    r66 r68  
    3434    procedure ConsoleWrite(Text: string);
    3535    function LoadFile(Name: string): string;
     36    function GetMousePosition: TPoint;
    3637  public
    3738    FormConsole: TFormConsole;
     
    5859  System.Console.OnWrite := ConsoleWrite;
    5960  System.FileSystem.OnLoadFile := LoadFile;
     61  System.Mouse.OnGetPosition := GetMousePosition;
    6062  System.OnDraw := FormScreen.Redraw;
    6163  FormScreen.System := System;
     
    115117end;
    116118
     119function TFormName.GetMousePosition: TPoint;
     120begin
     121  Result := Mouse.CursorPos;
     122end;
     123
    117124end.
    118125
Note: See TracChangeset for help on using the changeset viewer.