Skip to content

Commit b911709

Browse files
committed
(hidden)fixed ON-ON-ON button not assignable
1 parent 1e5e64e commit b911709

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Falcon BMS Alternative Launcher/Windows/KeyMappingWindow.xaml.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,18 @@ private void JoystickButtonMonitor()
173173

174174
if (buttons[ii] == neutralButtons[i].buttons[ii])
175175
continue;
176+
176177
if (buttons[ii] == CommonConstants.PRS0)
177178
{
178-
getNeutralPosition();
179-
continue;
179+
if (ii + 1 < CommonConstants.DX128 && buttons[ii + 1] == CommonConstants.PRS0)
180+
{
181+
getNeutralPosition();
182+
continue;
183+
}
184+
else
185+
{
186+
continue;
187+
}
180188
}
181189

182190
if (MainWindow.deviceControl.joyAssign[i].dx[ii].assign[CommonConstants.DX_PRESS].GetCallback() == "SimHotasPinkyShift" && pressedByHand == false ||

0 commit comments

Comments
 (0)