From: george82 Date: Wed, 16 Mar 2005 12:36:53 +0000 (+0000) Subject: Added the possibility to play/pause the rfb session X-Git-Tag: v0.0.90~384^2~589 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03c01da663e8e914c03b55789e212c0627dd256f;p=tigervnc.git Added the possibility to play/pause the rfb session by the right mouse button. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@246 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx index 38dd241a..a4942076 100644 --- a/rfbplayer/rfbplayer.cxx +++ b/rfbplayer/rfbplayer.cxx @@ -546,6 +546,11 @@ LRESULT RfbPlayer::processFrameMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARA EndPaint(getFrameHandle(), &ps); } return 0; + + // Process play/pause by the right mouse button + case WM_RBUTTONDOWN: + SendMessage(getMainHandle(), WM_COMMAND, ID_PLAYPAUSE, 0); + return 0; case WM_VSCROLL: case WM_HSCROLL: