Advertisement
fpicarougne

hid-multitouch.c.patch

Sep 17th, 2012
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. 68d67
  2. < int last_mt_collection; /* last known mt-related collection */
  3. 211a211,217
  4. > static void set_last_slot_field(struct hid_usage *usage, struct mt_device *td,
  5. > struct hid_input *hi)
  6. > {
  7. > if (!test_bit(usage->hid, hi->input->absbit))
  8. > td->last_slot_field = usage->hid;
  9. > }
  10. >
  11. 243,246c249,250
  12. < if (td->last_mt_collection == usage->collection_index) {
  13. < td->last_slot_field = usage->hid;
  14. < td->last_field_index = field->index;
  15. < }
  16. ---
  17. > set_last_slot_field(usage, td, hi);
  18. > td->last_field_index = field->index;
  19. 257,260c261,262
  20. < if (td->last_mt_collection == usage->collection_index) {
  21. < td->last_slot_field = usage->hid;
  22. < td->last_field_index = field->index;
  23. < }
  24. ---
  25. > set_last_slot_field(usage, td, hi);
  26. > td->last_field_index = field->index;
  27. 268,271c270,271
  28. < if (td->last_mt_collection == usage->collection_index) {
  29. < td->last_slot_field = usage->hid;
  30. < td->last_field_index = field->index;
  31. < }
  32. ---
  33. > set_last_slot_field(usage, td, hi);
  34. > td->last_field_index = field->index;
  35. 274,277c274,275
  36. < if (td->last_mt_collection == usage->collection_index) {
  37. < td->last_slot_field = usage->hid;
  38. < td->last_field_index = field->index;
  39. < }
  40. ---
  41. > set_last_slot_field(usage, td, hi);
  42. > td->last_field_index = field->index;
  43. 282,285c280,281
  44. < if (td->last_mt_collection == usage->collection_index) {
  45. < td->last_slot_field = usage->hid;
  46. < td->last_field_index = field->index;
  47. < }
  48. ---
  49. > set_last_slot_field(usage, td, hi);
  50. > td->last_field_index = field->index;
  51. 293d288
  52. < td->last_mt_collection = usage->collection_index;
  53. 300,303c295,296
  54. < if (td->last_mt_collection == usage->collection_index) {
  55. < td->last_slot_field = usage->hid;
  56. < td->last_field_index = field->index;
  57. < }
  58. ---
  59. > set_last_slot_field(usage, td, hi);
  60. > td->last_field_index = field->index;
  61. 312,315c305,306
  62. < if (td->last_mt_collection == usage->collection_index) {
  63. < td->last_slot_field = usage->hid;
  64. < td->last_field_index = field->index;
  65. < }
  66. ---
  67. > set_last_slot_field(usage, td, hi);
  68. > td->last_field_index = field->index;
  69. 327,330c318,319
  70. < if (td->last_mt_collection == usage->collection_index) {
  71. < td->last_slot_field = usage->hid;
  72. < td->last_field_index = field->index;
  73. < }
  74. ---
  75. > set_last_slot_field(usage, td, hi);
  76. > td->last_field_index = field->index;
  77. 333,334c322
  78. < if (td->last_mt_collection == usage->collection_index)
  79. < td->last_field_index = field->index;
  80. ---
  81. > td->last_field_index = field->index;
  82. 339,340c327
  83. < if (td->last_mt_collection == usage->collection_index)
  84. < td->last_field_index = field->index;
  85. ---
  86. > td->last_field_index = field->index;
  87. 557d543
  88. < td->last_mt_collection = -1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement