Bug 741038 - Dumb down mt touchscreen detection, r=cjones

This commit is contained in:
Michael Wu 2012-04-06 03:01:07 -07:00
Родитель c7a0b43a81
Коммит 9ee4c98335
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -970,9 +970,10 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
// Some joysticks such as the PS3 controller report axes that conflict
// with the ABS_MT range. Try to confirm that the device really is
// a touch screen.
if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) {
// Mozilla Bug 741038 - support GB touchscreen drivers
//if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) {
device->classes |= INPUT_DEVICE_CLASS_TOUCH | INPUT_DEVICE_CLASS_TOUCH_MT;
}
//}
// Is this an old style single-touch driver?
} else if (test_bit(BTN_TOUCH, device->keyBitmask)
&& test_bit(ABS_X, device->absBitmask)