Guest User

Report finger width

a guest
May 30th, 2014
707
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/drivers/input/mouse/synaptics.c
  2. +++ b/drivers/input/mouse/synaptics.c
  3. @@ -702,6 +702,8 @@
  4.     input_report_abs(dev, ABS_MT_POSITION_X, hw->x);
  5.     input_report_abs(dev, ABS_MT_POSITION_Y, synaptics_invert_y(hw->y));
  6.     input_report_abs(dev, ABS_MT_PRESSURE, hw->z);
  7. +   if (hw->w >= 4)
  8. +       input_report_abs(dev, ABS_TOOL_WIDTH, hw->w);
  9.  }
  10.  
  11.  static void synaptics_report_mt_data(struct psmouse *psmouse,
RAW Paste Data