public void SetAnalogStick(DUALSHOCK3 data)
 {
     AnalogLGraph.Data1.Add(new MatFramework.Coord2D(data.Time, data.AnalogL_X));
     AnalogLGraph.Data2.Add(new MatFramework.Coord2D(data.Time, data.AnalogL_Y));
     AnalogRGraph.Data1.Add(new MatFramework.Coord2D(data.Time, data.AnalogR_X));
     AnalogRGraph.Data2.Add(new MatFramework.Coord2D(data.Time, data.AnalogR_Y));
     AnalogLGraph.RefreshGraph();
     AnalogRGraph.RefreshGraph();
 }
Ejemplo n.º 2
0
        protected void SendCommand(int command, DUALSHOCK3 value)
        {
            if (Host == null) return;

            byte[] data = value.GetBytes();

            Host.SendToBoad(ModuleSimbol + ";" + command.ToString() + ":" + data.Length.ToString() + ")");
            Host.SendToBoad(data);
            Host.SendToBoad("\n");
        }
Ejemplo n.º 3
0
 public void OutputACommand(DUALSHOCK3 command)
 {
     MatTimer timer = new MatTimer(1);
     Command.Value = new MatData(typeof(DUALSHOCK3), command);
 }