[haiku-bugs] Re: [Haiku] #5960: Wacom Intuos3 9x12 has wrong resolution

  • From: "idefix" <trac@xxxxxxxxxxxx>
  • Date: Tue, 11 May 2010 16:21:56 -0000

#5960: Wacom Intuos3 9x12 has wrong resolution
-------------------------------+--------------------------------------------
 Reporter:  bobrost            |       Owner:  stippi   
     Type:  bug                |      Status:  assigned 
 Priority:  normal             |   Milestone:  R1       
Component:  Drivers/Mouse/USB  |     Version:  R1/alpha2
 Keywords:  wacom input        |   Blockedby:           
 Platform:  All                |    Blocking:           
-------------------------------+--------------------------------------------

Comment(by idefix):

 Well, it look likes the
 [http://linuxwacom.cvs.sourceforge.net/viewvc/linuxwacom/linuxwacom-
 dev/src/2.6.30/wacom_wac.c?view=markup#l_690 "Linux driver"] uses a
 different method for the Intuos3 and Cintiq to calculate the absolute
 coordinates:
 {{{
 #!c
 input_report_abs(input, ABS_X, (data[2] << 9) | (data[3] << 1) | ((data[9]
 >> 1) & 1));
 input_report_abs(input, ABS_Y, (data[4] << 9) | (data[5] << 1) | (data[9]
 & 1));
 }}}
 While Haiku [source:haiku/trunk/src/add-
 ons/input_server/devices/wacom/TabletDevice.cpp#L298 uses]:
 {{{
 #!cpp
 xPos = data[2] << 8 | data[3];
 yPos = data[4] << 8 | data[5];
 }}}
 Which would explain the halving of the position in Haiku.

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

Other related posts: