Apos.Input 0.3.0

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

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

Apos.Gui

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 Update at the end.
    InputHelper.Update();
}
//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 net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  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.
  • .NETFramework 4.5

    • No dependencies.
  • .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 (2)

Showing the top 2 popular GitHub repositories that depend on Apos.Input:

Repository Stars
Apostolique/Apos.Gui
UI library for MonoGame.
Apostolique/Mitten
Infinite canvas drawing application.
Version Downloads Last updated
2.4.2 6,908 1/29/2022
2.4.1 1,928 6/26/2021
2.4.0 446 6/26/2021
2.3.3 487 3/21/2021
2.3.2 406 2/21/2021
2.3.1 2,156 1/28/2021
2.3.0 370 1/27/2021
2.2.0 367 1/24/2021
2.1.0 442 1/19/2021
2.0.1 382 1/17/2021
2.0.0 399 1/12/2021
1.0.1 2,584 10/20/2020
1.0.0 3,375 5/17/2020
0.8.3 596 3/26/2020
0.8.2 1,188 3/22/2020
0.8.1 499 3/22/2020
0.8.0 1,317 1/12/2020
0.7.0 1,215 1/12/2020
0.6.2 2,187 1/5/2020
0.6.1 1,208 11/24/2019
0.5.1 1,201 9/25/2019
0.5.0 552 9/24/2019
0.4.0 1,308 4/27/2019
0.3.0 587 4/26/2019
0.2.2 1,754 3/5/2019
0.2.1 1,223 3/5/2019
0.2.0 628 2/28/2019
0.1.5 625 2/27/2019
0.1.4 2,228 2/9/2019
0.1.3 678 2/7/2019
0.1.2 658 2/7/2019
0.1.1 2,279 2/6/2019
0.1.0 1,311 2/1/2019