Skip to content

Commit 3789019

Browse files
committed
Fix bug where normal D-Pad up input didn't work
1 parent b8a8458 commit 3789019

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

HayB0XX/ProjectM.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ void ProjectM::UpdateDigitalOutputs() {
5252
mOutputState.dpadRight = mrInputState.c_right;
5353
}
5454

55-
mOutputState.dpadUp = mrInputState.midshield;
55+
// Don't override dpad up if it's already pressed using the MX + MY dpad
56+
// layer.
57+
mOutputState.dpadUp = mOutputState.dpadUp || mrInputState.midshield;
5658

5759
if (mrInputState.select)
5860
mOutputState.dpadLeft = true;

0 commit comments

Comments
 (0)