mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-08 16:05:56 +00:00
Some functions added
This commit is contained in:
parent
35898a6cdf
commit
cd6f95c90d
16 changed files with 1589 additions and 166 deletions
|
|
@ -4,6 +4,65 @@
|
|||
|
||||
extern psv_log_base sceTouch;
|
||||
|
||||
struct SceTouchPanelInfo
|
||||
{
|
||||
s16 minAaX;
|
||||
s16 minAaY;
|
||||
s16 maxAaX;
|
||||
s16 maxAaY;
|
||||
s16 minDispX;
|
||||
s16 minDispY;
|
||||
s16 maxDispX;
|
||||
s16 maxDispY;
|
||||
u8 minForce;
|
||||
u8 maxForce;
|
||||
u8 rsv[30];
|
||||
};
|
||||
|
||||
struct SceTouchReport
|
||||
{
|
||||
u8 id;
|
||||
u8 force;
|
||||
s16 x;
|
||||
s16 y;
|
||||
s8 rsv[8];
|
||||
u16 info;
|
||||
};
|
||||
|
||||
struct SceTouchData
|
||||
{
|
||||
u64 timeStamp;
|
||||
u32 status;
|
||||
u32 reportNum;
|
||||
SceTouchReport report[8];
|
||||
};
|
||||
|
||||
s32 sceTouchGetPanelInfo(u32 port, vm::psv::ptr<SceTouchPanelInfo> pPanelInfo)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceTouchRead(u32 port, vm::psv::ptr<SceTouchData> pData, u32 nBufs)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceTouchPeek(u32 port, vm::psv::ptr<SceTouchData> pData, u32 nBufs)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceTouchSetSamplingState(u32 port, u32 state)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceTouchGetSamplingState(u32 port, vm::psv::ptr<u32> pState)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
|
||||
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceTouch, #name, name)
|
||||
|
||||
psv_log_base sceTouch("SceTouch", []()
|
||||
|
|
@ -12,9 +71,9 @@ psv_log_base sceTouch("SceTouch", []()
|
|||
sceTouch.on_unload = nullptr;
|
||||
sceTouch.on_stop = nullptr;
|
||||
|
||||
//REG_FUNC(0x169A1D58, sceTouchRead);
|
||||
//REG_FUNC(0xFF082DF0, sceTouchPeek);
|
||||
//REG_FUNC(0x1B9C5D14, sceTouchSetSamplingState);
|
||||
//REG_FUNC(0x26531526, sceTouchGetSamplingState);
|
||||
//REG_FUNC(0x10A2CA25, sceTouchGetPanelInfo);
|
||||
REG_FUNC(0x169A1D58, sceTouchRead);
|
||||
REG_FUNC(0xFF082DF0, sceTouchPeek);
|
||||
REG_FUNC(0x1B9C5D14, sceTouchSetSamplingState);
|
||||
REG_FUNC(0x26531526, sceTouchGetSamplingState);
|
||||
REG_FUNC(0x10A2CA25, sceTouchGetPanelInfo);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue