2015-01-29 16:48:05 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/System.h"
|
|
|
|
|
#include "Emu/ARMv7/PSVFuncList.h"
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
#include "sceMotion.h"
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceMotionGetState(vm::ptr<SceMotionState> motionState)
|
2015-01-30 00:58:53 +01:00
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-06-21 01:04:01 +02:00
|
|
|
}
|
2015-01-30 00:58:53 +01:00
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceMotionGetSensorState(vm::ptr<SceMotionSensorState> sensorState, s32 numRecords)
|
2015-01-30 00:58:53 +01:00
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceMotionGetBasicOrientation(vm::ptr<SceFVector3> basicOrientation)
|
2015-01-30 00:58:53 +01:00
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceMotionRotateYaw(const float radians)
|
2015-01-30 00:58:53 +01:00
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionGetTiltCorrection()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionSetTiltCorrection(s32 setValue)
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionGetDeadband()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionSetDeadband(s32 setValue)
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceMotionSetAngleThreshold(const float angle)
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-06-21 01:04:01 +02:00
|
|
|
}
|
2015-01-30 00:58:53 +01:00
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
float sceMotionGetAngleThreshold()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-06-21 01:04:01 +02:00
|
|
|
}
|
2015-01-30 00:58:53 +01:00
|
|
|
|
|
|
|
|
s32 sceMotionReset()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionMagnetometerOn()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionMagnetometerOff()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionGetMagnetometerState()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionStartSampling()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceMotionStopSampling()
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-01-29 16:48:05 +01:00
|
|
|
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceMotion, #name, name)
|
|
|
|
|
|
|
|
|
|
psv_log_base sceMotion("SceMotion", []()
|
|
|
|
|
{
|
|
|
|
|
sceMotion.on_load = nullptr;
|
|
|
|
|
sceMotion.on_unload = nullptr;
|
|
|
|
|
sceMotion.on_stop = nullptr;
|
2015-06-21 01:04:01 +02:00
|
|
|
sceMotion.on_error = nullptr;
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2015-01-30 00:58:53 +01:00
|
|
|
REG_FUNC(0xBDB32767, sceMotionGetState);
|
|
|
|
|
REG_FUNC(0x47D679EA, sceMotionGetSensorState);
|
|
|
|
|
REG_FUNC(0xC1652201, sceMotionGetTiltCorrection);
|
|
|
|
|
REG_FUNC(0xAF09FCDB, sceMotionSetTiltCorrection);
|
|
|
|
|
REG_FUNC(0x112E0EAE, sceMotionGetDeadband);
|
|
|
|
|
REG_FUNC(0x917EA390, sceMotionSetDeadband);
|
2015-01-29 16:48:05 +01:00
|
|
|
//REG_FUNC(0x20F00078, sceMotionRotateYaw);
|
2015-01-30 00:58:53 +01:00
|
|
|
REG_FUNC(0x0FD2CDA2, sceMotionReset);
|
|
|
|
|
REG_FUNC(0x28034AC9, sceMotionStartSampling);
|
|
|
|
|
REG_FUNC(0xAF32CB1D, sceMotionStopSampling);
|
2015-01-29 16:48:05 +01:00
|
|
|
//REG_FUNC(0xDACB2A41, sceMotionSetAngleThreshold);
|
|
|
|
|
//REG_FUNC(0x499B6C87, sceMotionGetAngleThreshold);
|
2015-01-30 00:58:53 +01:00
|
|
|
REG_FUNC(0x4F28BFE0, sceMotionGetBasicOrientation);
|
|
|
|
|
REG_FUNC(0x122A79F8, sceMotionMagnetometerOn);
|
|
|
|
|
REG_FUNC(0xC1A7395A, sceMotionMagnetometerOff);
|
|
|
|
|
REG_FUNC(0x3D4813AE, sceMotionGetMagnetometerState);
|
2015-01-29 16:48:05 +01:00
|
|
|
});
|