Apos.Input
0.8.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 Apos.Input --version 0.8.0
NuGet\Install-Package Apos.Input -Version 0.8.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="Apos.Input" Version="0.8.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Apos.Input --version 0.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Apos.Input, 0.8.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 Apos.Input as a Cake Addin #addin nuget:?package=Apos.Input&version=0.8.0 // Install Apos.Input as a Cake Tool #tool nuget:?package=Apos.Input&version=0.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Apos.Input
Input library for MonoGame.
Documentation
Build
NuGet
Features
- Mouse, Keyboard, GamePad buttons
Usage samples
In your game's Initialize()
, pass the game class to InputHelper.Game:
protected override void Initialize() {
InputHelper.Setup(this);
}
In your game's Update(GameTime gameTime)
, call the two functions:
protected override void Update(GameTime gametime) {
//Call UpdateSetup at the start.
InputHelper.UpdateSetup();
//...
//Call UpdateCleanup at the end.
InputHelper.UpdateCleanup();
}
//Create a condition to toggle fullscreen.
//It should work on both Alt keys and Enter.
var toggleFullScreen = new ConditionComposite();
toggleFullscreen.AddSet(Keys.Enter).AddNeed(Keys.LeftAlt);
toggleFullscreen.AddSet(Keys.Enter).AddNeed(Keys.RightAlt);
//To check if toggleFullscreen is triggered:
if (toggleFullscreen.Pressed()) {
//Do the fullscreen change.
}
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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Apos.Input:
Package | Downloads |
---|---|
Apos.Gui
UI library for MonoGame. |
|
MonoBrowser
Render engine for MonoGame |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Apos.Input:
Repository | Stars |
---|---|
Apostolique/Apos.Gui
UI library for MonoGame.
|
Version | Downloads | Last updated |
---|---|---|
2.4.2 | 6,698 | 1/29/2022 |
2.4.1 | 1,905 | 6/26/2021 |
2.4.0 | 441 | 6/26/2021 |
2.3.3 | 477 | 3/21/2021 |
2.3.2 | 400 | 2/21/2021 |
2.3.1 | 2,150 | 1/28/2021 |
2.3.0 | 364 | 1/27/2021 |
2.2.0 | 361 | 1/24/2021 |
2.1.0 | 436 | 1/19/2021 |
2.0.1 | 376 | 1/17/2021 |
2.0.0 | 393 | 1/12/2021 |
1.0.1 | 2,578 | 10/20/2020 |
1.0.0 | 3,351 | 5/17/2020 |
0.8.3 | 590 | 3/26/2020 |
0.8.2 | 1,182 | 3/22/2020 |
0.8.1 | 493 | 3/22/2020 |
0.8.0 | 1,311 | 1/12/2020 |
0.7.0 | 1,209 | 1/12/2020 |
0.6.2 | 2,181 | 1/5/2020 |
0.6.1 | 1,200 | 11/24/2019 |
0.5.1 | 1,195 | 9/25/2019 |
0.5.0 | 546 | 9/24/2019 |
0.4.0 | 1,300 | 4/27/2019 |
0.3.0 | 581 | 4/26/2019 |
0.2.2 | 1,747 | 3/5/2019 |
0.2.1 | 1,217 | 3/5/2019 |
0.2.0 | 623 | 2/28/2019 |
0.1.5 | 619 | 2/27/2019 |
0.1.4 | 2,222 | 2/9/2019 |
0.1.3 | 672 | 2/7/2019 |
0.1.2 | 652 | 2/7/2019 |
0.1.1 | 2,273 | 2/6/2019 |
0.1.0 | 1,305 | 2/1/2019 |