0.10 Release available!
What's new:
- The library has migrated to the .NET 8 framework.
- Added new functionality.
- Small changes in usage.
[Breaking changes] ⚠️
- The
PreventMouseEvent
class name has been changed toMousePreventOption
. - The
KeyPressedArgs
class has changed its name toKeyboardInputArgs
. - In the
MouseManipulator
class, thePrevent()
method now acceptsMousePreventOption
instead ofPreventMouseEvent
. - In the
KeyboardManipulator
class, theSimulate()
method now acceptsKeyboardSimulateOption
instead ofKeyboardInputEvent
.
Changelog
The library has completely migrated to the .NET 8 framework.
NumberListener
- Added a new class that can be used to subscribe to all number buttons on the keyboard (including Numpad).
LetterListener
- Added a new class that can be used to subscribe to all character buttons in the QWERTY layout.
KeyboardKeySet
- Added a new class that provides different sets of keys such as: NumpadKeys, NumberKeys, FunctionKeys, ArrowKeys, NavigationKeys. MultimediaKeys, EditingKeys, SpecialKeys.
var listener = new KeyboardListener();
// Subscription to F1 - F12 buttons
listener.Subscribe(KeyboardKeySet.FunctionKeys, key =>
{
Trace.WriteLine(key);
});
KeyboardManipulator
- The
Simulate()
method now acceptsKeyboardSimulateOption
instead ofKeyboardInputEvent
. - Added
KeyPressIntervals
collection, which contains buttons for which intervals are set.
MouseManipulator
- Added
Simulate()
method. - Now the
Prevent()
method acceptsMousePreventOption
instead ofPreventMouseEvent
.
Other changes
PreventMouseEvent
changed name toMousePreventOption
.KeyPressedArgs
changed its name toKeyboardInputArgs
.- Added
SystemChanges
attribute, which denotes methods that change system settings and have a permanent effect. - Improved XML comments.