XBox controller toggle

This commit is contained in:
Serge
2024-01-27 11:50:13 +01:00
parent 2987d750e3
commit 8884b0d844
4 changed files with 11 additions and 15 deletions

View File

@@ -603,14 +603,5 @@ namespace GHelper.Ally
}
}
public void ToggleXBox()
{
bool status = !AppConfig.IsNotFalse("controller_xbox");
AsusHid.WriteInput(new byte[] { AsusHid.INPUT_ID, 0xD1, 0x0B, 0x01, status ? (byte)0x01 : (byte)0x02 }, "XBox");
AppConfig.Set("controller_xbox", status ? 1 : 0);
settings.VisualiseXBox(status);
}
}
}