Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a panic bug on key event on Windows. #122

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

NaokiM03
Copy link
Contributor

@NaokiM03 NaokiM03 commented Aug 30, 2022

Hi.

Fixed following issue.
#121

The policy of the fix was to follow the README of winapi-rs.

How do I create an instance of a union?

Use std::mem::zeroed() to create an instance of the union, and then assign the value you want using one of the variant methods.

@bizarreuser
Copy link

This problem still exists when I use the 0.0.14 version of crate, I'm wondering if you could show me an example about it cuz I'm not very familiar with Rust.

@NaokiM03
Copy link
Contributor Author

It has not been maintained for a long time and is unlikely to be merged.
See this issue for more details.
#121

Copy link
Contributor

@BrettMayson BrettMayson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Been using this fork for a few months, fixed the linked issue for me. Tested and confirmed bug and fix on Windows 11.

@BrettMayson BrettMayson merged commit 7f96365 into enigo-rs:master Jan 26, 2023
@pentamassiv
Copy link
Collaborator

Thank you @NaokiM03 for your work and thank you BrettMayson for the review and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants