Fix input error return.
This commit is contained in:
parent
1e86736853
commit
59779e735d
|
@ -58,7 +58,7 @@ X_RESULT InputSystem::GetState(uint32_t user_index, X_INPUT_STATE& out_state) {
|
||||||
for (std::vector<InputDriver*>::iterator it = drivers_.begin();
|
for (std::vector<InputDriver*>::iterator it = drivers_.begin();
|
||||||
it != drivers_.end(); ++it) {
|
it != drivers_.end(); ++it) {
|
||||||
InputDriver* driver = *it;
|
InputDriver* driver = *it;
|
||||||
if (XSUCCEEDED(driver->GetState(user_index, out_state))) {
|
if (driver->GetState(user_index, out_state) == X_ERROR_SUCCESS) {
|
||||||
return X_ERROR_SUCCESS;
|
return X_ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue