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

Add support for X TEST extension to send fake click events #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MadLittleMods
Copy link
Contributor

Add support for X TEST extension to send fake click events (or keyboard events).

Useful for automating mouse/keyboard input in tests.

Testing strategy

  1. Uncomment the lines to // Send a fake mouse left-click event
  2. Start the example program:
    $ zig run testexample.zig
  3. Notice that a left-click event is logged in the terminal and if your mouse is over top of another window, it's brought into view because it gets clicked.

Dev note

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.

1 participant