case 6: /* wheel left */
wheel = TRUE;
if (xfc->settings->HasHorizontalWheel)
- flags = PTR_FLAGS_HWHEEL | 0x0078;
+ flags = PTR_FLAGS_HWHEEL | PTR_FLAGS_WHEEL_NEGATIVE | 0x0078;
break;
case 7: /* wheel right */
wheel = TRUE;
if (xfc->settings->HasHorizontalWheel)
- flags = PTR_FLAGS_HWHEEL | PTR_FLAGS_WHEEL_NEGATIVE | 0x0078;
+ flags = PTR_FLAGS_HWHEEL | 0x0078;
break;
default:
{
/* advertised by RDP 5.2, 6.0, 6.1 and 7.0 servers */
}
- else if (inputFlags & TS_INPUT_FLAG_MOUSE_HWHEEL)
- settings->HasHorizontalWheel = TRUE;
else
{
/* server does not support fastpath input */
settings->FastPathInput = FALSE;
}
+ if (inputFlags & TS_INPUT_FLAG_MOUSE_HWHEEL) {
+ settings->HasHorizontalWheel = TRUE;
+ }
}
return TRUE;
}