[Top][All Lists]

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

Re: mouse wheel with NCURSES_MOUSE_VERSION=1

From: Thomas Dickey
Subject: Re: mouse wheel with NCURSES_MOUSE_VERSION=1
Date: Wed, 25 Jan 2012 04:36:23 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Jan 25, 2012 at 10:19:56AM +0400, Alexander V. Lukyanov wrote:
> Hello!
> I have noticed that mouse wheel-down event with old mouse version (1) is
> reported as these masks:
>    0200:      BUTTON2_PRESSED
>    01000000000:       REPORT_MOUSE_POSITION
> Besides, mouse wheel-up event is only reported as mask 02000000
> (BUTTON4_PRESSED) just one time, even if I scroll the wheel continuously.

The current code (since September/October 2011) does report multiple
BUTTON4_PRESSED events.  The result with wheel-down is debatable (since
it is not discarded).

From the NEWS file:

        + correct logic for discarding mouse events, retaining the partial
          events used to build up click, double-click, etc, until needed
          (cf: 20110917).
        + build-fix for lib_mouse.c changes (cf: 20110917).
        + improve merging of mouse events (integrated patch by Damien
        + correct mask-check used in lib_mouse for wheel mouse buttons 4/5
          (patch by Damien Guibouret).

> ncurses version from fedora15, ncurses-5.8-2.20110319.fc15.x86_64
> Please fix it. Wheel-down events with NCURSES_MOUSE_VERSION=1 can be
> reported as BUTTON4 with modifiers like BUTTON_SHIFT.

In a quick test I don't see this happening with the current code.

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

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