Skip to content

Commit 86c5da9

Browse files
author
Dave Gymer
committed
More tweaks to the look up/down timing.
1 parent 4152d5f commit 86c5da9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Controlzmo/Views/SimpleViews.cs

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ public partial class LookOverheadPanel : IButtonCallback<T16000mHotas>
1313
public int GetButton() => T16000mHotas.BUTTON_FRONT_ROCKER_UP;
1414

1515
public void OnPress(ExtendedSimConnect _) {
16-
vJoy.getController().QuickClick(108u);
1716
sticker.TriggerStart();
1817
}
1918

2019
public void OnRelease(ExtendedSimConnect _) {
21-
if (sticker.IsStuck(500))
22-
vJoy.getController().QuickClick(109u);
20+
vJoy.getController().QuickClick(sticker.IsStuck(500) ? 109u: 108u);
2321
}
2422
}
2523

@@ -32,13 +30,11 @@ public partial class LookMainPanelAndPedastal : IButtonCallback<T16000mHotas>
3230
public int GetButton() => T16000mHotas.BUTTON_FRONT_ROCKER_DOWN;
3331

3432
public void OnPress(ExtendedSimConnect _) {
35-
vJoy.getController().QuickClick(100u);
3633
sticker.TriggerStart();
3734
}
3835

3936
public void OnRelease(ExtendedSimConnect _) {
40-
if (sticker.IsStuck(500))
41-
vJoy.getController().QuickClick(102u);
37+
vJoy.getController().QuickClick(sticker.IsStuck(500) ? 102u: 100u);
4238
}
4339
}
4440

0 commit comments

Comments
 (0)