emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse wheel release events?


From: Po Lu
Subject: Re: Mouse wheel release events?
Date: Wed, 01 Dec 2021 08:50:01 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Date: Tue, 30 Nov 2021 10:28:43 +0800
>> 
>> Some mouse wheels generate special events when the user moves his finger
>> off the wheel, even if the wheel was not previously clicked.
>> 
>> These events are used by most applications to start inertial scrolling,
>> support for which I would like to add to Emacs.
>> 
>> I want to add a `wheel-release' event that is sent every time Emacs
>> receives such an event from the mouse wheel.  Is that okay?
>
> Can you please point me to the technical description of such a mouse?

I don't know how to find the technical description of a mouse, but here
is the XInput 2 documentation.  You should specifically look at the
section titled "Pointer emulation from multitouch events":

  https://www.x.org/releases/X11R7.7/doc/inputproto/XI2proto.txt

While the documentation makes it seem specific to touchpads, at least 2
kinds of mice, Apple's "Magic Mouse 2", and some Logitech mice with
"hyperscrolling" also generate events in that specific way.

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]