Chromium Code Reviews
DescriptionWe hard coded the pointer type as mouse in ui::GetMousePointerDetailsFromNative for events sending from Windows. Now we use a mouse message from GetMessageExtraInfo to decide the actual input device type.
GetMessageExtraInfo needs to be mask-checked against 0xFFFFFF00, and then compared
with 0xFF515700. True when this mouse message was generated by a Tablet PC pen or touch
screen. Otherwise it is from a mouse device. Additionally, in Windows Vista or later,
the eighth bit, masked by 0x80, is used to differentiate
touch input from pen input
(0 = pen, 1 = touch).
Reference:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms703320(v=vs.85).aspx
BUG=614820
Review-Url: https://codereview.chromium.org/2020143003
Cr-Commit-Position: refs/heads/master@{#398025}
(cherry picked from commit 16ac979eddbdd5ccc045092c1260e42dd38191f6)
Committed: https://chromium.googlesource.com/chromium/src/+/6f7dbeb652323de923942b2956ea12d81187894e
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
|||||||||||||||||||