Reputation: 2650
I have an embedded application which is using x11 with opengl for windowing and rendering of graphics. The device has a touch screen, which is used for application interaction. Currently, the touch screen driver is implemented in our application space and we handle the events accordingly. However, I want that the touch events should go to the application via X11 interface.
Can anyone help me understand how this can be achieved ?
Upvotes: 0
Views: 3346
Reputation: 11
Probably the easiest way is the uinput module. This allows you to create a "virtual device" in userspace that can generate events. Those can be caught with the evdev driver by the xserver and sent to your application (o any other window). See linux uinput: simple example?
Upvotes: 1