Skip to content

Commit

Permalink
Fix #10
Browse files Browse the repository at this point in the history
* Corrected `Control.IsUpDown`
* fixed minor typo in Readme.md
* Added `.vscode` to `.gitignore`
  • Loading branch information
thargy committed Feb 20, 2024
1 parent f565ecc commit ddffdc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ bld/
[Oo]bj/
[Ll]og/

# VSCode settings
.vscode

# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
Expand Down
2 changes: 1 addition & 1 deletion HIDDevices/Control.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ internal Control(Device device, DataValue value, int index)
/// </summary>
/// <value><see langword="true" /> if this control is an up/down; otherwise, <see langword="false" />.</value>
/// <remarks>A 0 means down and a 1 means up, otherwise the value should remain in between (0.5).</remarks>
public bool IsUpDown => DataItem.ExpectedUsageType == ExpectedUsageType.OneShot;
public bool IsUpDown => DataItem.ExpectedUsageType == ExpectedUsageType.UpDown;

/// <summary>
/// Gets the button number, if a button; otherwise <see langword="null" />.
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Nuget](https://img.shields.io/nuget/v/HIDDevices)](https://www.nuget.org/packages/HIDDevices/)

# Description
This library provides a cross-platform service for asynchronously accessing HID devices, such as Gamepads, Joysticks and Multi-axis controllers and programmable button pads. It support Plug & Play, correctly identifying when controllers are added and removed, and Reactive frameworks. It also allows the creation of custom Controller implementations which are matched automatically against devices for easy use.
This library provides a cross-platform service for asynchronously accessing HID devices, such as Gamepads, Joysticks and Multi-axis controllers and programmable button pads. It supports Plug & Play, correctly identifying when controllers are added and removed, and Reactive frameworks. It also allows the creation of custom Controller implementations which are matched automatically against devices for easy use.

## Important Notes
* The project is currently based on [HIDSharp](https://www.zer7.com/software/hidsharp), but deliberately does not expose any of its library explicitly as it may well be replaced in future.
Expand Down

0 comments on commit ddffdc6

Please sign in to comment.