Gamepad 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Gamepad --version 1.0.0
NuGet\Install-Package Gamepad -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Gamepad" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Gamepad --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Gamepad, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Gamepad as a Cake Addin #addin nuget:?package=Gamepad&version=1.0.0 // Install Gamepad as a Cake Tool #tool nuget:?package=Gamepad&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Gamepad
.Net Core based library, that allows getting the button presses and axis value changes of a gamepad or a Joystick.
The library was developed with Raspberry Pi in mind (but probably runs on any linux based device)
This is all you need to do to use it:
// You should provide the gamepad file you want to connect to. /dev/input/js0 is the default
using (var gamepad = new GamepadController("/dev/input/js0"))
{
// Configure this if you want to get events when the state of a button changes
gamepad.ButtonChanged += (object sender, ButtonEventArgs e) =>
{
Console.WriteLine($"Button {e.Button} Pressed: {e.Pressed}");
};
// Configure this if you want to get events when the state of an axis changes
gamepad.AxisChanged += (object sender, AxisEventArgs e) =>
{
Console.WriteLine($"Axis {e.Axis} Pressed: {e.Value}");
};
Console.ReadLine();
}
// Remember to Dispose the GamepadController, so it can finish the Task that listens for changes in the gamepad
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.1
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Gamepad:
Package | Downloads |
---|---|
Robot.Drivers
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.