Skip to content

Input Injection Sample doesn't show how to move mouse points #3887

Description

This sample is pretty barebones and only shows how to replicate a mouse click. (Separating out the math for the clicked point from the actual input injection could be a good future improvement as well.)

However, even after digging into the API docs for the input injector methods, there's no examples or other info on simulating:

  • a more complex mouse movement (i.e. drag from point A to point B over 1 second)
  • a gesture with multiple independent touch points
  • keyboard injection with multiple keys or a command key like Ctrl+C
  • gamepad injection
  • pen injection (with hover)

At least mouse move would be a good starting point to explain the flags and sending multiple points in a pipeline of some sort with the right timing to perform these operations. Otherwise, it's really impossible to understand how to use this API effectively without a lot of trial and error.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions