Mouse Wheel Support in Wayland
Tiago Vignatti
tiago.vignatti at linux.intel.com
Thu May 10 01:37:56 PDT 2012
Hi Yan,
On 05/10/2012 10:07 AM, yan.wang at linux.intel.com wrote:
> I am not sure whether mouse wheel event is supported in current Weston?
> I add checking of BTN_SIDE/BTN_EXTRA in input button callback but no
> response. It may be more convenient to browsing web content if
> supporting mouse wheel scrolling.
I'm not sure why you're checking for BTN_SIDE/BTN_EXTRA.
We do have support for mouse wheel though and we call it "axis", in
principle. You can check if your app is getting those events setting
WAYLAND_DEBUG=1 and a stream like "wl_input_device at 6.axis(903960155, 0,
1)" in getting there. Then you'll need to add an input listener to your
app (wl_input_device_add_listener) and write a handler for axis types.
Tiago
More information about the wayland-devel
mailing list