Mouse Wheel Support in Wayland

yan.wang at linux.intel.com yan.wang at linux.intel.com
Thu May 10 01:57:18 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.

Thanks for your tips. Just check BTN_SIDE/BTN_EXTRA in the previous old
Wayland implementation in Chromium tree. I will try Axis callback.

Yan Wang

>
> 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
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>



More information about the wayland-devel mailing list