]> source.dussan.org Git - tigervnc.git/commitdiff
Added the possibility to play/pause the rfb session
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 16 Mar 2005 12:36:53 +0000 (12:36 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 16 Mar 2005 12:36:53 +0000 (12:36 +0000)
by the right mouse button.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@246 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/rfbplayer.cxx

index 38dd241a4c1d84f10d7ec0e47f6637cbaf5c04de..a4942076703f6247fd47ecba1934bc3fda0e4fc9 100644 (file)
@@ -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: