rpcsx/rpcs3/Emu/SysCalls/Modules/cellGem.cpp

282 lines
5 KiB
C++
Raw Normal View History

2014-07-12 09:46:14 +02:00
#include "stdafx.h"
#include "Emu/Memory/Memory.h"
#include "Emu/SysCalls/Modules.h"
2014-08-23 22:40:04 +02:00
#include "cellGem.h"
extern Module cellGem;
2015-07-09 17:30:37 +02:00
s32 cellGemCalibrate()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemClearStatusFlags()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemConvertVideoFinish()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemConvertVideoStart()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemEnableCameraPitchAngleCorrection()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemEnableMagnetometer()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemEnd()
{
cellGem.Warning("cellGemEnd()");
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemFilterState()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemForceRGB()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetAccelerometerPositionInDevice()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetAllTrackableHues()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetCameraState()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetEnvironmentLightingColor()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetHuePixels()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetImageState()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetInertialState()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetInfo(vm::ptr<CellGemInfo> info)
{
2015-07-31 23:47:29 +02:00
cellGem.Todo("cellGemGetInfo(info=*0x%x)", info);
2014-10-18 20:14:16 +02:00
// TODO: Support many controllers to be connected
2015-07-31 23:47:29 +02:00
*info = {};
return CELL_OK;
}
s32 cellGemGetMemorySize(s32 max_connect)
{
cellGem.Warning("cellGemGetMemorySize(max_connect=%d)", max_connect);
2015-07-31 23:47:29 +02:00
if (max_connect > CELL_GEM_MAX_NUM || max_connect <= 0)
{
return CELL_GEM_ERROR_INVALID_PARAMETER;
2015-07-31 23:47:29 +02:00
}
2015-07-31 23:47:29 +02:00
return max_connect <= 2 ? 0x120000 : 0x140000;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetRGB()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetRumble()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetState()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetStatusFlags()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemGetTrackerHue()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemHSVtoRGB()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemInit(vm::ptr<CellGemAttribute> attribute)
{
2015-07-11 01:38:40 +02:00
cellGem.Warning("cellGemInit(attribute=*0x%x)", attribute);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemInvalidateCalibration()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemIsTrackableHue()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemPrepareCamera()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemPrepareVideoConvert()
{
UNIMPLEMENTED_FUNC(cellGem);
2015-07-31 23:47:29 +02:00
return CELL_OK;
}
2014-10-18 20:14:16 +02:00
2015-07-31 23:47:29 +02:00
s32 cellGemReadExternalPortDeviceInfo()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemReset()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemSetRumble()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemSetYaw()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemTrackHues()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemUpdateFinish()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemUpdateStart()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
2015-07-09 17:30:37 +02:00
s32 cellGemWriteExternalPort()
{
UNIMPLEMENTED_FUNC(cellGem);
return CELL_OK;
}
Module cellGem("cellGem", []()
{
REG_FUNC(cellGem, cellGemCalibrate);
REG_FUNC(cellGem, cellGemClearStatusFlags);
REG_FUNC(cellGem, cellGemConvertVideoFinish);
REG_FUNC(cellGem, cellGemConvertVideoStart);
REG_FUNC(cellGem, cellGemEnableCameraPitchAngleCorrection);
REG_FUNC(cellGem, cellGemEnableMagnetometer);
REG_FUNC(cellGem, cellGemEnd);
REG_FUNC(cellGem, cellGemFilterState);
REG_FUNC(cellGem, cellGemForceRGB);
REG_FUNC(cellGem, cellGemGetAccelerometerPositionInDevice);
REG_FUNC(cellGem, cellGemGetAllTrackableHues);
REG_FUNC(cellGem, cellGemGetCameraState);
REG_FUNC(cellGem, cellGemGetEnvironmentLightingColor);
REG_FUNC(cellGem, cellGemGetHuePixels);
REG_FUNC(cellGem, cellGemGetImageState);
REG_FUNC(cellGem, cellGemGetInertialState);
REG_FUNC(cellGem, cellGemGetInfo);
REG_FUNC(cellGem, cellGemGetMemorySize);
REG_FUNC(cellGem, cellGemGetRGB);
REG_FUNC(cellGem, cellGemGetRumble);
REG_FUNC(cellGem, cellGemGetState);
REG_FUNC(cellGem, cellGemGetStatusFlags);
REG_FUNC(cellGem, cellGemGetTrackerHue);
REG_FUNC(cellGem, cellGemHSVtoRGB);
REG_FUNC(cellGem, cellGemInit);
REG_FUNC(cellGem, cellGemInvalidateCalibration);
REG_FUNC(cellGem, cellGemIsTrackableHue);
REG_FUNC(cellGem, cellGemPrepareCamera);
REG_FUNC(cellGem, cellGemPrepareVideoConvert);
2015-07-31 23:47:29 +02:00
REG_FUNC(cellGem, cellGemReadExternalPortDeviceInfo);
REG_FUNC(cellGem, cellGemReset);
REG_FUNC(cellGem, cellGemSetRumble);
REG_FUNC(cellGem, cellGemSetYaw);
REG_FUNC(cellGem, cellGemTrackHues);
REG_FUNC(cellGem, cellGemUpdateFinish);
REG_FUNC(cellGem, cellGemUpdateStart);
REG_FUNC(cellGem, cellGemWriteExternalPort);
});