Ticket #7600: wacom_extra_bamboo.patch
File wacom_extra_bamboo.patch, 2.0 KB (added by , 13 years ago) |
---|
-
src/add-ons/input_server/devices/wacom/TabletDevice.cpp
238 238 case 0xD4: // Wacom Bamboo 4x5 (from Linux Wacom Project) 239 239 SetDevice(14720.0, 9200.0, DEVICE_BAMBOO_PT); 240 240 break; 241 case 0xD6: // Wacom Bamboo CTH-460/K (from Linux Wacom Project) 242 SetDevice(14720.0, 9200.0, DEVICE_BAMBOO_PT); 243 break; 244 case 0xD7: // Wacom Bamboo CTH-461/S (from Linux Wacom Project) 245 SetDevice(14720.0, 9200.0, DEVICE_BAMBOO_PT); 246 break; 247 case 0xD8: // Wacom Bamboo CTH-661/S1 (from Linux Wacom Project) 248 SetDevice(21648.0, 13530.0, DEVICE_BAMBOO_PT); 249 break; 250 case 0xDA: // Wacom Bamboo CTH-461/L (from Linux Wacom Project) 251 SetDevice(14720.0, 9200.0, DEVICE_BAMBOO_PT); 252 break; 253 case 0xDB: // Wacom Bamboo CTH-661 (from Linux Wacom Project) 254 SetDevice(21648.0, 13530.0, DEVICE_BAMBOO_PT); 255 break; 241 256 default: 242 257 status = B_BAD_VALUE; 243 258 break; … … 322 337 if (dataBytes < 20) { // ignore touch-packets 323 338 xPos = data[3] << 8 | data[2]; 324 339 yPos = data[5] << 8 | data[4]; 325 326 hasContact = (data[1] & 0x 10) && (data[1] & 0x20);327 340 341 hasContact = (data[1] & 0x20); 342 328 343 uint16 pressureData = data[7] << 8 | data[6]; 329 344 pressure = (float)pressureData / 1023.0; 330 345 eraser = (data[1] & 0x08); 331 346 332 347 firstButton = (data[1] & 0x01); 333 348 secondButton = (data[1] & 0x02); 334 349 thirdButton = (data[1] & 0x04); 335 350 336 351 break; 337 352 } 338 353 } … … 816 831 case 0xD4: 817 832 *name = "Wacom Bamboo 4x5\" USB"; 818 833 break; 834 case 0xD6: 835 *name = "Wacom Bamboo (CTH-460/K)"; 836 break; 837 case 0xD7: 838 *name = "Wacom Bamboo (CTH-461/S)"; 839 break; 840 case 0xD8: 841 *name = "Wacom Bamboo (CTH-661/S1)"; 842 break; 843 case 0xDA: 844 *name = "Wacom Bamboo (CTH-461/L)"; 845 break; 846 case 0xDB: 847 *name = "Wacom Bamboo (CTH-661)"; 848 break; 819 849 820 850 default: 821 851 *name = "<unkown wacom tablet>";