|
|
@ -1064,7 +1064,7 @@ xf_mouseEvent(rdpInput *input, UINT16 flags, UINT16 x, UINT16 y) |
|
|
|
* The RDP specs says the lower bits of flags contains the "the number of rotation |
|
|
|
* The RDP specs says the lower bits of flags contains the "the number of rotation |
|
|
|
* units the mouse wheel was rotated". |
|
|
|
* units the mouse wheel was rotated". |
|
|
|
* |
|
|
|
* |
|
|
|
* https://blogs.msdn.microsoft.com/oldnewthing/20130123-00/?p=5473 explains the 120 value
|
|
|
|
* https://devblogs.microsoft.com/oldnewthing/20130123-00/?p=5473 explains the 120 value
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
value = -(flags & 0xff) / 120.0; |
|
|
|
value = -(flags & 0xff) / 120.0; |
|
|
|
if (flags & PTR_FLAGS_WHEEL_NEGATIVE) |
|
|
|
if (flags & PTR_FLAGS_WHEEL_NEGATIVE) |
|
|
|