Skip to content

Commit

Permalink
Fix TSimbaTarget.SetPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Sep 15, 2023
1 parent 467ee87 commit a46543d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Source/simba.target.pas
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,21 @@ procedure TSimbaTarget.SetPlugin(FileName, Args: String);
ChangeTarget(ETargetType.PLUGIN);

FTargetPlugin := LoadPluginTarget(FileName, Args);

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;
end;

procedure TSimbaTarget.SetPlugin(FileName, Args: String; out DebugImage: TSimbaExternalImage);
Expand Down

0 comments on commit a46543d

Please sign in to comment.