diff options
author | Adam Halim <adaha@cendio.se> | 2024-10-04 10:09:36 +0200 |
---|---|---|
committer | Adam Halim <adaha@cendio.se> | 2024-10-22 14:52:36 +0200 |
commit | c40d8a4debbfbf98045ef25fcac91672f0cc1049 (patch) | |
tree | a83dcaf1dad87039047a8a45ec2a49a47646325e /tests/unit/emulatemb.cxx | |
parent | 66287bd933e1d5426b7b6108afcc42ac9b3440a5 (diff) | |
download | tigervnc-c40d8a4debbfbf98045ef25fcac91672f0cc1049.tar.gz tigervnc-c40d8a4debbfbf98045ef25fcac91672f0cc1049.zip |
vncviewer: support for back/forward mouse buttons
This commit implements the pseudo-encoding ExtendedMouseButtons which
makes it possible to use the back/forward mouse buttons.
This commit contains work originally done by
PixelSmith <manny33@frontbuffer.com>.
Diffstat (limited to 'tests/unit/emulatemb.cxx')
-rw-r--r-- | tests/unit/emulatemb.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/emulatemb.cxx b/tests/unit/emulatemb.cxx index ae022c06..6db8ea38 100644 --- a/tests/unit/emulatemb.cxx +++ b/tests/unit/emulatemb.cxx @@ -42,14 +42,14 @@ rfb::BoolParameter emulateMiddleButton("dummy_name", "dummy_desc", true); class TestClass : public EmulateMB { public: - void sendPointerEvent(const rfb::Point& pos, uint8_t buttonMask) override; + void sendPointerEvent(const rfb::Point& pos, uint16_t buttonMask) override; - struct PointerEventParams {rfb::Point pos; uint8_t mask; }; + struct PointerEventParams {rfb::Point pos; uint16_t mask; }; std::vector<PointerEventParams> results; }; -void TestClass::sendPointerEvent(const rfb::Point& pos, uint8_t buttonMask) +void TestClass::sendPointerEvent(const rfb::Point& pos, uint16_t buttonMask) { PointerEventParams params; params.pos = pos; |