Skip to content

Commit

Permalink
SceConvertKeycode library (#181)
Browse files Browse the repository at this point in the history
* libSceConvertKeycode

* +

---------

Co-authored-by: red-prig <vdpasha@mail.ru>
  • Loading branch information
Ordinary205 and red-prig authored Feb 2, 2024
1 parent 585d06f commit 9e10d7c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions fpPS4.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
ps4_libSceVideoRecording,
ps4_libSceWebBrowserDialog,
ps4_libSceContentExport,
ps4_libSceConvertKeycode,
ps4_libSceUsbd,
ps4_libSceAudiodecCpu,
ps4_libSceDepth,
Expand Down
38 changes: 38 additions & 0 deletions src/ps4_libsceconvertkeycode.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
unit ps4_libSceConvertKeycode;

{$mode ObjFPC}{$H+}

interface

uses
ps4_program,
ps4_libSceIme,
Classes,
SysUtils;

implementation

function ps4_sceConvertKeycodeGetVirtualKeycode(keycode:Word;
keyboardType:Integer;
vkeycode:PWord):Integer; SysV_ABI_CDecl;
begin
Result:=0;
end;

function Load_libSceConvertKeycode(Const name:RawByteString):TElf_node;
var
lib:PLIBRARY;
begin
Result:=TElf_node.Create;
Result.pFileName:=name;

lib:=Result._add_lib('libSceConvertKeycode');
lib^.set_proc($BC8B2826C2EFBE53,@ps4_sceConvertKeycodeGetVirtualKeycode);
end;

initialization
//low priority
ps4_app.RegistredFinLoad('libSceConvertKeycode.prx',@Load_libSceConvertKeycode);

end.

0 comments on commit 9e10d7c

Please sign in to comment.