You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm investigating how to use a Wiimote as a mouse on GNU/Linux on Wayland.
On X11, there's xserver-xorg-input-xwiimote (https://github.com/xwiimote/xf86-input-xwiimote) but there's nothing like that on Wayland.
It is possible to use d as the value in an event map. The variable d represents the difference between the current value of the event, and the value that the event had the last time it was emitted by its input device. This is handy for turning absolute events into relative events:
So, if for example an abs:hat0x:300 were to be followed up by a abs:hat0x:310 event, the latter event will be mapped to rel:x:10, which will be interpreted as moving your mouse ten arbitrary units to the right.
You can also add a factor like rel:x:0.5d to map events to half of the difference between the current value of the event and its previous value. (Though you might run into rounding issues since event values always need to be an integer value, see issue #42.)
Maybe you can use this to turn your Wiimote into a somewhat functional mouse?
Hello,
I'm investigating how to use a Wiimote as a mouse on GNU/Linux on Wayland.
On X11, there's xserver-xorg-input-xwiimote (https://github.com/xwiimote/xf86-input-xwiimote) but there's nothing like that on Wayland.
Wayland's libinput backend doesn't support Wiimote, either, and won't support it:
https://gitlab.freedesktop.org/libinput/libinput/-/issues/510
So, all there's left on the horizon seems to be evsieve.
I can see the Wiimote detected in evtest as three different event nodes:
Starting with the IR (/dev/input/event16), evsieve reports the movement like this:
Looking at the docs and examples, I don't get how to translate that to mouse movement.
Mouse is detected by evtest like this:
Would I have to create a "virtual" mouse? Would I have to pass motion events to
/dev/input/event5
somehow using evsieve?The text was updated successfully, but these errors were encountered: