2011-12-14 20:12:04 +00:00
|
|
|
using System;
|
2012-09-01 16:20:44 +00:00
|
|
|
using ANX.Framework;
|
|
|
|
using ANX.Framework.Input;
|
2011-12-14 20:12:04 +00:00
|
|
|
using ANX.Framework.NonXNA;
|
2015-10-18 13:37:39 +02:00
|
|
|
using Input = OpenTK.Input;
|
2011-12-14 20:12:04 +00:00
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
2011-12-14 20:12:04 +00:00
|
|
|
|
2011-12-14 20:25:54 +00:00
|
|
|
namespace ANX.InputDevices.OpenTK
|
2011-12-14 20:12:04 +00:00
|
|
|
{
|
|
|
|
public class GamePad : IGamePad
|
|
|
|
{
|
2012-09-01 16:20:44 +00:00
|
|
|
public GamePadCapabilities GetCapabilities(PlayerIndex playerIndex)
|
2011-12-14 20:12:04 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2012-09-01 16:20:44 +00:00
|
|
|
public GamePadState GetState(PlayerIndex playerIndex)
|
2011-12-14 20:12:04 +00:00
|
|
|
{
|
2015-10-18 13:37:39 +02:00
|
|
|
return Input.GamePad.GetState((int)playerIndex).ToAnx();
|
2011-12-14 20:12:04 +00:00
|
|
|
}
|
|
|
|
|
2012-09-01 16:20:44 +00:00
|
|
|
public GamePadState GetState(PlayerIndex playerIndex, GamePadDeadZone deadZoneMode)
|
2011-12-14 20:12:04 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2012-09-01 16:20:44 +00:00
|
|
|
public bool SetVibration(PlayerIndex playerIndex, float leftMotor, float rightMotor)
|
2011-12-14 20:12:04 +00:00
|
|
|
{
|
2015-10-18 13:37:39 +02:00
|
|
|
return Input.GamePad.SetVibration((int)playerIndex, leftMotor, rightMotor);
|
2011-12-14 20:12:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|