Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dotnet-developer-projects.md #1432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Empiree
Copy link

@Empiree Empiree commented Mar 4, 2024

Added DeftSharp.Windows.Input to "UI and Control libraries"

Hello! I am developing an open source library that allows you to easily interact with mouse and keyboard events in Windows UI applications (WPF, MAUI, Avalonia). For example, you can subscribe to press any button, or on the contrary, prohibit its pressing. The project is currently under active development, it is already available on Nuget. I will be glad to any support!

Repository: https://github.com/Empiree/DeftSharp.Windows.Input

I will be adding full documentation with all the library features soon.

Here are small examples of use cases:

Subscription to left mouse click:

var mouseListener = new MouseListener();
            
mouseListener.Subscribe(MouseEvent.LeftButtonDown, () =>
{
    // This code will be triggered after each left mouse button click
});

One-time subscription for pressing a button on the keyboard:

var keyboardListener = new KeyboardListener();

keyboardListener.SubscribeOnce(Key.A, key =>
{
    // This code will only work once, after pressing button 'A'
});

Furthermore, you can take advantage of specialized classes for different usage scenarios. For example, for the NumPad:

var numpadListener = new NumpadListener(keyboardListener);
            
// 0-9 numpad buttons
numpadListener.Subscribe(number =>
{
    // Your code here
});

Added DeftSharp.Windows.Input to "UI and Control libraries"
@Abdurahmon0412
Copy link

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants