Skip to content
Develop .NET applications that can distinguish between multiple mouse and keyboard devices.
C#
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples
src/Pluralinput.Sdk
.gitattributes
.gitignore
LICENSE
PluralinputSdkIcon.png
README.md

README.md

Pluralinput.Sdk Build status

This is complete rewrite of the previous, non-open Pluralinput SDK.

Installation

NuGet

PM> Install-Package Pluralinput.Sdk

or install via VS Package Management window.

Code samples

Basic usage

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.

TODO

  • 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
You can’t perform that action at this time.