0.7.1 Release available!
What's new:
- Improving the functionality of existing classes
[Breaking changes]
- KeyboardManipulator - The name of the
PressCombination
method has been changed to Press
Changelog
KeyboardManipulator
- The
PressCombination
method has been changed to an overload of the Press
method that accepts a collection of keys:
var keyboardManipulator = new KeyboardManipulator();
keyboardManipulator.Press(Key.LeftCtrl, Key.V);
// before
// keyboardManipulator.PressCombination(new[]{Key.LeftCtrl, Key.V});
KeyboardBinder
- Added
Swap
method that swaps button bindings between each other:
var keyboardBinder = new KeyboardBinder();
keyboardBinder.Swap(Key.Q, Key.W);
// before
// keyboardBinder.Bind(Key.Q, Key.W);
// keyboardBinder.Bind(Key.W, Key.Q);
- Added
GetBoundKey
method, which returns the current button bind. If the bind of the button has not been changed, it will return the same button:
var keyboardBinder = new KeyboardBinder();
keyboardBinder.Bind(Key.C, Key.V);
keyboardBinder.GetBoundKey(Key.C); // return V
keyboardBinder.GetBoundKey(Key.V); // return V
keyboardBinder.GetBoundKey(Key.E); // return E
Other changes
- Added XML comments to existing classes