From 8529cdc43f73b6d3fbd902e9bd74ea53531c3e72 Mon Sep 17 00:00:00 2001 From: EonaCat Date: Sat, 12 Jul 2025 22:45:21 +0200 Subject: [PATCH] Updated readme --- EonaCat.HID/EventArguments/HidDataReceivedEventArgs.cs | 3 +++ EonaCat.HID/EventArguments/HidErrorEventArgs.cs | 3 +++ EonaCat.HID/EventArguments/HidEventArgs.cs | 3 +++ EonaCat.HID/Helpers/ByteHelper.cs | 2 +- EonaCat.HID/HidFactory.cs | 3 +++ EonaCat.HID/HidLinux.cs | 3 +++ EonaCat.HID/HidMac.cs | 3 +++ EonaCat.HID/HidWindows.cs | 3 +++ EonaCat.HID/IHid.cs | 3 +++ EonaCat.HID/IHidManager.cs | 3 +++ EonaCat.HID/Managers/HidManagerLinux.cs | 4 +++- EonaCat.HID/Managers/HidManagerMac.cs | 3 +++ EonaCat.HID/Managers/HidManagerWindows.cs | 3 +++ README.md | 3 ++- 14 files changed, 39 insertions(+), 3 deletions(-) diff --git a/EonaCat.HID/EventArguments/HidDataReceivedEventArgs.cs b/EonaCat.HID/EventArguments/HidDataReceivedEventArgs.cs index 41719a5..fa18444 100644 --- a/EonaCat.HID/EventArguments/HidDataReceivedEventArgs.cs +++ b/EonaCat.HID/EventArguments/HidDataReceivedEventArgs.cs @@ -2,6 +2,9 @@ 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. + /// /// Event args for received data /// diff --git a/EonaCat.HID/EventArguments/HidErrorEventArgs.cs b/EonaCat.HID/EventArguments/HidErrorEventArgs.cs index 97c76ab..b9a6d56 100644 --- a/EonaCat.HID/EventArguments/HidErrorEventArgs.cs +++ b/EonaCat.HID/EventArguments/HidErrorEventArgs.cs @@ -2,6 +2,9 @@ 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. + /// /// Event args for error events /// diff --git a/EonaCat.HID/EventArguments/HidEventArgs.cs b/EonaCat.HID/EventArguments/HidEventArgs.cs index bd431de..125968c 100644 --- a/EonaCat.HID/EventArguments/HidEventArgs.cs +++ b/EonaCat.HID/EventArguments/HidEventArgs.cs @@ -2,6 +2,9 @@ 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. + /// /// Event arguments with HID device info. /// diff --git a/EonaCat.HID/Helpers/ByteHelper.cs b/EonaCat.HID/Helpers/ByteHelper.cs index 2c394f0..5f37e6f 100644 --- a/EonaCat.HID/Helpers/ByteHelper.cs +++ b/EonaCat.HID/Helpers/ByteHelper.cs @@ -5,7 +5,7 @@ using System.Text; namespace EonaCat.HID.Helpers { // 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 { diff --git a/EonaCat.HID/HidFactory.cs b/EonaCat.HID/HidFactory.cs index e416a7a..8333051 100644 --- a/EonaCat.HID/HidFactory.cs +++ b/EonaCat.HID/HidFactory.cs @@ -3,6 +3,9 @@ using System.Runtime.InteropServices; 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. + /// /// Main static factory class to create platform-specific implementations. /// diff --git a/EonaCat.HID/HidLinux.cs b/EonaCat.HID/HidLinux.cs index 39e9753..3b8d04e 100644 --- a/EonaCat.HID/HidLinux.cs +++ b/EonaCat.HID/HidLinux.cs @@ -10,6 +10,9 @@ using System.Threading.Tasks; 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 { private readonly string _devicePath; diff --git a/EonaCat.HID/HidMac.cs b/EonaCat.HID/HidMac.cs index 1e1cf16..d80e032 100644 --- a/EonaCat.HID/HidMac.cs +++ b/EonaCat.HID/HidMac.cs @@ -7,6 +7,9 @@ using System.Threading.Tasks; 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 { private IntPtr _deviceHandle; diff --git a/EonaCat.HID/HidWindows.cs b/EonaCat.HID/HidWindows.cs index 5043638..8d9688a 100644 --- a/EonaCat.HID/HidWindows.cs +++ b/EonaCat.HID/HidWindows.cs @@ -14,6 +14,9 @@ using static EonaCat.HID.Managers.Windows.NativeMethods; 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 { private SafeFileHandle _deviceHandle; diff --git a/EonaCat.HID/IHid.cs b/EonaCat.HID/IHid.cs index 88ed556..21d7244 100644 --- a/EonaCat.HID/IHid.cs +++ b/EonaCat.HID/IHid.cs @@ -6,6 +6,9 @@ using EonaCat.HID.EventArguments; 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. + /// /// Interface abstraction for a HID device. /// diff --git a/EonaCat.HID/IHidManager.cs b/EonaCat.HID/IHidManager.cs index 4789e52..b021b65 100644 --- a/EonaCat.HID/IHidManager.cs +++ b/EonaCat.HID/IHidManager.cs @@ -4,6 +4,9 @@ using System.Collections.Generic; 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. + /// /// Interface for manager to enumerate devices and monitor connect/disconnect /// diff --git a/EonaCat.HID/Managers/HidManagerLinux.cs b/EonaCat.HID/Managers/HidManagerLinux.cs index ca088ed..0f8a28a 100644 --- a/EonaCat.HID/Managers/HidManagerLinux.cs +++ b/EonaCat.HID/Managers/HidManagerLinux.cs @@ -6,10 +6,12 @@ using System.Linq; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; -using static EonaCat.HID.Managers.Linux.NativeMethods; 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 { public event EventHandler OnDeviceInserted; diff --git a/EonaCat.HID/Managers/HidManagerMac.cs b/EonaCat.HID/Managers/HidManagerMac.cs index 3bc65ed..2825319 100644 --- a/EonaCat.HID/Managers/HidManagerMac.cs +++ b/EonaCat.HID/Managers/HidManagerMac.cs @@ -6,6 +6,9 @@ using static EonaCat.HID.Managers.Mac.NativeMethods; 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 { private IntPtr _hidManager; diff --git a/EonaCat.HID/Managers/HidManagerWindows.cs b/EonaCat.HID/Managers/HidManagerWindows.cs index cf84c7d..203c6e8 100644 --- a/EonaCat.HID/Managers/HidManagerWindows.cs +++ b/EonaCat.HID/Managers/HidManagerWindows.cs @@ -9,6 +9,9 @@ using static EonaCat.HID.Managers.Windows.NativeMethods; 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 { private const int DIGCF_PRESENT = 0x00000002; diff --git a/README.md b/README.md index d51bba8..963fcaf 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # EonaCat.HID -EonaCat Usb Devices \ No newline at end of file +Cross platform library for HID devices. +Works on Windows, Linux and macOS.