1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-28 03:52:23 -05:00
Simba/Units/MMLAddon/LPInc/Wrappers/lp_mouse.inc

40 lines
1.2 KiB
PHP
Raw Normal View History

2011-08-03 14:29:48 -04:00
procedure Lape_MoveMouse(const Params: PParamArray);
begin
ps_MoveMouse(Pinteger(Params^[0])^, Pinteger(Params^[1])^);
end;
procedure Lape_ScrollMouse(const Params: PParamArray);
begin
2011-08-03 17:54:54 -04:00
ps_ScrollMouse(Pinteger(Params^[0])^, Pinteger(Params^[1])^, Pinteger(Params^[2])^);
2011-08-03 14:29:48 -04:00
end;
procedure Lape_GetMousePos(const Params: PParamArray);
begin
ps_GetMousePos(Pinteger(Params^[0])^, Pinteger(Params^[1])^);
end;
procedure Lape_ConvIntClickType(const Params: PParamArray; const Result: Pointer);
2011-08-03 14:29:48 -04:00
begin
PClickType(Result)^ := ConvIntClickType(PInteger(Params^[0])^);
end;
procedure Lape_HoldMouse(const Params: PParamArray);
begin
2011-08-03 17:54:54 -04:00
ps_HoldMouse(Pinteger(Params^[0])^, Pinteger(Params^[1])^, Pinteger(Params^[2])^);
2011-08-03 14:29:48 -04:00
end;
procedure Lape_ReleaseMouse(const Params: PParamArray);
begin
2011-08-03 17:54:54 -04:00
ps_ReleaseMouse(Pinteger(Params^[0])^, Pinteger(Params^[1])^, Pinteger(Params^[2])^);
2011-08-03 14:29:48 -04:00
end;
procedure Lape_ClickMouse(const Params: PParamArray);
begin
2011-08-03 17:54:54 -04:00
ps_ClickMouse(Pinteger(Params^[0])^, Pinteger(Params^[1])^, Pinteger(Params^[2])^);
2011-08-03 14:29:48 -04:00
end;
procedure Lape_IsMouseButtonDown(const Params: PParamArray; const Result: Pointer);
begin
Pboolean(Result)^ := ps_IsMouseButtonDown(Pinteger(Params^[0])^);
end;