Xtr126 / XtMapper

Keyboard and mouse input mapper
https://xtr126.github.io/XtMapper-docs
GNU General Public License v3.0
227 stars 23 forks source link

Support for waydroid (not dupplicate) #68

Closed afzl-wtu closed 4 months ago

afzl-wtu commented 10 months ago

Waydroid seriously lacks keymapper. I can see /dev/input in waydroid getting keystroked. Can we not read directly and rempap them through evdev to touch events?

Xtr126 commented 10 months ago

You are probably looking for the persist.waydroid.uevent property https://docs.waydro.id/usage/waydroid-prop-options You can recreate /dev/input/eventX in the waydroid container by triggering the uevent Finding out the correct /dev/input/eventX by cat /proc/bus/input/devices Assuming we got event4, sudo sh -c 'echo add > /sys/class/input/event4/uevent'

afzl-wtu commented 9 months ago

You are probably looking for the persist.waydroid.uevent property https://docs.waydro.id/usage/waydroid-prop-options You can recreate /dev/input/eventX in the waydroid container by triggering the uevent Finding out the correct /dev/input/eventX by cat /proc/bus/input/devices Assuming we got event4, sudo sh -c 'echo add > /sys/class/input/event4/uevent'

If so, why xtmapper does not work with wayddroid. ANd hack of overlay windows is applied ?

Xtr126 commented 9 months ago

You are probably looking for the persist.waydroid.uevent property https://docs.waydro.id/usage/waydroid-prop-options You can recreate /dev/input/eventX in the waydroid container by triggering the uevent Finding out the correct /dev/input/eventX by cat /proc/bus/input/devices Assuming we got event4, sudo sh -c 'echo add > /sys/class/input/event4/uevent'

If so, why xtmapper does not work with wayddroid. ANd hack of overlay windows is applied ?

It has been confirmed to work on several systems, there is also a video https://youtu.be/yvZD2E7kgG0?si=h7e9bps3wGaH5GnL

tcguangda commented 9 months ago

photo_2024-02-25_22-55-16

waydroid works, very good!

tcguangda commented 9 months ago

image

I have only tried the mouse to replace the touch control before. I don’t know why the custom buttons cannot be changed. There is no response when entering numbers or letters.

tcguangda commented 9 months ago

sudo pacman -S wayland-protocols libxkbcommon

Okay, forget to install this!

mytcgd commented 7 months ago

This method in waydroid has a flaw. It generates a key-press running form externally. When the game itself supports wasd, there will be conflicts and it is inflexible!

Xtr126 commented 4 months ago

Try using new cage method.