XTestFakeKeyEvent GDK-equivalent
- From: Anarchean <anarchean protonmail com>
- To: "gtk-list gnome org" <gtk-list gnome org>
- Subject: XTestFakeKeyEvent GDK-equivalent
- Date: Thu, 05 Jul 2018 14:40:13 -0400
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!
Attachment:
main.c
Description: Text Data
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]