Re: Absolute mouse position retrieval

2021-12-06 Thread Jonas Ådahl
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.

RE: Absolute mouse position retrieval

2021-12-06 Thread Jesse Van Gavere
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

Re: Absolute mouse position retrieval

2021-12-06 Thread Simon Ser
> 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

Absolute mouse position retrieval

2021-12-06 Thread Jesse Van Gavere
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

Re: xkbcommon: Converting keysym to keycode

2021-12-06 Thread adlo
> 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

Re: xkbcommon: Converting keysym to keycode

2021-12-06 Thread Peter Hutterer
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

Re: xkbcommon: Converting keysym to keycode

2021-12-06 Thread adlo
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

Re: xkbcommon: Converting keysym to keycode

2021-12-06 Thread adlo
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