Files
evilsatellites/EvilSatellites/Vibration.cs
T

42 lines
898 B
C#
Raw Normal View History

2021-04-24 02:47:17 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework.Input;
namespace EvilSatellites
{
public class Vibration
{
float leftMotor;
float rightMotor;
float msLeft;
public float LeftMotor
{
get { return leftMotor; }
set { leftMotor = value; }
}
public float RightMotor
{
get { return rightMotor; }
set { rightMotor = value; }
}
public float MSLeft
{
get { return msLeft; }
set { msLeft = value; }
}
public Vibration(float leftMotor, float rightMotor, float durationMS)
{
this.leftMotor = leftMotor;
this.rightMotor = rightMotor;
this.msLeft = durationMS;
}
}
}