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

Added option to detect if mouse and keyboard events are injected and not real events from the keyboard and mouse #185

Open
wants to merge 3 commits into
base: vNext
Choose a base branch
from

Conversation

Alecu100
Copy link

@Alecu100 Alecu100 commented Dec 14, 2023

I needed to be able to detect if a mouse or keyboard event was injected using one of the windows inject primitives, in my case SendInput, to only allow injected events and suppress events from the real keyboard and mouse.

So I added a new property in the KeyEventArgsExt and MouseEventExtArgs called IsInjected that is set to true of the event is injected and not a real event from the keyboard or mouse.

And I added new keyboard events with the extended keyboard arguments to make the new functionality more easily accessible and similar to how mouse events are handled. Things are a bit more consistent now.

I also updated the targets to include .net 8 and increased the version to 5.8 because it has some new features.

Would it be possible to make a new nuget release from these updates, to bump the nuget package to version 5.8?

I know this merge is just for the vnext branch, I think then it needs to be merged in the main branch and then a release needs to be made for the nuget package.

@Alecu100
Copy link
Author

Alecu100 commented Dec 14, 2023

I need to investigate why the unit test fails, locally it passed. It still seems to pass locally, can't replicate the failure.

@Alecu100
Copy link
Author

@gmamaladze Small reminde of this pull request, not sure if you saw the request.

@Alecu100
Copy link
Author

Alecu100 commented Jan 7, 2024

@gmamaladze Sorry to bother, just making sure that this pull request is still alive and will eventually get merged and a new nuget version of the package gets released. Would really need this for work, it's the best package that does what I need. Thanks!

@Alecu100
Copy link
Author

@gmamaladze I made another version of the library that supports detection of injected events and posted it on nuget in order to finish the work and have our new feature running in our application. Hope this will eventually get merged into the official version and posted on nuget!. Thanks for the library, it was really helpful and sorry to bother you :)

@Alecu100
Copy link
Author

@gmamaladze Hello there! Is this project still maintained?

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.

2 participants