Basic gamepad with force feedback impl
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user