42 lines
898 B
C#
42 lines
898 B
C#
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|