Hello! I am developing an open source library that allows you to easily interact with mouse and keyboard events. 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!
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
});
Hello! I am developing an open source library that allows you to easily interact with mouse and keyboard events. 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:
One-time subscription for pressing a button on the keyboard:
Furthermore, you can take advantage of specialized classes for different usage scenarios. For example, for the NumPad: