mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-23 20:38:07 +01:00
Fix older ActionOrigins functions.
This commit is contained in:
parent
ee4722cb33
commit
b77b4e2ef5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue