mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-31 22:44:41 +00:00
core: Some small pad stubs
This commit is contained in:
parent
bb159eafb9
commit
f2f87f2ef6
@ -105,7 +105,7 @@ int PS4_SYSV_ABI scePadGetControllerInformation(s32 handle, OrbisPadControllerIn
|
|||||||
pInfo->stickInfo.deadZoneRight = 2;
|
pInfo->stickInfo.deadZoneRight = 2;
|
||||||
pInfo->connectionType = ORBIS_PAD_PORT_TYPE_STANDARD;
|
pInfo->connectionType = ORBIS_PAD_PORT_TYPE_STANDARD;
|
||||||
pInfo->connectedCount = 1;
|
pInfo->connectedCount = 1;
|
||||||
pInfo->connected = 1;
|
pInfo->connected = true;
|
||||||
pInfo->deviceClass = ORBIS_PAD_DEVICE_CLASS_STANDARD;
|
pInfo->deviceClass = ORBIS_PAD_DEVICE_CLASS_STANDARD;
|
||||||
return SCE_OK;
|
return SCE_OK;
|
||||||
}
|
}
|
||||||
@ -125,9 +125,16 @@ int PS4_SYSV_ABI scePadGetDeviceInfo() {
|
|||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI scePadGetExtControllerInformation() {
|
int PS4_SYSV_ABI scePadGetExtControllerInformation(s32 handle,
|
||||||
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
OrbisPadExtendedControllerInformation* pInfo) {
|
||||||
return ORBIS_OK;
|
LOG_INFO(Lib_Pad, "called handle = {}", handle);
|
||||||
|
|
||||||
|
pInfo->padType1 = 0;
|
||||||
|
pInfo->padType2 = 0;
|
||||||
|
pInfo->capability = 0;
|
||||||
|
|
||||||
|
auto res = scePadGetControllerInformation(handle, &pInfo->base);
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI scePadGetExtensionUnitInfo() {
|
int PS4_SYSV_ABI scePadGetExtensionUnitInfo() {
|
||||||
@ -237,7 +244,7 @@ int PS4_SYSV_ABI scePadOpen(s32 userId, s32 type, s32 index, const OrbisPadOpenP
|
|||||||
|
|
||||||
int PS4_SYSV_ABI scePadOpenExt() {
|
int PS4_SYSV_ABI scePadOpenExt() {
|
||||||
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
LOG_ERROR(Lib_Pad, "(STUBBED) called");
|
||||||
return ORBIS_OK;
|
return 1; // dummy
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI scePadOpenExt2() {
|
int PS4_SYSV_ABI scePadOpenExt2() {
|
||||||
|
@ -212,6 +212,19 @@ struct OrbisPadControllerInformation {
|
|||||||
u8 reserve[8];
|
u8 reserve[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct OrbisPadExtendedControllerInformation {
|
||||||
|
OrbisPadControllerInformation base;
|
||||||
|
u16 padType1;
|
||||||
|
u16 padType2;
|
||||||
|
u8 capability;
|
||||||
|
|
||||||
|
union {
|
||||||
|
u8 quantityOfSelectorSwitch;
|
||||||
|
int maxPhysicalWheelAngle;
|
||||||
|
u8 data[8];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
struct OrbisPadOpenParam {
|
struct OrbisPadOpenParam {
|
||||||
u8 reserve[8];
|
u8 reserve[8];
|
||||||
};
|
};
|
||||||
@ -248,7 +261,8 @@ int PS4_SYSV_ABI scePadGetControllerInformation(s32 handle, OrbisPadControllerIn
|
|||||||
int PS4_SYSV_ABI scePadGetDataInternal();
|
int PS4_SYSV_ABI scePadGetDataInternal();
|
||||||
int PS4_SYSV_ABI scePadGetDeviceId();
|
int PS4_SYSV_ABI scePadGetDeviceId();
|
||||||
int PS4_SYSV_ABI scePadGetDeviceInfo();
|
int PS4_SYSV_ABI scePadGetDeviceInfo();
|
||||||
int PS4_SYSV_ABI scePadGetExtControllerInformation();
|
int PS4_SYSV_ABI scePadGetExtControllerInformation(s32 handle,
|
||||||
|
OrbisPadExtendedControllerInformation* pInfo);
|
||||||
int PS4_SYSV_ABI scePadGetExtensionUnitInfo();
|
int PS4_SYSV_ABI scePadGetExtensionUnitInfo();
|
||||||
int PS4_SYSV_ABI scePadGetFeatureReport();
|
int PS4_SYSV_ABI scePadGetFeatureReport();
|
||||||
int PS4_SYSV_ABI scePadGetHandle(s32 userId, s32 type, s32 index);
|
int PS4_SYSV_ABI scePadGetHandle(s32 userId, s32 type, s32 index);
|
||||||
|
Loading…
Reference in New Issue
Block a user