Skip to content

Commit

Permalink
sceMoveReadStateLatest (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ordinary205 authored Jan 22, 2024
1 parent 5679192 commit 5948d7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ps4_libscemove.pas
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ function ps4_sceMoveGetDeviceInfo(handle:Integer;pInfo:pSceMoveDeviceInfo):Integ
Result:=SCE_MOVE_RETURN_CODE_NO_CONTROLLER_CONNECTED;
end;

function ps4_sceMoveReadStateLatest(handle:Integer;pData:pSceMoveData):Integer; SysV_ABI_CDecl;
begin
if (pData=nil) then Exit(SCE_MOVE_ERROR_INVALID_ARG);
pData^:=Default(SceMoveData);
Result:=SCE_MOVE_RETURN_CODE_NO_CONTROLLER_CONNECTED;
end;

function ps4_sceMoveReadStateRecent(handle:Integer;
timestamp:QWORD;
pData:pSceMoveData;
Expand Down Expand Up @@ -107,6 +114,7 @@ function Load_libSceMove(Const name:RawByteString):TElf_node;
lib^.set_proc($1F30BAD0C7E32715,@ps4_sceMoveOpen);
lib^.set_proc($5D7EB0971A47C9EA,@ps4_sceMoveClose);
lib^.set_proc($1965D3CB1B3841B1,@ps4_sceMoveGetDeviceInfo);
lib^.set_proc($B6D53E24E852865E,@ps4_sceMoveReadStateLatest);
lib^.set_proc($7F66DCA4AEA425F8,@ps4_sceMoveReadStateRecent);
lib^.set_proc($205430B53D82798D,@ps4_sceMoveSetVibration);
end;
Expand Down

0 comments on commit 5948d7a

Please sign in to comment.