Apos.Input 0.7.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Apos.Input --version 0.7.0
NuGet\Install-Package Apos.Input -Version 0.7.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.7.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Apos.Input --version 0.7.0
#r "nuget: Apos.Input, 0.7.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.7.0

// Install Apos.Input as a Cake Tool
#tool nuget:?package=Apos.Input&version=0.7.0

Apos.Input

Input library for MonoGame.

Discord

Documentation

Build

NuGet NuGet 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.Game = 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 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 (1)

Showing the top 1 NuGet packages that depend on Apos.Input:

Package Downloads
Apos.Gui

UI library 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 5,457 1/29/2022
2.4.1 1,739 6/26/2021
2.4.0 410 6/26/2021
2.3.3 441 3/21/2021
2.3.2 372 2/21/2021
2.3.1 1,947 1/28/2021
2.3.0 334 1/27/2021
2.2.0 333 1/24/2021
2.1.0 402 1/19/2021
2.0.1 347 1/17/2021
2.0.0 361 1/12/2021
1.0.1 2,395 10/20/2020
1.0.0 3,151 5/17/2020
0.8.3 559 3/26/2020
0.8.2 1,097 3/22/2020
0.8.1 464 3/22/2020
0.8.0 1,252 1/12/2020
0.7.0 1,138 1/12/2020
0.6.2 2,040 1/5/2020
0.6.1 1,122 11/24/2019
0.5.1 1,126 9/25/2019
0.5.0 514 9/24/2019
0.4.0 1,222 4/27/2019
0.3.0 555 4/26/2019
0.2.2 1,627 3/5/2019
0.2.1 1,149 3/5/2019
0.2.0 590 2/28/2019
0.1.5 594 2/27/2019
0.1.4 2,092 2/9/2019
0.1.3 643 2/7/2019
0.1.2 624 2/7/2019
0.1.1 2,135 2/6/2019
0.1.0 1,234 2/1/2019