Esempio n. 1
0
        public ProController(Switch device,
                             NpadColor bodyColor,
                             NpadColor buttonColor) : base(device, ControllerStatus.ProController)
        {
            _wired = true;

            _bodyColor   = bodyColor;
            _buttonColor = buttonColor;
        }
Esempio n. 2
0
        public override void Connect(HidControllerId ControllerId)
        {
            base.Connect(ControllerId);

            HidControllerColorDesc SingleColorDesc =
                HidControllerColorDesc.ColorDesc_ColorsNonexistent;

            HidControllerColorDesc SplitColorDesc = 0;

            NpadColor SingleColorBody    = NpadColor.Black;
            NpadColor SingleColorButtons = NpadColor.Black;

            Device.Memory.WriteInt32(Offset + 0x08, (int)SingleColorDesc);
            Device.Memory.WriteInt32(Offset + 0x0c, (int)SingleColorBody);
            Device.Memory.WriteInt32(Offset + 0x10, (int)SingleColorButtons);
            Device.Memory.WriteInt32(Offset + 0x14, (int)SplitColorDesc);

            Connected = true;
        }