NSJoyCon 侧边栏添加bing

This commit is contained in:
sin365 2025-09-08 18:18:42 +08:00
parent dcfba5af20
commit db0176b3ad

View File

@ -114,18 +114,26 @@ namespace AxibugEmuOnline.Client
} }
public override void Bind(SwitchJoyCon_D device, ControllerBinder controller) public override void Bind(SwitchJoyCon_D device, ControllerBinder controller)
{ {
controller.SetBinding(EnumCommand.Back, device.A, 0); switch (controller.ControllerIndex)
controller.SetBinding(EnumCommand.Enter, device.B, 0); {
controller.SetBinding(EnumCommand.OptionMenu, device.Plus, 0); case 0://设置标准UI控制
controller.SetBinding(EnumCommand.SelectItemDown, device.Down, 0); controller.SetBinding(EnumCommand.Back, device.A, 0);
controller.SetBinding(EnumCommand.SelectItemLeft, device.Left, 0); controller.SetBinding(EnumCommand.Enter, device.B, 0);
controller.SetBinding(EnumCommand.SelectItemRight, device.Right, 0); controller.SetBinding(EnumCommand.OptionMenu, device.Plus, 0);
controller.SetBinding(EnumCommand.SelectItemUp, device.Up, 0); controller.SetBinding(EnumCommand.SelectItemDown, device.Down, 0);
controller.SetBinding(EnumCommand.SelectItemLeft, device.Left, 0);
controller.SetBinding(EnumCommand.SelectItemRight, device.Right, 0);
controller.SetBinding(EnumCommand.SelectItemUp, device.Up, 0);
controller.SetBinding(EnumCommand.SelectItemDown, device.LeftStick.Down, 1); controller.SetBinding(EnumCommand.SelectItemDown, device.LeftStick.Down, 1);
controller.SetBinding(EnumCommand.SelectItemLeft, device.LeftStick.Left, 1); controller.SetBinding(EnumCommand.SelectItemLeft, device.LeftStick.Left, 1);
controller.SetBinding(EnumCommand.SelectItemRight, device.LeftStick.Right, 1); controller.SetBinding(EnumCommand.SelectItemRight, device.LeftStick.Right, 1);
controller.SetBinding(EnumCommand.SelectItemUp, device.LeftStick.Up, 1); controller.SetBinding(EnumCommand.SelectItemUp, device.LeftStick.Up, 1);
break;
case 1://游戏中UI控制
controller.SetBinding(EnumCommand.OptionMenu, device.Y, 0);
break;
}
} }
} }
} }