diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-03-09 10:24:12 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-03-09 10:24:12 +0000 |
commit | c266e5a274b05b347402ca0e2cbc7565f4b7ada3 (patch) | |
tree | 5834af56dd7c3210afc9928f12aabd72049cfc30 /vncviewer/DesktopWindow.h | |
parent | 5156d5e49b88d9a5c0ede2c81897e8a2d3c52523 (diff) | |
download | tigervnc-c266e5a274b05b347402ca0e2cbc7565f4b7ada3.tar.gz tigervnc-c266e5a274b05b347402ca0e2cbc7565f4b7ada3.zip |
Handle pointer events.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4346 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/DesktopWindow.h')
-rw-r--r-- | vncviewer/DesktopWindow.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vncviewer/DesktopWindow.h b/vncviewer/DesktopWindow.h index de85adde..ba308c05 100644 --- a/vncviewer/DesktopWindow.h +++ b/vncviewer/DesktopWindow.h @@ -82,6 +82,7 @@ public: // Fl_Window callback methods void draw(); + int handle(int event); private: @@ -96,6 +97,9 @@ private: static void handleClose(Fl_Widget *wnd, void *data); + void handlePointerEvent(const rfb::Point& pos, int buttonMask); + static void handlePointerTimeout(void *data); + private: CConn* cc; @@ -105,6 +109,9 @@ private: rfb::SimpleColourMap colourMap; rfb::Region damage; + + rfb::Point lastPointerPos; + int lastButtonMask; }; #endif |