This is complete rewrite of the previous, non-open Pluralinput SDK.
PM> Install-Package Pluralinput.Sdk
or install via VS Package Management window.
using Pluralinput.Sdk;
...
// the InputManager initializes the SDK and should only be created once per application
var im = new InputManager();
// returns a list of all mouse devices
var mice = im.Devices.Mice;
// listen to the first mouse's button up event
mice.First().ButtonUp += (o, e) =>
{
Console.WriteLine($"{o}: ButtonUp {e.Button}");
};
Make sure to check out the samples-folder for more.
- add package to nuget.org
- check x64/x86 compatibility issues
- check .NET Core compatibility
- add Unity sample project
- add WinForms sample project
- add WPF sample project
- add UWP sample project