The way this seems to be implemented seems quite similar to screen
casting. With screen casting you can get per screen cast stream absolute
cursor positions "streamed" via the PipeWire metadata, only that it will
be alongside actual screen content as well, which I imagine is not
something you need.
We're not using a device driver, it's a very small application that uses
XInput2 to wait for mouse events using XNextEvent and when it sees a mouse
event it gets the current position through XQueryPointer and transmits that
over a serial link to our device. I was just wondering if a similar feat
> For a device we’re making, it’s necessary to have a daemon running on
> servers which frequently polls the absolute mouse location and
> transmits this to our device, this is a necessary feature to have
> correct operation of our device.
Can you expand on this?
Writing a device driver in user-s
For a device we're making, it's necessary to have a daemon running on servers
which frequently polls the absolute mouse location and transmits this to our
device, this is a necessary feature to have correct operation of our device.
The problem we're running into is that on an old OS this will wor
> On 5 Dec 2021, at 05:15, Peter Hutterer wrote:
>
> please look at the source, it's not a huge program.
I have looked at the source, it’s just that I can’t see anything that’s
directly related to what I’m trying to do. It calls
xkb_keymap_key_get_mods_for_level(), which seems to be related to
On Sat, Dec 04, 2021 at 08:34:49AM +, adlo wrote:
> Basically the program I’m working on was originally designed for X11, and I’m
> trying to adapt it to Wayland. I’m trying to find an equivalent to
> XKeysymToKeycode().
>
> > it doesn't, but if you look at xkbcli how-to-type and it's source
Does xkbcommon have modifier masks, like that used in the “state” field of
XKeyEvent?
> On 4 Dec 2021, at 08:34, adlo wrote:
>
> Basically the program I’m working on was originally designed for X11, and
> I’m trying to adapt it to Wayland. I’m trying to find an equivalent to
> XKeysymToKeyco
Basically the program I’m working on was originally designed for X11, and I’m
trying to adapt it to Wayland. I’m trying to find an equivalent to
XKeysymToKeycode().
> it doesn't, but if you look at xkbcli how-to-type and it's source
> (tools/how-to-type.c) that's the closest approximation.
What