示例#1
0
        protected override void UpdateConfig()
        {
            InputInfo inputInfo = (InputInfo)Entity;

            inputInfo.Controllers[0].ControllerType = cboPlayer1.GetEnumValue <InteropEmu.ControllerType>();
            inputInfo.Controllers[1].ControllerType = cboPlayer2.GetEnumValue <InteropEmu.ControllerType>();
            inputInfo.Controllers[2].ControllerType = cboPlayer3.GetEnumValue <InteropEmu.ControllerType>();
            inputInfo.Controllers[3].ControllerType = cboPlayer4.GetEnumValue <InteropEmu.ControllerType>();

            InputInfo.ApplyConfig();
        }