mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-12 05:05:26 +02:00
Move solution and projects to src
This commit is contained in:
37
src/Ryujinx.Input/IGamepadDriver.cs
Normal file
37
src/Ryujinx.Input/IGamepadDriver.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Input
|
||||
{
|
||||
/// <summary>
|
||||
/// Represent an emulated gamepad driver used to provide input in the emulator.
|
||||
/// </summary>
|
||||
public interface IGamepadDriver : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the driver
|
||||
/// </summary>
|
||||
string DriverName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The unique ids of the gamepads connected.
|
||||
/// </summary>
|
||||
ReadOnlySpan<string> GamepadsIds { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Event triggered when a gamepad is connected.
|
||||
/// </summary>
|
||||
event Action<string> OnGamepadConnected;
|
||||
|
||||
/// <summary>
|
||||
/// Event triggered when a gamepad is disconnected.
|
||||
/// </summary>
|
||||
event Action<string> OnGamepadDisconnected;
|
||||
|
||||
/// <summary>
|
||||
/// Open a gampad by its unique id.
|
||||
/// </summary>
|
||||
/// <param name="id">The unique id of the gamepad</param>
|
||||
/// <returns>An instance of <see cref="IGamepad"/> associated to the gamepad id given or null if not found</returns>
|
||||
IGamepad GetGamepad(string id);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user