Searched refs:bitmask_key (Results 1 – 1 of 1) sorted by relevance
/AliOS-Things-master/components/SDL2/src/core/linux/ |
A D | SDL_udev.c | 337 unsigned long bitmask_key[NBITS(KEY_MAX)]; in guess_device_class() local 354 get_caps(dev, pdev, "capabilities/key", bitmask_key, SDL_arraysize(bitmask_key)); in guess_device_class() 358 if (test_bit(BTN_STYLUS, bitmask_key) || test_bit(BTN_TOOL_PEN, bitmask_key)) { in guess_device_class() 360 } else if (test_bit(BTN_TOOL_FINGER, bitmask_key) && !test_bit(BTN_TOOL_PEN, bitmask_key)) { in guess_device_class() 362 } else if (test_bit(BTN_MOUSE, bitmask_key)) { in guess_device_class() 364 } else if (test_bit(BTN_TOUCH, bitmask_key)) { in guess_device_class() 370 if (test_bit(BTN_TRIGGER, bitmask_key) || in guess_device_class() 371 test_bit(BTN_A, bitmask_key) || in guess_device_class() 372 test_bit(BTN_1, bitmask_key) || in guess_device_class() 387 test_bit(BTN_MOUSE, bitmask_key)) { in guess_device_class() [all …]
|
Completed in 3 milliseconds