1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-14 13:25:14 -05:00
Simba/Units/MMLAddon/RTInc/keyboard.inc

30 lines
869 B
PHP
Raw Normal View History

2010-09-10 19:10:49 -04:00
procedure RUTIS_ps_KeyDown(Params: PRutisParamInfoArray; Result: PRutisParamInfo);
begin
ps_KeyDown(PWord(Params^[0].Data)^);
end;
procedure RUTIS_ps_KeyUp(Params: PRutisParamInfoArray; Result: PRutisParamInfo);
begin
ps_KeyUp(PWord(Params^[0].Data)^);
end;
procedure RUTIS_ps_SendKeys(Params: PRutisParamInfoArray; Result: PRutisParamInfo);
begin
ps_SendKeys(Pstring(Params^[0].Data)^);
end;
procedure RUTIS_ps_PressKey(Params: PRutisParamInfoArray; Result: PRutisParamInfo);
begin
ps_PressKey(PWord(Params^[0].Data)^);
end;
procedure RUTIS_ps_isKeyDown(Params: PRutisParamInfoArray; Result: PRutisParamInfo);
begin
Pboolean(Result^.Data)^ := ps_isKeyDown(PWord(Params^[0].Data)^);
end;
procedure RUTIS_ps_GetKeyCode(Params: PRutisParamInfoArray; Result: PRutisParamInfo);
begin
Pinteger(Result^.Data)^ := ps_GetKeyCode(Pchar(Params^[0].Data)^);
end;