Ignore:
Timestamp:
Dec 17, 2024, 11:10:31 PM (6 weeks ago)
Author:
chronos
Message:
  • Added: Mouse API support.
Location:
branches/Independent/Forms
Files:
2 edited

Legend:

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

    r66 r68  
    11object FormName: TFormName
    22  Left = 465
    3   Height = 535
     3  Height = 569
    44  Top = 352
    55  Width = 971
  • 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.