-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* libSceConvertKeycode * + --------- Co-authored-by: red-prig <vdpasha@mail.ru>
- Loading branch information
1 parent
585d06f
commit 9e10d7c
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|