all repos — mgba @ 72b499dc8e7d507b20e387f1f77a4532036d0d60

mGBA Game Boy Advance Emulator

Qt: Fix crash with unmapped axes
Jeffrey Pfau jeffrey@endrift.com
Wed, 14 Sep 2016 10:24:38 -0700
commit

72b499dc8e7d507b20e387f1f77a4532036d0d60

parent

fa92b4cd0e461ede2a70077c8acf87078a931d05

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/InputController.cppsrc/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) {