- Windows:
Key::Control
pressesControl
and no longer the leftControl
.
- all: Added a ton of keys (e.g F21-F24 keys and the XBUTTON1 & XBUTTON2 mouse buttons are now available on Windows). Some of them are OS specific. Use conditional compilation (e.g
#[cfg(target_os = "windows")]
) to use them to not break the build on other OSs. - examples: New example
platform_specific.rs
to demonstrate how to use keys/buttons that are platform specific
We should have bumped the minor version with the last release. Sorry about that. Have a look at the changes of 0.0.15 if you come from an earlier version.
- Windows:
mouse_scroll_y
with a positive number scrolls down just like on the other platforms - Windows: replaced
winapi
with the officialwindows
crate - Rust: Using Rust version 2021
- Rust: Minimum supported Rust version (MSRV) is set in Cargo.toml
- Rust: MSRV is 1.64
- macOS, Windows: Moved the functions
main_display_size
andmouse_location
fromEnigo
toMouseControllable
- DSL: Additional ParseError variants to give better feedback what the problem was
- DSL: Additional keys
- All: Added support for F10-F20
- CI/CD: Github Workflows to make sure the code builds and the tests pass
- Traits: Added the functions
main_display_size
andmouse_location
toMouseControllable
- Linux: Implemented the functions
main_display_size
andmouse_location
forMouseControllable
- Windows: panicked at
cannot transmute_copy if U is larger than T
(enigo-rs#121) - Windows: Inconsistent behavior between the
mouse_move_relative
andmouse_move_to
functions (enigo-rs#91) - Windows, macOS: Stop panicking when
mouse_down
ormouse_up
is called with either ofMouseButton::ScrollUp
,MouseButton::ScrollDown
,MouseButton::ScrollLeft
,MouseButton::ScrollRight
and instead scroll - Windows: Always use key codes to be layout independent. Only use scan codes for
Key::Layout
(Fixes enigo-rs#99, enigo-rs#84) - macOS:
key_click
no longer triggers a segmentation fault when called withKey::Layout
argument (Fixes enigo-rs#124) - macOS: Double clicks now work (enigo-rs#82)