예제 #1
0
        public void Send(Gamepad.GamepadOutput player)
        {
            if (_class.Define.Write == null)
            {
                return;
            }

            var boolOverride = _class.BaseClass.Home.boolIDE;

            if ((_class.Define.IsConnected() != 1) && !boolOverride)
            {
                return;
            }

            _class.Define.Write(player.Output);

            var report = new Define.GcapiReportControllermax();

            if (_class.Define.Read(ref report) == IntPtr.Zero)
            {
                return;
            }

            if (_class.BaseClass.System.UseRumble)
            {
                GamePad.SetState(player.PlayerIndex, report.Rumble[0], report.Rumble[1]);
            }

            //TODO: Read report to see what authenticating controller is doing
        }
예제 #2
0
        public void Send()
        {
            if (_class.Define.Write == null) return;

            var boolOverride = _class.BaseClass.Home.boolIDE;

            if ((_class.Define.IsConnected() != 1) && !boolOverride) return;

            _class.Define.Write(_class.BaseClass.Gamepad.Output);

            var report = new Define.GcapiReportControllermax();
            if (_class.Define.Read(ref report) != IntPtr.Zero)
                GamePad.SetState(PlayerIndex.One, report.Rumble[0], report.Rumble[1]);

            //TODO: Read report to see what authenticating controller is doing
        }