36 lines
1.1 KiB
C#
Raw Permalink Normal View History

2011-12-14 20:12:04 +00:00
using System;
using ANX.Framework;
using ANX.Framework.Input;
2011-12-14 20:12:04 +00:00
using ANX.Framework.NonXNA;
using Input = OpenTK.Input;
2011-12-14 20:12: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
{
public GamePadCapabilities GetCapabilities(PlayerIndex playerIndex)
2011-12-14 20:12:04 +00:00
{
throw new NotImplementedException();
}
public GamePadState GetState(PlayerIndex playerIndex)
2011-12-14 20:12:04 +00:00
{
return Input.GamePad.GetState((int)playerIndex).ToAnx();
2011-12-14 20:12:04 +00:00
}
public GamePadState GetState(PlayerIndex playerIndex, GamePadDeadZone deadZoneMode)
2011-12-14 20:12:04 +00:00
{
throw new NotImplementedException();
}
public bool SetVibration(PlayerIndex playerIndex, float leftMotor, float rightMotor)
2011-12-14 20:12:04 +00:00
{
return Input.GamePad.SetVibration((int)playerIndex, leftMotor, rightMotor);
2011-12-14 20:12:04 +00:00
}
}
}