dotnet add package InputStateManager --version
NuGet\Install-Package InputStateManager -Version
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="InputStateManager" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add InputStateManager --version
#r "nuget: InputStateManager,"
#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 InputStateManager as a Cake Addin
#addin nuget:?package=InputStateManager&version=

// Install InputStateManager as a Cake Tool
#tool nuget:?package=InputStateManager&version=

A helper PCL (InputStateManager) for MonoGame useful for querying keyboard, mouse, touch and gamepad inputs.
Currently it provides convenience-methods in a fluent manner for:
- Keyboard (Key) Sub-context for 'Is' and 'Was', helper functions for 'Any-ALT (...SHIFT, CTRL)' and NumLock and CapsLock.
- Mouse (Mouse) Sub-context for 'Is' and 'Was' and delta-functions for mouse-wheel, position, etc...
- GamePad (Pad) Sub-context for 'Is' and 'Was' and for 'DPad', 'Triggers' and 'ThumbSticks'.
- TouchPanel (Touch) Sub-context for 'Is' and 'Was'. Currently only exposes TouchCollections.
It is a PCL so you should be able to use it in any MG project.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on InputStateManager:

Package Downloads

This is a PCL library that contains helper classes that should make writing demos with and for MonoGame more comfortable. In general it contains tools that are boilerplate code and would rather distract the user from the demo.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 1,692 1/27/2018 959 1/26/2018 999 1/22/2018
1.1.1 953 1/19/2018 2,569 11/4/2017 821 11/3/2017

Changes API slightly because it feels more natural and you may pass several buttons/buttonstates/etc at once (AND). Also adds OneXXX methods (OR).