[vlc-commits] vout:win32: handle right/middle mouse button double click
Steve Lhomme
git at videolan.org
Tue Apr 2 16:32:47 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Apr 2 11:55:05 2019 +0200| [6b79ae309ca6caf244017fa376b7106937c66ad9] | committer: Steve Lhomme
vout:win32: handle right/middle mouse button double click
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b79ae309ca6caf244017fa376b7106937c66ad9
---
modules/video_output/win32/events.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/video_output/win32/events.c b/modules/video_output/win32/events.c
index 061576887a..c609423d8f 100644
--- a/modules/video_output/win32/events.c
+++ b/modules/video_output/win32/events.c
@@ -264,6 +264,9 @@ static void *EventThread( void *p_this )
case WM_MBUTTONUP:
MouseReleased( p_event, MOUSE_BUTTON_CENTER );
break;
+ case WM_MBUTTONDBLCLK:
+ vout_window_ReportMouseDoubleClick(p_event->parent_window, MOUSE_BUTTON_CENTER);
+ break;
case WM_RBUTTONDOWN:
MousePressed( p_event, msg.hwnd, MOUSE_BUTTON_RIGHT );
@@ -271,6 +274,9 @@ static void *EventThread( void *p_this )
case WM_RBUTTONUP:
MouseReleased( p_event, MOUSE_BUTTON_RIGHT );
break;
+ case WM_RBUTTONDBLCLK:
+ vout_window_ReportMouseDoubleClick(p_event->parent_window, MOUSE_BUTTON_RIGHT);
+ break;
case WM_KEYDOWN:
case WM_SYSKEYDOWN:
More information about the vlc-commits
mailing list