mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Re-apply Ally controller status on every wake up / reboot https://github.com/seerge/g-helper/issues/3192
This commit is contained in:
@@ -618,7 +618,6 @@ namespace GHelper.Ally
|
|||||||
|
|
||||||
public static void ApplyXBoxStatus()
|
public static void ApplyXBoxStatus()
|
||||||
{
|
{
|
||||||
if (AppConfig.Get("controller_disabled") < 0) return;
|
|
||||||
AsusHid.WriteInput([AsusHid.INPUT_ID, 0xD1, 0x0B, 0x01, AppConfig.Is("controller_disabled") ? (byte)0x02 : (byte)0x01], "Status");
|
AsusHid.WriteInput([AsusHid.INPUT_ID, 0xD1, 0x0B, 0x01, AppConfig.Is("controller_disabled") ? (byte)0x02 : (byte)0x01], "Status");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -650,10 +649,9 @@ namespace GHelper.Ally
|
|||||||
{
|
{
|
||||||
WakeUp();
|
WakeUp();
|
||||||
InputDispatcher.SetBacklightAuto(true);
|
InputDispatcher.SetBacklightAuto(true);
|
||||||
ApplyXBoxStatus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AsusHid.WriteInput(new byte[] { AsusHid.INPUT_ID, 0xD1, 0x01, 0x01, (byte)_applyMode }, "Controller");
|
AsusHid.WriteInput([AsusHid.INPUT_ID, 0xD1, 0x01, 0x01, (byte)_applyMode], "Controller");
|
||||||
//AsusHid.WriteInput(CommandSave, null);
|
//AsusHid.WriteInput(CommandSave, null);
|
||||||
|
|
||||||
BindZone(BindingZone.M1M2);
|
BindZone(BindingZone.M1M2);
|
||||||
@@ -670,6 +668,11 @@ namespace GHelper.Ally
|
|||||||
|
|
||||||
SetDeadzones();
|
SetDeadzones();
|
||||||
|
|
||||||
|
if (init && AppConfig.Is("controller_disabled"))
|
||||||
|
{
|
||||||
|
ApplyXBoxStatus();
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user