This commit is contained in:
red-prig 2023-06-19 21:21:55 +03:00
parent 176d715d34
commit 74dc091e83
2 changed files with 5 additions and 1 deletions

View File

@ -135,7 +135,7 @@ begin
end;
initialization
pad_handles:=TIntegerHandles.Create(0);
pad_handles:=TIntegerHandles.Create(1);
pad_handles.max_key:=16;
end.

View File

@ -99,6 +99,8 @@ begin
Exit(SCE_PAD_ERROR_INVALID_ARG);
end;
Writeln('scePadOpen:[userID=',userID,' type=',_type,' index=',index,']');
_sig_lock;
sce_handle:=FindPadByParam(userID,_type,index);
@ -211,6 +213,8 @@ begin
sce_handle.ReadState(data);
//data^.connected :=True;
sce_handle.Release;
_sig_unlock;
Result:=0;