Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. .NET
  3. DeftSharp.Windows.Input

DeftSharp.Windows.Input

MITC#v0.10

A .NET library for managing native keyboard and mouse events in Windows applications.

GitHubGitHub
146 stars28 forks0 contributors

What is DeftSharp.Windows.Input?

DeftSharp.Windows.Input is a .NET library for controlling and managing native keyboard and mouse events in Windows OS. It allows developers to subscribe to input events, simulate actions, prevent specific inputs, and modify key bindings programmatically. The library solves the need for a unified input management solution across various Windows UI frameworks.

Target Audience

Developers building Windows applications with WPF, WinUI, Avalonia, or MAUI who need programmatic control over keyboard and mouse input. It is also suitable for those creating automation tools, accessibility features, or custom input handlers.

Value Proposition

Developers choose DeftSharp.Windows.Input for its comprehensive feature set, ease of use, and framework-agnostic design. It eliminates the need for low-level Windows API calls and provides a consistent, intuitive API for input management across different UI frameworks.

Overview

An open-source .NET library for managing native keyboard and mouse events in Windows OS.

Use Cases

Best For

  • Building automation tools that simulate user input
  • Creating custom keyboard shortcuts or hotkeys in applications
  • Implementing input prevention for security or parental control features
  • Developing accessibility enhancements that modify input behavior
  • Monitoring and logging user interactions for analytics or debugging
  • Building UI testing frameworks that require input simulation

Not Ideal For

  • Cross-platform applications targeting macOS or Linux
  • Projects using older .NET versions or .NET Framework
  • Applications requiring low-level input APIs for maximum performance
  • Server-side environments without a GUI context

Pros & Cons

Pros

Global Event Subscription

Enables subscription to global keyboard and mouse events, including key combinations and sequences, as demonstrated with KeyboardListener.SubscribeCombination in the README.

Intuitive API Design

Prioritizes user-friendliness with minimal code overhead, offering convenient methods like SubscribeOnce and Prevent with conditions to simplify input management.

Framework Versatility

Works with multiple UI frameworks including WPF, WinUI, Avalonia, and MAUI, providing a universal solution for Windows applications as stated in the description.

Comprehensive Feature Set

Covers input simulation, prevention, binding changes, and device information, eliminating the need for low-level Windows API calls.

Cons

Windows OS Lock-in

Limited to Windows operating systems only, making it unsuitable for any cross-platform development efforts.

.NET 8.0 Dependency

Requires .NET 8.0 for Windows, which excludes projects using older .NET versions or .NET Framework without migration.

Documentation Fragmentation

Full documentation is in a separate file (DOCUMENTATION.md), which could lead to maintenance issues or difficulty in accessing integrated help.

Frequently Asked Questions

Quick Stats

Stars146
Forks28
Contributors0
Open Issues7
Last commit12 days ago
CreatedSince 2024

Tags

#maui#avalonia#input#mouse-events#csharp#input-management#dotnet#keyboard#winui#winapi#wpf#dotnetcore#ui-automation#keyboard-events#windows

Built With

.
.NET 8.0

Included in

.NET21.2k
Auto-fetched 12 hours ago

Related Projects

WPFWPF

WPF is a .NET Core UI framework for building Windows desktop applications.

Stars7,650
Forks1,289
Last commit13 hours ago
Extended WPF Toolkit™Extended WPF Toolkit™

All the controls missing in WPF. Over 1 million downloads.

Stars4,143
Forks912
Last commit8 months ago
Data Grid ExtensionsData Grid Extensions

Modular extensions for the WPF DataGrid control

Stars901
Forks106
Last commit2 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub