Merge "Fix iterator usage" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
85df93ed71
@@ -106,7 +106,7 @@ static int getGamepadkeyCode(int32_t androidKeyCode) {
|
||||
static const GamepadAxis* getGamepadAxis(int32_t androidAxisCode) {
|
||||
std::unordered_map<int32_t, int>::iterator it =
|
||||
gamepadAndroidAxisToIndexMap.find(androidAxisCode);
|
||||
if (it == gamepadAndroidToLinuxKeyMap.end()) {
|
||||
if (it == gamepadAndroidAxisToIndexMap.end()) {
|
||||
return nullptr;
|
||||
}
|
||||
return &GAMEPAD_AXES[it->second];
|
||||
|
||||
Reference in New Issue
Block a user