Updated readme
This commit is contained in:
parent
115bac01ca
commit
8529cdc43f
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
namespace EonaCat.HID.EventArguments
|
namespace EonaCat.HID.EventArguments
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event args for received data
|
/// Event args for received data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
namespace EonaCat.HID.EventArguments
|
namespace EonaCat.HID.EventArguments
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event args for error events
|
/// Event args for error events
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
namespace EonaCat.HID.EventArguments
|
namespace EonaCat.HID.EventArguments
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event arguments with HID device info.
|
/// Event arguments with HID device info.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -5,7 +5,7 @@ using System.Text;
|
||||||
namespace EonaCat.HID.Helpers
|
namespace EonaCat.HID.Helpers
|
||||||
{
|
{
|
||||||
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
// See the LICENSE file or go to https://EonaCat.com/License for full license details.
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
public static class ByteHelper
|
public static class ByteHelper
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,6 +3,9 @@ using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace EonaCat.HID
|
namespace EonaCat.HID
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Main static factory class to create platform-specific implementations.
|
/// Main static factory class to create platform-specific implementations.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -10,6 +10,9 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace EonaCat.HID
|
namespace EonaCat.HID
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
internal sealed class HidLinux : IHid
|
internal sealed class HidLinux : IHid
|
||||||
{
|
{
|
||||||
private readonly string _devicePath;
|
private readonly string _devicePath;
|
||||||
|
|
|
@ -7,6 +7,9 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace EonaCat.HID
|
namespace EonaCat.HID
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
internal sealed class HidMac : IHid
|
internal sealed class HidMac : IHid
|
||||||
{
|
{
|
||||||
private IntPtr _deviceHandle;
|
private IntPtr _deviceHandle;
|
||||||
|
|
|
@ -14,6 +14,9 @@ using static EonaCat.HID.Managers.Windows.NativeMethods;
|
||||||
|
|
||||||
namespace EonaCat.HID
|
namespace EonaCat.HID
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
internal sealed class HidWindows : IHid
|
internal sealed class HidWindows : IHid
|
||||||
{
|
{
|
||||||
private SafeFileHandle _deviceHandle;
|
private SafeFileHandle _deviceHandle;
|
||||||
|
|
|
@ -6,6 +6,9 @@ using EonaCat.HID.EventArguments;
|
||||||
|
|
||||||
namespace EonaCat.HID
|
namespace EonaCat.HID
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Interface abstraction for a HID device.
|
/// Interface abstraction for a HID device.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -4,6 +4,9 @@ using System.Collections.Generic;
|
||||||
|
|
||||||
namespace EonaCat.HID
|
namespace EonaCat.HID
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Interface for manager to enumerate devices and monitor connect/disconnect
|
/// Interface for manager to enumerate devices and monitor connect/disconnect
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -6,10 +6,12 @@ using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using static EonaCat.HID.Managers.Linux.NativeMethods;
|
|
||||||
|
|
||||||
namespace EonaCat.HID.Managers.Linux
|
namespace EonaCat.HID.Managers.Linux
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
internal sealed class HidManagerLinux : IHidManager
|
internal sealed class HidManagerLinux : IHidManager
|
||||||
{
|
{
|
||||||
public event EventHandler<HidEventArgs> OnDeviceInserted;
|
public event EventHandler<HidEventArgs> OnDeviceInserted;
|
||||||
|
|
|
@ -6,6 +6,9 @@ using static EonaCat.HID.Managers.Mac.NativeMethods;
|
||||||
|
|
||||||
namespace EonaCat.HID.Managers.Mac
|
namespace EonaCat.HID.Managers.Mac
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
internal sealed class HidManagerMac : IHidManager, IDisposable
|
internal sealed class HidManagerMac : IHidManager, IDisposable
|
||||||
{
|
{
|
||||||
private IntPtr _hidManager;
|
private IntPtr _hidManager;
|
||||||
|
|
|
@ -9,6 +9,9 @@ using static EonaCat.HID.Managers.Windows.NativeMethods;
|
||||||
|
|
||||||
namespace EonaCat.HID.Managers.Windows
|
namespace EonaCat.HID.Managers.Windows
|
||||||
{
|
{
|
||||||
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
||||||
|
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
|
||||||
|
|
||||||
internal sealed class HidManagerWindows : IHidManager, IDisposable
|
internal sealed class HidManagerWindows : IHidManager, IDisposable
|
||||||
{
|
{
|
||||||
private const int DIGCF_PRESENT = 0x00000002;
|
private const int DIGCF_PRESENT = 0x00000002;
|
||||||
|
|
Loading…
Reference in New Issue