mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-26 20:15:03 +00:00
---
This commit is contained in:
parent
3b36fdc3d2
commit
69223f10ba
@ -250,7 +250,6 @@ int PS4_SYSV_ABI scePadRead(s32 handle, OrbisPadData* pData, s32 num) {
|
|||||||
if (!connected) {
|
if (!connected) {
|
||||||
ret_num = 1;
|
ret_num = 1;
|
||||||
}
|
}
|
||||||
bool kb = (Config::getControllerType() == 0);
|
|
||||||
for (int i = 0; i < ret_num; i++) {
|
for (int i = 0; i < ret_num; i++) {
|
||||||
pData[i].buttons = states[i].buttonsState;
|
pData[i].buttons = states[i].buttonsState;
|
||||||
pData[i].leftStick.x = states[i].axes[static_cast<int>(Input::Axis::LeftX)];
|
pData[i].leftStick.x = states[i].axes[static_cast<int>(Input::Axis::LeftX)];
|
||||||
@ -311,7 +310,6 @@ int PS4_SYSV_ABI scePadReadState(s32 handle, OrbisPadData* pData) {
|
|||||||
int connectedCount = 0;
|
int connectedCount = 0;
|
||||||
bool isConnected = false;
|
bool isConnected = false;
|
||||||
Input::State state;
|
Input::State state;
|
||||||
bool kb = (Config::getControllerType() == 0);
|
|
||||||
controller->ReadState(&state, &isConnected, &connectedCount);
|
controller->ReadState(&state, &isConnected, &connectedCount);
|
||||||
pData->buttons = state.buttonsState;
|
pData->buttons = state.buttonsState;
|
||||||
pData->leftStick.x = state.axes[static_cast<int>(Input::Axis::LeftX)];
|
pData->leftStick.x = state.axes[static_cast<int>(Input::Axis::LeftX)];
|
||||||
|
Loading…
Reference in New Issue
Block a user