Added option to detect if mouse and keyboard events are injected and not real events from the keyboard and mouse #185
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.