Fix missing control when gamepad has no axis at all

This commit is contained in:
Benau
2020-03-27 12:29:25 +08:00
parent b8e9ada499
commit 2f4f0ea560

View File

@@ -187,7 +187,8 @@ bool GamePadDevice::processAndMapInput(Input::InputType type, const int id,
}
bool success = false;
if(m_prev_axis_directions.size() == 0) return false; // device not open
if (type == Input::IT_STICKMOTION &&
m_prev_axis_directions.size() == 0) return false; // device not open
if (type == Input::IT_STICKMOTION)
{