Windows: Detect Surface Pro 2 tablets.
Task-number: QTBUG-39571 Change-Id: I9cb7fe2dee9a0701912ea639cdcc66a198e5b65c Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
This commit is contained in:
parent
0aa84a619e
commit
1b32e8d7d4
@ -276,6 +276,8 @@ static inline QTabletEvent::TabletDevice deviceType(const UINT cursorType)
|
||||
{
|
||||
if (((cursorType & 0x0006) == 0x0002) && ((cursorType & CursorTypeBitMask) != 0x0902))
|
||||
return QTabletEvent::Stylus;
|
||||
if (cursorType == 0x4020) // Surface Pro 2 tablet device
|
||||
return QTabletEvent::Stylus;
|
||||
switch (cursorType & CursorTypeBitMask) {
|
||||
case 0x0802:
|
||||
return QTabletEvent::Stylus;
|
||||
|
Loading…
Reference in New Issue
Block a user