Skip to content

Slion/SharpLibHid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

SharpLibHid

C# HID Library using Windows Raw Input. Most useful to handle inputs from IR remotes, gamepads, joysticks or any Human Interface Devices.

HID Demo

You can get a pretty good understanding of what this library can do be running our HID Demo.

Download

The easiest way to use this library in your own project is to add a reference to the NuGet package that suits your needs.

NuGets

x64 x86 Legacy
NuGet Badge NuGet Badge NuGet Badge

Usage

To get started with this library take a look at HID Demo code. Basically there are just three things you need to do to get it working:

  1. Instantiate a SharpLib.Hid.Handler specifying which kind of raw input you want to listen to.
  2. Register with your HID handler OnHidEvent event.
  3. Feed your HID handler the Windows Raw Input from WM_INPUT messages.

Taking a look at older and simpler version of the HID Demo code can give you a better idea of what a minimal implementaiton looks like.

References