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 inject_evdev application #299

Merged
merged 16 commits into from
Apr 27, 2023
Merged

Add inject_evdev application #299

merged 16 commits into from
Apr 27, 2023

Conversation

Eeems
Copy link
Collaborator

@Eeems Eeems commented Apr 12, 2023

No description provided.

@Eeems
Copy link
Collaborator Author

Eeems commented Apr 12, 2023

inject_evdev.zip
Minimum build without sentry enabled, and including the required library.

@Eeems
Copy link
Collaborator Author

Eeems commented Apr 12, 2023

Example usage: echo -e "EV_ABS ABS_MT_TRACKING_ID 123\nEV_SYN SYN_MT_REPORT\n EV_SYN SYN_REPORT\nEV_ABS ABS_MT_TRACKING_ID -1\nEV_SYN SYN_MT_REPORT\n EV_SYN SYN_REPORT" | inject_evdev event2

Another example would be to create a file named events.txt with the following:

EV_ABS ABS_MT_TRACKING_ID 123
EV_SYN SYN_MT_REPORT
EV_SYN SYN_REPORT
EV_ABS ABS_MT_TRACKING_ID -1
EV_SYN SYN_MT_REPORT
EV_SYN SYN_REPORT

And then run the following: cat events.txt | inject_evdev event2

You can also just run inject_evdev event2 and manually type in the events.

Base automatically changed from issue/296 to master April 24, 2023 16:54
@X-Ryl669
Copy link

Doesn't that duplicate what's done in iago and lamp ?
Or is it for testing the event handling code ?

@Eeems
Copy link
Collaborator Author

Eeems commented Apr 24, 2023

Doesn't that duplicate what's done in iago and lamp ? Or is it for testing the event handling code ?

Not at all, this allows injecting fake evdev events via any script.

iago is for drawing shapes, so while it does inject pen events, it first has a UI for you to position the shape before drawing. This serves a very specific purpose, which inject_evdev does not.

lamp is just for listening to touch events and running things based on gestures.

@Eeems Eeems merged commit b76ddcf into master Apr 27, 2023
@Eeems Eeems deleted the inject_evdev branch April 27, 2023 23:09
@Eeems Eeems linked an issue May 16, 2023 that may be closed by this pull request
@Eeems Eeems added this to the v2.6 milestone Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Adding four event code's
2 participants