rpcsx/rpcs3/Emu/PSP2/Modules/sceTouch.cpp

45 lines
1 KiB
C++
Raw Normal View History

#include "stdafx.h"
#include "Emu/System.h"
2016-05-13 12:17:26 +02:00
#include "Emu/PSP2/ARMv7Module.h"
2015-01-30 13:19:01 +01:00
#include "sceTouch.h"
2015-01-30 11:48:12 +01:00
2017-05-13 20:30:37 +02:00
logs::channel sceTouch("sceTouch");
2016-02-01 22:53:16 +01:00
2015-06-21 01:04:01 +02:00
s32 sceTouchGetPanelInfo(u32 port, vm::ptr<SceTouchPanelInfo> pPanelInfo)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceTouchRead(u32 port, vm::ptr<SceTouchData> pData, u32 nBufs)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceTouchPeek(u32 port, vm::ptr<SceTouchData> pData, u32 nBufs)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
s32 sceTouchSetSamplingState(u32 port, u32 state)
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceTouchGetSamplingState(u32 port, vm::ptr<u32> pState)
2015-01-30 11:48:12 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 11:48:12 +01:00
}
2016-02-01 22:53:16 +01:00
#define REG_FUNC(nid, name) REG_FNID(SceTouch, nid, name)
2016-02-01 22:53:16 +01:00
DECLARE(arm_module_manager::SceTouch)("SceTouch", []()
{
2015-01-30 11:48:12 +01:00
REG_FUNC(0x169A1D58, sceTouchRead);
REG_FUNC(0xFF082DF0, sceTouchPeek);
REG_FUNC(0x1B9C5D14, sceTouchSetSamplingState);
REG_FUNC(0x26531526, sceTouchGetSamplingState);
REG_FUNC(0x10A2CA25, sceTouchGetPanelInfo);
});