Opentk/Source/OpenTK/Input/IGamePadDriver.cs
2014-01-02 19:52:00 +01:00

25 lines
812 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace OpenTK.Input
{
interface IGamePadDriver
{
GamePadState GetState(int index);
GamePadCapabilities GetCapabilities(int index);
/// <summary>
/// Retrieves the device name for the gamepad device.
/// </summary>
/// <param name="index">The index of the gamepad device.</param>
/// <returns>A <see cref="System.String"/> with the name of the specified device or <see cref="System.String.Empty"/>.</returns>
/// <remarks>
/// <para>If no device exists at the specified index, the return value is <see cref="System.String.Empty"/>.</para></remarks>
string GetName(int index);
bool SetVibration(int index, float left, float right);
}
}