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.

Install-Package InputStateManager -Version
dotnet add package InputStateManager --version
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 437 1/27/2018 332 1/26/2018 391 1/22/2018
1.1.1 320 1/19/2018 299 11/4/2017 277 11/3/2017