Fix older ActionOrigins functions.

This commit is contained in:
Mr_Goldberg 2019-09-20 06:14:08 -04:00
parent ee4722cb33
commit b77b4e2ef5
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -467,7 +467,7 @@ int GetDigitalActionOrigins( ControllerHandle_t controllerHandle, ControllerActi
EInputActionOrigin origins[STEAM_CONTROLLER_MAX_ORIGINS];
int ret = GetDigitalActionOrigins(controllerHandle, actionSetHandle, digitalActionHandle, origins );
for (int i = 0; i < ret; ++i) {
originsOut[i] = (EControllerActionOrigin)(origins[i] - (k_EInputActionOrigin_XBoxOne_A - k_EControllerActionOrigin_XBox360_A));
originsOut[i] = (EControllerActionOrigin)(origins[i] - (k_EInputActionOrigin_XBox360_A - k_EControllerActionOrigin_XBox360_A));
}
return ret;
@ -639,7 +639,7 @@ int GetAnalogActionOrigins( ControllerHandle_t controllerHandle, ControllerActio
EInputActionOrigin origins[STEAM_CONTROLLER_MAX_ORIGINS];
int ret = GetAnalogActionOrigins(controllerHandle, actionSetHandle, analogActionHandle, origins );
for (int i = 0; i < ret; ++i) {
originsOut[i] = (EControllerActionOrigin)(origins[i] - (k_EInputActionOrigin_XBoxOne_A - k_EControllerActionOrigin_XBox360_A));
originsOut[i] = (EControllerActionOrigin)(origins[i] - (k_EInputActionOrigin_XBox360_A - k_EControllerActionOrigin_XBox360_A));
}
return ret;