Skip to content

Logs result of SendInput and PostMessage calls#23

Merged
magicxor merged 2 commits intomasterfrom
feature/log-sendinput-result
Nov 24, 2025
Merged

Logs result of SendInput and PostMessage calls#23
magicxor merged 2 commits intomasterfrom
feature/log-sendinput-result

Conversation

@magicxor
Copy link
Owner

Adds logging to track the number of input events successfully sent by SendInput.

This helps diagnose potential issues where not all input events are processed correctly. It logs an error if the number of sent events doesn't match the expected count and a trace if all events are successfully sent.

Adds logging to track the number of input events successfully sent by SendInput.

This helps diagnose potential issues where not all input events are processed correctly. It logs an error if the number of sent events doesn't match the expected count and a trace if all events are successfully sent.
@magicxor magicxor self-assigned this Nov 24, 2025
Copilot AI review requested due to automatic review settings November 24, 2025 02:21
@magicxor magicxor added the enhancement New feature or request label Nov 24, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds diagnostic logging to track the success of SendInput API calls in the mouse event processing loop. The implementation captures the return value from SendInput and logs an error when not all input events are successfully sent, along with trace-level logging for successful operations.

  • Captures and validates the return value of PInvoke.SendInput
  • Adds error logging with Win32 error codes when input events fail to send completely
  • Adds trace logging for successful input event transmission

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Adds logging to record the success or failure of PostMessage calls.
Logs the last Win32 error when PostMessage fails, aiding in debugging.
Logs successful message posts for tracing purposes.
@magicxor magicxor changed the title Logs result of SendInput calls Logs result of SendInput and PostMessage calls Nov 24, 2025
@magicxor magicxor merged commit ce5023a into master Nov 24, 2025
3 checks passed
@magicxor magicxor deleted the feature/log-sendinput-result branch November 24, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant