Re: XTestFakeKeyEvent GDK-equivalent

2018-07-09 Thread Anarchean via gtk-list
‐‐‐ Original Message ‐‐‐ On 5 July 2018 10:32 PM, Allin Cottrell wrote: > On Thu, 5 Jul 2018, Anarchean via gtk-list wrote: > > > I'm working into implementing a virtual remote keyboard/touch pad > > > > daemon for Linux, currently I'm dumping events into an uinput > > > > device,

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-07 Thread Anarchean via gtk-list
Hello Emmanuele, Well, my requirements allow an only-X or -Wayland solution, but I totally understand what you mean, I feel it is weird using a testing API do implement functionality. My current solution is using uniput to create a virtual device in user space, I'm just having trouble with the

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-07 Thread Anarchean via gtk-list
Hi James, xdotool is a good option, but I would prefer to use a library instead, and a cross-platform one. I looked xdotool source code, and they use XTest internally. I was just curious to see if there were any way of doing that directly from GTK. Anyway, thank you for answering. ‐‐‐

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-07 Thread Emmanuele Bassi via gtk-list
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

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-06 Thread James Cameron
For quick hacks or testing apps, I use xdotool. I've no idea if it works with Wayland though. -- James Cameron http://quozl.netrek.org/ ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-06 Thread Allin Cottrell
On Fri, 6 Jul 2018, Anarchean wrote: On 5 July 2018 10:32 PM, Allin Cottrell wrote: [...] The context is a little different, but the attached function works, given pointers to an existing GtkWidget and GdkEvent. I tried your code out. It works OK, but its limited to emitting events to a

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-06 Thread Anarchean via gtk-list
​Sent with ProtonMail Secure Email.​ ‐‐‐ Original Message ‐‐‐ On 6 July 2018 9:57 AM, Eric Williams wrote: > Hello, > > On 07/05/2018 02:40 PM, Anarchean via gtk-list wrote: > > > Hi, > > > > I'm working into implementing a virtual remote keyboard/touch pad daemon > > > > for

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-06 Thread Eric Williams via gtk-list
Hello, On 07/05/2018 02:40 PM, Anarchean via gtk-list wrote: 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,

Re: XTestFakeKeyEvent GDK-equivalent

2018-07-05 Thread Allin Cottrell
On Thu, 5 Jul 2018, Anarchean via gtk-list wrote: 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

XTestFakeKeyEvent GDK-equivalent

2018-07-05 Thread Anarchean via gtk-list
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