Minimum sample code to learn wayland.
$ meson build
$ ninja -C build
WAYLAND_DEBUG=1 XDG_RUNTIME_DIR=~/.xdg ./build/src/y11
NO_HEAD=1 # will not paint pixel maps to the console.
WAYLAND_DEBUG=1 XDG_RUNTIME_DIR=~/.xdg weston-flower
You can see the communication messages in the debug log.
in a virtual terminal (Press Alt + Shift + (F2 or F3 or F4 or ...) )
weston
./build/client/y11-client
Plug and unplug your mouse. You will see the current input device capabilites in the client's log.
* keyboard capability might be always set in weston.