Qt: Fix crash with unmapped axes
Jeffrey Pfau jeffrey@endrift.com
Wed, 14 Sep 2016 10:24:38 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/qt/InputController.cpp
→
src/platform/qt/InputController.cpp
@@ -408,7 +408,7 @@ if (old) {
description = *old; } int deadzone = 0; - if (m_deadzones.size() > axis) { + if (axis > 0 && m_deadzones.size() > axis) { deadzone = m_deadzones[axis]; } switch (direction) {