FreeSpacenav / spacenavd

Free user-space driver for 6-dof space-mice.
http://spacenav.sourceforge.net
GNU General Public License v3.0
279 stars 55 forks source link

kbmap not working under wayland #91

Open mseddon opened 10 months ago

mseddon commented 10 months ago

I am trying to support shift / alt / ctrl modifiers under wayland for Blender using wayland (without xwayland). Unfortunately this is not working for me- xev does not acknowledge any key events at all from my spacenavigator device.

Am I correct in thinking this is unsupported at present, and that running xwayland is the right solution in the meantime?

jtsiomb commented 10 months ago

Yes, the key mapping feature sends X events. It only works for X applications and only if spacenavd successfully connects to the X server, so any X authentication issues will prevent it from working too.

I'm marking this as a feature request, but I don't plan on implementing wayland keyboard mapping myself. I'm not at all interested in wayland, I consider it a step backwards, but if anyone else wishes to work on this, I'll gladly accept patches/pull requests about it.

adrianinsaval commented 1 week ago

it might be possible to implement this using libei now

jtsiomb commented 1 week ago

Unless I'm misreading the libei readme file, it sounds like the wayland compositor needs to support libei specifically for this to work. It feels like a kludge, and far from a universal solution for implementing "keystrokes on wayland".

Also no external libraries unless absolutely necessary.

adrianinsaval commented 1 week ago

It's the most universal you can get in Wayland