Skip to content

Release 0.10

Latest
Compare
Choose a tag to compare
@Empiree Empiree released this 30 Aug 12:31
· 8 commits to main since this release

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 to MousePreventOption.
  • The KeyPressedArgs class has changed its name to KeyboardInputArgs.
  • In the MouseManipulator class, the Prevent() method now accepts MousePreventOption instead of PreventMouseEvent.
  • In the KeyboardManipulator class, the Simulate() method now accepts KeyboardSimulateOption instead of KeyboardInputEvent.

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 accepts KeyboardSimulateOption instead of KeyboardInputEvent.
  • Added KeyPressIntervals collection, which contains buttons for which intervals are set.

MouseManipulator

  • Added Simulate() method.
  • Now the Prevent() method accepts MousePreventOption instead of PreventMouseEvent.

Other changes

  • PreventMouseEvent changed name to MousePreventOption.
  • KeyPressedArgs changed its name to KeyboardInputArgs.
  • Added SystemChanges attribute, which denotes methods that change system settings and have a permanent effect.
  • Improved XML comments.