Added mouse-relative option to command line

This commit is contained in:
Armin Novak 2022-01-18 16:06:25 +01:00 committed by akallabeth
parent fb8eb7251e
commit da9edc1829
2 changed files with 6 additions and 0 deletions

View File

@ -2930,6 +2930,10 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
{
settings->GrabMouse = enable;
}
CommandLineSwitchCase(arg, "mouse-relative")
{
settings->MouseUseRelativeMove = enable;
}
CommandLineSwitchCase(arg, "unmap-buttons")
{
settings->UnmapButtons = enable;

View File

@ -245,6 +245,8 @@ static const COMMAND_LINE_ARGUMENT_A global_cmd_args[] = {
"Select monitors to use" },
{ "mouse-motion", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
"Send mouse motion" },
{ "mouse-relative", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
"Send mouse motion with relative addressing" },
#if defined(CHANNEL_TSMF_CLIENT)
{ "multimedia", COMMAND_LINE_VALUE_OPTIONAL, "[sys:<sys>,][dev:<dev>,][decoder:<decoder>]",
NULL, NULL, -1, "mmr", "[DEPRECATED] Redirect multimedia (video) use /video instead" },