aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/ClientParams.h
Commit message (Collapse)AuthorAgeFilesLines
* Add server support for forward/back mouse buttonsAdam Halim2024-10-221-0/+1
| | | | | | | | | This commit adds support for the pseudo-encoding ExtendedMouseButtons in Xvnc and x0vncserver, which makes it possible to use to use the back/forward mouse buttons. This commit contains work originally done by PixelSmith <manny33@frontbuffer.com>.
* Use std::string for string memory managementPierre Ossman2023-02-041-2/+3
| | | | | Avoids a bit of complexity by delegating that handling to a string object.
* Use stdint typesPierre Ossman2023-02-011-9/+10
| | | | | Avoid having our own custom stuff and instead use the modern, standard types, for familiarity.
* Remove useless const specifiersPierre Ossman2023-01-051-2/+2
| | | | | These are just values, so setting const on them has no effect as the caller will get a copy.
* Add support for notifying clients about pointer movementslhchavez2021-03-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | This change adds support for the VMware Mouse Position pseudo-encoding[1], which is used to notify VNC clients when X11 clients call `XWarpPointer()`[2]. This function is called by SDL (and other similar libraries) when they detect that the server does not support native relative motion, like some RFB clients. With this, RFB clients can choose to adjust the local cursor position under certain circumstances to match what the server has set. For instance, if pointer lock has been enabled on the client's machine and the cursor is not being drawn locally, the local position of the cursor is irrelevant, so the RFB client can use what the server sends as the canonical absolute position of the cursor. This ultimately enables the possibility of games (especially FPS games) to behave how users expect (if the clients implement the corresponding change). Part of: #619 1: https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#vmware-cursor-position-pseudo-encoding 2: https://tronche.com/gui/x/xlib/input/XWarpPointer.html 3: https://hg.libsdl.org/SDL/file/28e3b60e2131/src/events/SDL_mouse.c#l804
* Handle unsolicited clipboard transfersPierre Ossman2021-01-041-0/+1
| | | | | | The extended clipboard protocol has the ability for the peer to request things to be sent automatically, without a request message. Make sure we honor such settings.
* Support extended clipboard transfersPierre Ossman2019-07-011-1/+6
| | | | | | | Implements support in both client and server for the extended clipboard format first seen in UltraVNC. Currently only implements text handling, but that is still an improvement as it extends the clipboard from ISO 8859-1 to full Unicode.
* Abstract sending cursor and resizing the desktopPierre Ossman2018-12-101-0/+1
| | | | | | Avoid having the callers need to know about the different variants of these functions and instead have the writer pick the most appropriate extension.
* Remove indirect capability attributesPierre Ossman2018-11-011-15/+6
| | | | | Better to check the actual list of supported encodings directly. Makes parts more readable, and no risk of getting out of sync.
* Rename ConnParams to ClientParamsPierre Ossman2018-11-011-0/+121
Now that we've split out server state to ServerParams, ConnParams only contains state for a client. Rename the class and variables to reflect this.