Coder Social home page Coder Social logo

pluralinput / pluralinput.sdk Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 4.0 135 KB

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

License: MIT License

C# 100.00%
sdk nuget multi-mouse multi-keyboard groupware

pluralinput.sdk's Introduction

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

pluralinput.sdk's People

Contributors

chgl avatar huifly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pluralinput.sdk's Issues

Consume mouse event

At first thank you for this library. We are currently trying to implement a prototype based on a standard usb mouse, for which this library is very handy!

However: Is there a possibility to "consume" the mouse event so it doesn't get forwarded to windows/any other app any more?

I'd gladly do it myself (and make a PR) but don't really have an idea where to start. Any help is greatly appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.