Skip to content

Develop .NET applications that can distinguish between multiple mouse and keyboard devices.

License

Notifications You must be signed in to change notification settings

pluralinput/Pluralinput.Sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Develop .NET applications that can distinguish between multiple mouse and keyboard devices.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages