mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
XBox controller toggle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user