Skip to content

Commit

Permalink
Fix SimbaPluginTarget .. again
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Sep 26, 2023
1 parent 8deee04 commit 87fe930
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Source/simba.target.pas
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,24 @@ procedure TSimbaTarget.SetPlugin(FileName, Args: String; out DebugImage: TSimbaE
ChangeTarget(ETargetType.PLUGIN);

FTargetPlugin := LoadPluginTarget(FileName, Args, DebugImage);
FTarget := @FTargetPlugin;

FMethods.KeyDown := @PluginTarget_KeyDown;
FMethods.KeyUp := @PluginTarget_KeyUp;
FMethods.KeySend := @PluginTarget_KeySend;
FMethods.KeyPressed := @PluginTarget_KeyPressed;

FMethods.MouseTeleport := @PluginTarget_MouseTeleport;
FMethods.MousePosition := @PluginTarget_MousePosition;
FMethods.MousePressed := @PluginTarget_MousePressed;
FMethods.MouseDown := @PluginTarget_MouseDown;
FMethods.MouseUp := @PluginTarget_MouseUp;
FMethods.MouseScroll := @PluginTarget_MouseScroll;

FMethods.GetDimensions := @PluginTarget_GetDimensions;
FMethods.GetImageData := @PluginTarget_GetImageData;

FMethods.IsValid := @PluginTarget_IsValid;
end;

function TSimbaTarget.MousePressed(Button: EMouseButton): Boolean;
Expand Down

0 comments on commit 87fe930

Please sign in to comment.