Fix input error return.

This commit is contained in:
Ben Vanik 2013-11-16 07:15:15 -08:00
parent 1e86736853
commit 59779e735d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }
} }