[haiku-bugs] Re: [Haiku] #8978: 'Clicks' not set in MouseDown messages on Thinkpad TrackPoint buttons

  • From: "mks" <trac@xxxxxxxxxxxx>
  • Date: Tue, 29 Jan 2013 13:24:28 -0000

#8978: 'Clicks' not set in MouseDown messages on Thinkpad TrackPoint buttons
---------------------------------+----------------------------
   Reporter:  mks                |      Owner:  siarzhuk
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  R1
  Component:  Drivers/Mouse/PS2  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------

Comment (by mks):

 http://cgit.haiku-os.org/haiku/tree/src/servers/app/Window.cpp#n854

 {{{
 clickCount The number of subsequent, no longer than double-click
 interval separated clicks that have happened so far. This number doesn't
 necessarily match the value in the message. It has already been
 pre-processed in order to avoid erroneous multi-clicks (e.g. when a
 different button has been used or a different window was targeted). This
 is an in-out variable. The method can reset the value to 1, if it
 doesn't want this event handled as a multi-click. Returning a different
 click target will also make the caller reset the click count.
 }}}

 … seemed "suspicious" to me and I don't know the input handling code, or
 any Haiku internal code for that matter. Plus I didn't know where the
 BMessage is generated and figured I had to start ''somewhere''. I did this
 before your hint with ps2_bus_manager and I would prefer it if you left
 out the attitude next time.

 Nevertheless I am attaching two logs, syslog.0 is right after boot up,
 firing up the console and copying the syslog. syslog.2 is just a few
 clicks and again the copying.

 Hope, somebody can help make sense of the output, especially the data
 values.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8978#comment:11>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: