mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-27 05:04:44 +03:00
16110acaa2
and on a secondary screen and locked to the screen (via scroll lock) mouse motion is sent as motion deltas. When true and scroll lock is toggled off the mouse is warped to the secondary screen's center so the server knows where it is. This option is intended to support games and other programs that repeatedly warp the mouse to the center of the screen. This change adds general and X11 support but not win32. The option name is "relativeMouseMoves".
64 lines
2.3 KiB
C++
64 lines
2.3 KiB
C++
/*
|
|
* synergy -- mouse and keyboard sharing utility
|
|
* Copyright (C) 2002 Chris Schoeneman
|
|
*
|
|
* This package is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* found in the file COPYING that should have accompanied this file.
|
|
*
|
|
* This package is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef OPTIONTYPES_H
|
|
#define OPTIONTYPES_H
|
|
|
|
#include "BasicTypes.h"
|
|
#include "stdvector.h"
|
|
|
|
//! Option ID
|
|
/*!
|
|
Type to hold an option identifier.
|
|
*/
|
|
typedef UInt32 OptionID;
|
|
|
|
//! Option Value
|
|
/*!
|
|
Type to hold an option value.
|
|
*/
|
|
typedef SInt32 OptionValue;
|
|
|
|
// for now, options are just pairs of integers
|
|
typedef std::vector<UInt32> COptionsList;
|
|
|
|
// macro for packing 4 character strings into 4 byte integers
|
|
#define OPTION_CODE(_s) \
|
|
(static_cast<UInt32>(static_cast<unsigned char>(_s[0]) << 24) | \
|
|
static_cast<UInt32>(static_cast<unsigned char>(_s[1]) << 16) | \
|
|
static_cast<UInt32>(static_cast<unsigned char>(_s[2]) << 8) | \
|
|
static_cast<UInt32>(static_cast<unsigned char>(_s[3]) ))
|
|
|
|
//! @name Option identifiers
|
|
//@{
|
|
static const OptionID kOptionHalfDuplexCapsLock = OPTION_CODE("HDCL");
|
|
static const OptionID kOptionHalfDuplexNumLock = OPTION_CODE("HDNL");
|
|
static const OptionID kOptionHalfDuplexScrollLock = OPTION_CODE("HDSL");
|
|
static const OptionID kOptionModifierMapForShift = OPTION_CODE("MMFS");
|
|
static const OptionID kOptionModifierMapForControl = OPTION_CODE("MMFC");
|
|
static const OptionID kOptionModifierMapForAlt = OPTION_CODE("MMFA");
|
|
static const OptionID kOptionModifierMapForMeta = OPTION_CODE("MMFM");
|
|
static const OptionID kOptionModifierMapForSuper = OPTION_CODE("MMFR");
|
|
static const OptionID kOptionHeartbeat = OPTION_CODE("HART");
|
|
static const OptionID kOptionScreenSwitchDelay = OPTION_CODE("SSWT");
|
|
static const OptionID kOptionScreenSwitchTwoTap = OPTION_CODE("SSTT");
|
|
static const OptionID kOptionScreenSaverSync = OPTION_CODE("SSVR");
|
|
static const OptionID kOptionXTestXineramaUnaware = OPTION_CODE("XTXU");
|
|
static const OptionID kOptionRelativeMouseMoves = OPTION_CODE("MDLT");
|
|
//@}
|
|
|
|
#undef OPTION_CODE
|
|
|
|
#endif
|