rpcsx/rpcs3/Emu/PSP2/Modules/sceTouch.cpp
2017-05-15 14:37:05 +03:00

45 lines
1 KiB
C++

#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/PSP2/ARMv7Module.h"
#include "sceTouch.h"
logs::channel sceTouch("sceTouch");
s32 sceTouchGetPanelInfo(u32 port, vm::ptr<SceTouchPanelInfo> pPanelInfo)
{
fmt::throw_exception("Unimplemented" HERE);
}
s32 sceTouchRead(u32 port, vm::ptr<SceTouchData> pData, u32 nBufs)
{
fmt::throw_exception("Unimplemented" HERE);
}
s32 sceTouchPeek(u32 port, vm::ptr<SceTouchData> pData, u32 nBufs)
{
fmt::throw_exception("Unimplemented" HERE);
}
s32 sceTouchSetSamplingState(u32 port, u32 state)
{
fmt::throw_exception("Unimplemented" HERE);
}
s32 sceTouchGetSamplingState(u32 port, vm::ptr<u32> pState)
{
fmt::throw_exception("Unimplemented" HERE);
}
#define REG_FUNC(nid, name) REG_FNID(SceTouch, nid, name)
DECLARE(arm_module_manager::SceTouch)("SceTouch", []()
{
REG_FUNC(0x169A1D58, sceTouchRead);
REG_FUNC(0xFF082DF0, sceTouchPeek);
REG_FUNC(0x1B9C5D14, sceTouchSetSamplingState);
REG_FUNC(0x26531526, sceTouchGetSamplingState);
REG_FUNC(0x10A2CA25, sceTouchGetPanelInfo);
});