2024-02-23 22:32:32 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2024-06-15 17:43:01 +02:00
|
|
|
// Generated By moduleGenerator
|
2024-06-16 20:27:08 +02:00
|
|
|
#include <common/singleton.h>
|
2024-02-27 23:10:34 +01:00
|
|
|
#include "common/logging/log.h"
|
2024-04-13 23:35:48 +02:00
|
|
|
#include "core/libraries/error_codes.h"
|
|
|
|
#include "core/libraries/libs.h"
|
2024-06-16 20:27:08 +02:00
|
|
|
#include "input/controller.h"
|
2024-06-15 17:43:01 +02:00
|
|
|
#include "pad.h"
|
2023-10-13 08:40:59 +02:00
|
|
|
|
2024-06-15 17:43:01 +02:00
|
|
|
namespace Libraries::Pad {
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadClose(s32 handle) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadConnectPort() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadDeviceClassGetExtendedInformation(
|
|
|
|
s32 handle, OrbisPadDeviceClassExtendedInformation* pExtInfo) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadDeviceClassParseData(s32 handle, const OrbisPadData* pData,
|
|
|
|
OrbisPadDeviceClassData* pDeviceClassData) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadDeviceOpen() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadDisableVibration() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadDisconnectDevice() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadDisconnectPort() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadEnableAutoDetect() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadEnableExtensionPort() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadEnableSpecificDeviceClass() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadEnableUsbConnection() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetBluetoothAddress() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetCapability() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetControllerInformation(s32 handle, OrbisPadControllerInformation* pInfo) {
|
2024-06-16 20:27:08 +02:00
|
|
|
LOG_INFO(Lib_Pad, "called handle = {}", handle);
|
2024-06-24 12:46:45 +02:00
|
|
|
std::memset(pInfo, 0, sizeof(OrbisPadControllerInformation));
|
2024-08-06 17:43:09 +02:00
|
|
|
if (handle < 0) {
|
|
|
|
pInfo->touchPadInfo.pixelDensity = 1;
|
|
|
|
pInfo->touchPadInfo.resolution.x = 1920;
|
|
|
|
pInfo->touchPadInfo.resolution.y = 950;
|
|
|
|
pInfo->stickInfo.deadZoneLeft = 2;
|
|
|
|
pInfo->stickInfo.deadZoneRight = 2;
|
|
|
|
pInfo->connectionType = ORBIS_PAD_PORT_TYPE_STANDARD;
|
|
|
|
pInfo->connectedCount = 1;
|
|
|
|
pInfo->connected = false;
|
|
|
|
pInfo->deviceClass = ORBIS_PAD_DEVICE_CLASS_STANDARD;
|
|
|
|
return SCE_OK;
|
|
|
|
}
|
2024-06-16 20:27:08 +02:00
|
|
|
pInfo->touchPadInfo.pixelDensity = 1;
|
|
|
|
pInfo->touchPadInfo.resolution.x = 1920;
|
|
|
|
pInfo->touchPadInfo.resolution.y = 950;
|
|
|
|
pInfo->stickInfo.deadZoneLeft = 2;
|
|
|
|
pInfo->stickInfo.deadZoneRight = 2;
|
|
|
|
pInfo->connectionType = ORBIS_PAD_PORT_TYPE_STANDARD;
|
|
|
|
pInfo->connectedCount = 1;
|
|
|
|
pInfo->connected = 1;
|
|
|
|
pInfo->deviceClass = ORBIS_PAD_DEVICE_CLASS_STANDARD;
|
|
|
|
return SCE_OK;
|
2024-06-15 17:43:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetDataInternal() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetDeviceId() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetDeviceInfo() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetExtControllerInformation() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetExtensionUnitInfo() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetFeatureReport() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetHandle(s32 userId, s32 type, s32 index) {
|
2024-06-20 16:10:14 +02:00
|
|
|
LOG_DEBUG(Lib_Pad, "(DUMMY) called");
|
|
|
|
return 1;
|
2024-06-15 17:43:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetIdleCount() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetInfo() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetInfoByPortType() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetLicenseControllerInformation() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetMotionSensorPosition() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetMotionTimerUnit() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetSphereRadius() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadGetVersionInfo() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
2023-10-13 16:44:15 +02:00
|
|
|
|
2023-11-06 00:11:54 +01:00
|
|
|
int PS4_SYSV_ABI scePadInit() {
|
2024-06-15 17:43:01 +02:00
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadIsBlasterConnected() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadIsDS4Connected() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadIsLightBarBaseBrightnessControllable() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadIsMoveConnected() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadIsMoveReproductionModel() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadIsValidHandle() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadMbusInit() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadMbusTerm() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadOpen(s32 userId, s32 type, s32 index, const OrbisPadOpenParam* pParam) {
|
2024-06-16 20:27:08 +02:00
|
|
|
LOG_INFO(Lib_Pad, "(DUMMY) called user_id = {} type = {} index = {}", userId, type, index);
|
|
|
|
return 1; // dummy
|
2024-06-15 17:43:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadOpenExt() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadOpenExt2() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadOutputReport() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadRead(s32 handle, OrbisPadData* pData, s32 num) {
|
2024-06-24 12:46:45 +02:00
|
|
|
std::memset(pData, 0, sizeof(OrbisPadData));
|
2024-06-16 20:27:08 +02:00
|
|
|
int connected_count = 0;
|
|
|
|
bool connected = false;
|
|
|
|
Input::State states[64];
|
|
|
|
auto* controller = Common::Singleton<Input::GameController>::Instance();
|
|
|
|
int ret_num = controller->ReadStates(states, num, &connected, &connected_count);
|
|
|
|
|
|
|
|
if (!connected) {
|
|
|
|
ret_num = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (int i = 0; i < ret_num; i++) {
|
|
|
|
pData[i].buttons = states[i].buttonsState;
|
2024-06-17 11:52:25 +02:00
|
|
|
pData[i].leftStick.x = states[i].axes[static_cast<int>(Input::Axis::LeftX)];
|
|
|
|
pData[i].leftStick.y = states[i].axes[static_cast<int>(Input::Axis::LeftY)];
|
|
|
|
pData[i].rightStick.x = states[i].axes[static_cast<int>(Input::Axis::RightX)];
|
|
|
|
pData[i].rightStick.y = states[i].axes[static_cast<int>(Input::Axis::RightY)];
|
|
|
|
pData[i].analogButtons.l2 = states[i].axes[static_cast<int>(Input::Axis::TriggerLeft)];
|
|
|
|
pData[i].analogButtons.r2 = states[i].axes[static_cast<int>(Input::Axis::TriggerRight)];
|
2024-06-16 20:27:08 +02:00
|
|
|
pData[i].orientation.x = 0.0f;
|
|
|
|
pData[i].orientation.y = 0.0f;
|
|
|
|
pData[i].orientation.z = 0.0f;
|
|
|
|
pData[i].orientation.w = 1.0f;
|
|
|
|
pData[i].acceleration.x = 0.0f;
|
|
|
|
pData[i].acceleration.y = 0.0f;
|
|
|
|
pData[i].acceleration.z = 0.0f;
|
|
|
|
pData[i].angularVelocity.x = 0.0f;
|
|
|
|
pData[i].angularVelocity.y = 0.0f;
|
|
|
|
pData[i].angularVelocity.z = 0.0f;
|
|
|
|
pData[i].touchData.touchNum = 0;
|
|
|
|
pData[i].touchData.touch[0].x = 0;
|
|
|
|
pData[i].touchData.touch[0].y = 0;
|
|
|
|
pData[i].touchData.touch[0].id = 1;
|
|
|
|
pData[i].touchData.touch[1].x = 0;
|
|
|
|
pData[i].touchData.touch[1].y = 0;
|
|
|
|
pData[i].touchData.touch[1].id = 2;
|
|
|
|
pData[i].connected = connected;
|
|
|
|
pData[i].timestamp = states[i].time;
|
|
|
|
pData[i].connectedCount = connected_count;
|
|
|
|
pData[i].deviceUniqueDataLen = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret_num;
|
2024-06-15 17:43:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadReadBlasterForTracker() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadReadExt() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadReadForTracker() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadReadHistory() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadReadState(s32 handle, OrbisPadData* pData) {
|
2024-06-16 20:27:08 +02:00
|
|
|
auto* controller = Common::Singleton<Input::GameController>::Instance();
|
|
|
|
|
|
|
|
int connectedCount = 0;
|
|
|
|
bool isConnected = false;
|
|
|
|
Input::State state;
|
2024-06-24 12:46:45 +02:00
|
|
|
std::memset(pData, 0, sizeof(OrbisPadData));
|
2024-06-17 11:52:25 +02:00
|
|
|
controller->ReadState(&state, &isConnected, &connectedCount);
|
2024-06-16 20:27:08 +02:00
|
|
|
pData->buttons = state.buttonsState;
|
2024-06-17 11:52:25 +02:00
|
|
|
pData->leftStick.x = state.axes[static_cast<int>(Input::Axis::LeftX)];
|
|
|
|
pData->leftStick.y = state.axes[static_cast<int>(Input::Axis::LeftY)];
|
|
|
|
pData->rightStick.x = state.axes[static_cast<int>(Input::Axis::RightX)];
|
|
|
|
pData->rightStick.y = state.axes[static_cast<int>(Input::Axis::RightY)];
|
|
|
|
pData->analogButtons.l2 = state.axes[static_cast<int>(Input::Axis::TriggerLeft)];
|
|
|
|
pData->analogButtons.r2 = state.axes[static_cast<int>(Input::Axis::TriggerRight)];
|
2024-06-16 20:27:08 +02:00
|
|
|
pData->orientation.x = 0;
|
|
|
|
pData->orientation.y = 0;
|
|
|
|
pData->orientation.z = 0;
|
|
|
|
pData->orientation.w = 0;
|
2024-06-24 12:26:18 +02:00
|
|
|
pData->acceleration.x = 0.0f;
|
|
|
|
pData->acceleration.y = 0.0f;
|
|
|
|
pData->acceleration.z = 0.0f;
|
|
|
|
pData->angularVelocity.x = 0.0f;
|
|
|
|
pData->angularVelocity.y = 0.0f;
|
|
|
|
pData->angularVelocity.z = 0.0f;
|
|
|
|
pData->touchData.touchNum = 0;
|
|
|
|
pData->touchData.touch[0].x = 0;
|
|
|
|
pData->touchData.touch[0].y = 0;
|
|
|
|
pData->touchData.touch[0].id = 1;
|
|
|
|
pData->touchData.touch[1].x = 0;
|
|
|
|
pData->touchData.touch[1].y = 0;
|
|
|
|
pData->touchData.touch[1].id = 2;
|
2024-06-16 20:27:08 +02:00
|
|
|
pData->timestamp = state.time;
|
|
|
|
pData->connected = true; // isConnected; //TODO fix me proper
|
|
|
|
pData->connectedCount = 1; // connectedCount;
|
|
|
|
pData->deviceUniqueDataLen = 0;
|
|
|
|
|
|
|
|
return SCE_OK;
|
2024-06-15 17:43:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadReadStateExt() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadResetLightBar(s32 handle) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadResetLightBarAll() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadResetLightBarAllByPortType() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadResetOrientation(s32 handle) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadResetOrientationForTracker() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetAngularVelocityDeadbandState(s32 handle, bool bEnable) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetAutoPowerOffCount() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetButtonRemappingInfo() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetConnection() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetExtensionReport() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetFeatureReport() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetForceIntercepted() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetLightBar(s32 handle, const OrbisPadLightBarParam* pParam) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetLightBarBaseBrightness() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetLightBarBlinking() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetLightBarForTracker() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetLoginUserNumber() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetMotionSensorState(s32 handle, bool bEnable) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetProcessFocus() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetProcessPrivilege() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetProcessPrivilegeOfButtonRemapping() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetShareButtonMaskForRemotePlay() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetTiltCorrectionState(s32 handle, bool bEnable) {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetUserColor() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetVibration(s32 handle, const OrbisPadVibrationParam* pParam) {
|
2024-08-08 14:02:10 +02:00
|
|
|
LOG_DEBUG(Lib_Pad, "(STUBBED) called");
|
2024-06-15 17:43:01 +02:00
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetVibrationForce() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSetVrTrackingMode() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadShareOutputData() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadStartRecording() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadStopRecording() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadSwitchConnection() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadVertualDeviceAddDevice() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadVirtualDeviceAddDevice() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadVirtualDeviceDeleteDevice() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadVirtualDeviceDisableButtonRemapping() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadVirtualDeviceGetRemoteSetting() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI scePadVirtualDeviceInsertData() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI Func_28B998C7D8A3DA1D() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI Func_298D21481F94C9FA() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI Func_51E514BCD3A05CA5() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI Func_89C9237E393DA243() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int PS4_SYSV_ABI Func_EF103E845B6F0420() {
|
|
|
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
|
|
|
return ORBIS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterlibScePad(Core::Loader::SymbolsResolver* sym) {
|
|
|
|
LIB_FUNCTION("6ncge5+l5Qs", "libScePad", 1, "libScePad", 1, 1, scePadClose);
|
|
|
|
LIB_FUNCTION("kazv1NzSB8c", "libScePad", 1, "libScePad", 1, 1, scePadConnectPort);
|
|
|
|
LIB_FUNCTION("AcslpN1jHR8", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadDeviceClassGetExtendedInformation);
|
|
|
|
LIB_FUNCTION("IHPqcbc0zCA", "libScePad", 1, "libScePad", 1, 1, scePadDeviceClassParseData);
|
|
|
|
LIB_FUNCTION("d7bXuEBycDI", "libScePad", 1, "libScePad", 1, 1, scePadDeviceOpen);
|
|
|
|
LIB_FUNCTION("0aziJjRZxqQ", "libScePad", 1, "libScePad", 1, 1, scePadDisableVibration);
|
|
|
|
LIB_FUNCTION("pnZXireDoeI", "libScePad", 1, "libScePad", 1, 1, scePadDisconnectDevice);
|
|
|
|
LIB_FUNCTION("9ez71nWSvD0", "libScePad", 1, "libScePad", 1, 1, scePadDisconnectPort);
|
|
|
|
LIB_FUNCTION("77ooWxGOIVs", "libScePad", 1, "libScePad", 1, 1, scePadEnableAutoDetect);
|
|
|
|
LIB_FUNCTION("+cE4Jx431wc", "libScePad", 1, "libScePad", 1, 1, scePadEnableExtensionPort);
|
|
|
|
LIB_FUNCTION("E1KEw5XMGQQ", "libScePad", 1, "libScePad", 1, 1, scePadEnableSpecificDeviceClass);
|
|
|
|
LIB_FUNCTION("DD-KiRLBqkQ", "libScePad", 1, "libScePad", 1, 1, scePadEnableUsbConnection);
|
|
|
|
LIB_FUNCTION("Q66U8FdrMaw", "libScePad", 1, "libScePad", 1, 1, scePadGetBluetoothAddress);
|
|
|
|
LIB_FUNCTION("qtasqbvwgV4", "libScePad", 1, "libScePad", 1, 1, scePadGetCapability);
|
|
|
|
LIB_FUNCTION("gjP9-KQzoUk", "libScePad", 1, "libScePad", 1, 1, scePadGetControllerInformation);
|
|
|
|
LIB_FUNCTION("Uq6LgTJEmQs", "libScePad", 1, "libScePad", 1, 1, scePadGetDataInternal);
|
|
|
|
LIB_FUNCTION("hDgisSGkOgw", "libScePad", 1, "libScePad", 1, 1, scePadGetDeviceId);
|
|
|
|
LIB_FUNCTION("4rS5zG7RFaM", "libScePad", 1, "libScePad", 1, 1, scePadGetDeviceInfo);
|
|
|
|
LIB_FUNCTION("hGbf2QTBmqc", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadGetExtControllerInformation);
|
|
|
|
LIB_FUNCTION("1DmZjZAuzEM", "libScePad", 1, "libScePad", 1, 1, scePadGetExtensionUnitInfo);
|
|
|
|
LIB_FUNCTION("PZSoY8j0Pko", "libScePad", 1, "libScePad", 1, 1, scePadGetFeatureReport);
|
|
|
|
LIB_FUNCTION("u1GRHp+oWoY", "libScePad", 1, "libScePad", 1, 1, scePadGetHandle);
|
|
|
|
LIB_FUNCTION("kiA9bZhbnAg", "libScePad", 1, "libScePad", 1, 1, scePadGetIdleCount);
|
|
|
|
LIB_FUNCTION("1Odcw19nADw", "libScePad", 1, "libScePad", 1, 1, scePadGetInfo);
|
|
|
|
LIB_FUNCTION("4x5Im8pr0-4", "libScePad", 1, "libScePad", 1, 1, scePadGetInfoByPortType);
|
|
|
|
LIB_FUNCTION("vegw8qax5MI", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadGetLicenseControllerInformation);
|
|
|
|
LIB_FUNCTION("WPIB7zBWxVE", "libScePad", 1, "libScePad", 1, 1, scePadGetMotionSensorPosition);
|
|
|
|
LIB_FUNCTION("k4+nDV9vbT0", "libScePad", 1, "libScePad", 1, 1, scePadGetMotionTimerUnit);
|
|
|
|
LIB_FUNCTION("do-JDWX+zRs", "libScePad", 1, "libScePad", 1, 1, scePadGetSphereRadius);
|
|
|
|
LIB_FUNCTION("QuOaoOcSOw0", "libScePad", 1, "libScePad", 1, 1, scePadGetVersionInfo);
|
2023-10-07 11:03:03 +02:00
|
|
|
LIB_FUNCTION("hv1luiJrqQM", "libScePad", 1, "libScePad", 1, 1, scePadInit);
|
2024-06-15 17:43:01 +02:00
|
|
|
LIB_FUNCTION("bi0WNvZ1nug", "libScePad", 1, "libScePad", 1, 1, scePadIsBlasterConnected);
|
|
|
|
LIB_FUNCTION("mEC+xJKyIjQ", "libScePad", 1, "libScePad", 1, 1, scePadIsDS4Connected);
|
|
|
|
LIB_FUNCTION("d2Qk-i8wGak", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadIsLightBarBaseBrightnessControllable);
|
|
|
|
LIB_FUNCTION("4y9RNPSBsqg", "libScePad", 1, "libScePad", 1, 1, scePadIsMoveConnected);
|
|
|
|
LIB_FUNCTION("9e56uLgk5y0", "libScePad", 1, "libScePad", 1, 1, scePadIsMoveReproductionModel);
|
|
|
|
LIB_FUNCTION("pFTi-yOrVeQ", "libScePad", 1, "libScePad", 1, 1, scePadIsValidHandle);
|
|
|
|
LIB_FUNCTION("CfwUlQtCFi4", "libScePad", 1, "libScePad", 1, 1, scePadMbusInit);
|
|
|
|
LIB_FUNCTION("s7CvzS+9ZIs", "libScePad", 1, "libScePad", 1, 1, scePadMbusTerm);
|
2023-10-07 11:03:03 +02:00
|
|
|
LIB_FUNCTION("xk0AcarP3V4", "libScePad", 1, "libScePad", 1, 1, scePadOpen);
|
2024-06-15 17:43:01 +02:00
|
|
|
LIB_FUNCTION("WFIiSfXGUq8", "libScePad", 1, "libScePad", 1, 1, scePadOpenExt);
|
|
|
|
LIB_FUNCTION("71E9e6n+2R8", "libScePad", 1, "libScePad", 1, 1, scePadOpenExt2);
|
|
|
|
LIB_FUNCTION("DrUu8cPrje8", "libScePad", 1, "libScePad", 1, 1, scePadOutputReport);
|
2024-04-05 08:27:13 +02:00
|
|
|
LIB_FUNCTION("q1cHNfGycLI", "libScePad", 1, "libScePad", 1, 1, scePadRead);
|
2024-06-15 17:43:01 +02:00
|
|
|
LIB_FUNCTION("fm1r2vv5+OU", "libScePad", 1, "libScePad", 1, 1, scePadReadBlasterForTracker);
|
|
|
|
LIB_FUNCTION("QjwkT2Ycmew", "libScePad", 1, "libScePad", 1, 1, scePadReadExt);
|
|
|
|
LIB_FUNCTION("2NhkFTRnXHk", "libScePad", 1, "libScePad", 1, 1, scePadReadForTracker);
|
|
|
|
LIB_FUNCTION("3u4M8ck9vJM", "libScePad", 1, "libScePad", 1, 1, scePadReadHistory);
|
|
|
|
LIB_FUNCTION("YndgXqQVV7c", "libScePad", 1, "libScePad", 1, 1, scePadReadState);
|
|
|
|
LIB_FUNCTION("5Wf4q349s+Q", "libScePad", 1, "libScePad", 1, 1, scePadReadStateExt);
|
|
|
|
LIB_FUNCTION("DscD1i9HX1w", "libScePad", 1, "libScePad", 1, 1, scePadResetLightBar);
|
|
|
|
LIB_FUNCTION("+4c9xRLmiXQ", "libScePad", 1, "libScePad", 1, 1, scePadResetLightBarAll);
|
|
|
|
LIB_FUNCTION("+Yp6+orqf1M", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadResetLightBarAllByPortType);
|
|
|
|
LIB_FUNCTION("rIZnR6eSpvk", "libScePad", 1, "libScePad", 1, 1, scePadResetOrientation);
|
|
|
|
LIB_FUNCTION("jbAqAvLEP4A", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadResetOrientationForTracker);
|
|
|
|
LIB_FUNCTION("r44mAxdSG+U", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadSetAngularVelocityDeadbandState);
|
|
|
|
LIB_FUNCTION("ew647HuKi2Y", "libScePad", 1, "libScePad", 1, 1, scePadSetAutoPowerOffCount);
|
|
|
|
LIB_FUNCTION("MbTt1EHYCTg", "libScePad", 1, "libScePad", 1, 1, scePadSetButtonRemappingInfo);
|
|
|
|
LIB_FUNCTION("MLA06oNfF+4", "libScePad", 1, "libScePad", 1, 1, scePadSetConnection);
|
|
|
|
LIB_FUNCTION("bsbHFI0bl5s", "libScePad", 1, "libScePad", 1, 1, scePadSetExtensionReport);
|
|
|
|
LIB_FUNCTION("xqgVCEflEDY", "libScePad", 1, "libScePad", 1, 1, scePadSetFeatureReport);
|
|
|
|
LIB_FUNCTION("lrjFx4xWnY8", "libScePad", 1, "libScePad", 1, 1, scePadSetForceIntercepted);
|
|
|
|
LIB_FUNCTION("RR4novUEENY", "libScePad", 1, "libScePad", 1, 1, scePadSetLightBar);
|
|
|
|
LIB_FUNCTION("dhQXEvmrVNQ", "libScePad", 1, "libScePad", 1, 1, scePadSetLightBarBaseBrightness);
|
|
|
|
LIB_FUNCTION("etaQhgPHDRY", "libScePad", 1, "libScePad", 1, 1, scePadSetLightBarBlinking);
|
|
|
|
LIB_FUNCTION("iHuOWdvQVpg", "libScePad", 1, "libScePad", 1, 1, scePadSetLightBarForTracker);
|
|
|
|
LIB_FUNCTION("o-6Y99a8dKU", "libScePad", 1, "libScePad", 1, 1, scePadSetLoginUserNumber);
|
2024-04-01 13:45:27 +02:00
|
|
|
LIB_FUNCTION("clVvL4ZDntw", "libScePad", 1, "libScePad", 1, 1, scePadSetMotionSensorState);
|
2024-06-15 17:43:01 +02:00
|
|
|
LIB_FUNCTION("flYYxek1wy8", "libScePad", 1, "libScePad", 1, 1, scePadSetProcessFocus);
|
|
|
|
LIB_FUNCTION("DmBx8K+jDWw", "libScePad", 1, "libScePad", 1, 1, scePadSetProcessPrivilege);
|
|
|
|
LIB_FUNCTION("FbxEpTRDou8", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadSetProcessPrivilegeOfButtonRemapping);
|
|
|
|
LIB_FUNCTION("yah8Bk4TcYY", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadSetShareButtonMaskForRemotePlay);
|
|
|
|
LIB_FUNCTION("vDLMoJLde8I", "libScePad", 1, "libScePad", 1, 1, scePadSetTiltCorrectionState);
|
|
|
|
LIB_FUNCTION("z+GEemoTxOo", "libScePad", 1, "libScePad", 1, 1, scePadSetUserColor);
|
|
|
|
LIB_FUNCTION("yFVnOdGxvZY", "libScePad", 1, "libScePad", 1, 1, scePadSetVibration);
|
|
|
|
LIB_FUNCTION("8BOObG94-tc", "libScePad", 1, "libScePad", 1, 1, scePadSetVibrationForce);
|
|
|
|
LIB_FUNCTION("--jrY4SHfm8", "libScePad", 1, "libScePad", 1, 1, scePadSetVrTrackingMode);
|
|
|
|
LIB_FUNCTION("zFJ35q3RVnY", "libScePad", 1, "libScePad", 1, 1, scePadShareOutputData);
|
|
|
|
LIB_FUNCTION("80XdmVYsNPA", "libScePad", 1, "libScePad", 1, 1, scePadStartRecording);
|
|
|
|
LIB_FUNCTION("gAHvg6JPIic", "libScePad", 1, "libScePad", 1, 1, scePadStopRecording);
|
|
|
|
LIB_FUNCTION("Oi7FzRWFr0Y", "libScePad", 1, "libScePad", 1, 1, scePadSwitchConnection);
|
|
|
|
LIB_FUNCTION("0MB5x-ieRGI", "libScePad", 1, "libScePad", 1, 1, scePadVertualDeviceAddDevice);
|
|
|
|
LIB_FUNCTION("N7tpsjWQ87s", "libScePad", 1, "libScePad", 1, 1, scePadVirtualDeviceAddDevice);
|
|
|
|
LIB_FUNCTION("PFec14-UhEQ", "libScePad", 1, "libScePad", 1, 1, scePadVirtualDeviceDeleteDevice);
|
|
|
|
LIB_FUNCTION("pjPCronWdxI", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadVirtualDeviceDisableButtonRemapping);
|
|
|
|
LIB_FUNCTION("LKXfw7VJYqg", "libScePad", 1, "libScePad", 1, 1,
|
|
|
|
scePadVirtualDeviceGetRemoteSetting);
|
|
|
|
LIB_FUNCTION("IWOyO5jKuZg", "libScePad", 1, "libScePad", 1, 1, scePadVirtualDeviceInsertData);
|
|
|
|
LIB_FUNCTION("KLmYx9ij2h0", "libScePad", 1, "libScePad", 1, 1, Func_28B998C7D8A3DA1D);
|
|
|
|
LIB_FUNCTION("KY0hSB+Uyfo", "libScePad", 1, "libScePad", 1, 1, Func_298D21481F94C9FA);
|
|
|
|
LIB_FUNCTION("UeUUvNOgXKU", "libScePad", 1, "libScePad", 1, 1, Func_51E514BCD3A05CA5);
|
|
|
|
LIB_FUNCTION("ickjfjk9okM", "libScePad", 1, "libScePad", 1, 1, Func_89C9237E393DA243);
|
|
|
|
LIB_FUNCTION("7xA+hFtvBCA", "libScePad", 1, "libScePad", 1, 1, Func_EF103E845B6F0420);
|
|
|
|
};
|
2023-10-07 11:03:03 +02:00
|
|
|
|
2024-08-08 14:02:10 +02:00
|
|
|
} // namespace Libraries::Pad
|