Re: XTestFakeKeyEvent GDK-equivalent
- From: Emmanuele Bassi <ebassi gmail com>
- To: anarchean protonmail com
- Cc: ML-gtk <gtk-list gnome org>
- Subject: Re: XTestFakeKeyEvent GDK-equivalent
- Date: Sat, 7 Jul 2018 14:51:52 +0100
Hi;
virtual keyboards running outside of the windowing system platform as clients do not use the XTest API — mostly because it's meant only for testing X, and because it's only for X. Injecting synthetic events into the windowing system is just not going to give you what you want, if what you want is to write a input driver. Additionally, GDK won't let you do this because GDK is a client toolkit, and it can only consume events coming from the windowing system, not inject them for random clients to process.
You will need to write a device driver — either for X11, or for the Linux kernel — that does this for you.
Ciao,
Emmanuele.
Hi,
I'm working into implementing a virtual remote keyboard/touch pad daemon for Linux, currently I'm dumping events into an uinput device, but that is giving me some trouble with my keyboard layout (which is brazillian, br-abnt2). I was looking for a way to this in X, found XTestFakeKeyEvent and was wondering if I could make it simpler and cross-platform using
GDK3. I tried this attached code, but it doesn't do anything. I was wondering if someone has done this before and know what I'm doing wrong or if I should just give up doing with GDK.
Also, this is an extra, if I can't just fake key events, what should I use to map unicode chars into linux/input.h event key codes based on my keyboard layout on X? What about Wayland?
Thank you!
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list
--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]