Bug 81071

Summary: Generating keyboard events
Product: Wayland Reporter: thepouar
Component: waylandAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: enhancement    
Priority: medium CC: e.a.b.piel, peter.hutterer, thepouar
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description thepouar 2014-07-09 00:46:28 UTC
In X There's a program I use called AntiMicro for mapping keystrokes to joystick buttons. It works by sending fake keystrokes using XTest. This obviously won't work with Wayland and I was hoping you guys would implement something similar so a similar program could be developed. It's one of the biggest thing keeping me to X.
Comment 1 Peter Hutterer 2014-07-22 00:37:16 UTC
Moving this over to wayland, this is something that needs to be handled either through something resembling XTest, or fully in userspace.
Comment 2 Eric Piel 2014-08-26 14:27:37 UTC
Note that in Linux nowadays you can just use uinput to simulate user inputs. For example have a look at this: http://tjjr.fi/sw/python-uinput/ .

A whole new XTest for wayland is maybe avoidable?
Comment 3 Peter Hutterer 2014-08-26 22:04:56 UTC
uinput requires root rights, which is its biggest drawback compared to XTest.
Comment 4 Daniel Stone 2018-06-04 08:16:42 UTC
That being said, we'd vastly prefer a compositor mechanism than allowing arbitrary clients to snoop on and inject events, since the latter is a security issue.
Comment 5 GitLab Migration User 2018-06-08 23:50:16 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/wayland/wayland/issues/43.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.