我试图将切换到左方向键,但它不起作用
private void SerialTimer_Tick(object sender, EventArgs e)
{
bool PreviousCarHeadlights = false;
if (controls.DPad.Left & !PreviousCarHeadlights)
{
CarHeadlightsCheckBox.Checked = !CarHeadlightsCheckBox.Checked;
PreviousCarHeadlights = !PreviousCarHeadlights;
}
}
请有人看看这个并提供帮助。