Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
956a6bc8
Commit
956a6bc8
authored
Feb 16, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plug gestures on video output
parent
20c8e19e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
modules/video_output/Modules.am
modules/video_output/Modules.am
+10
-5
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+12
-0
No files found.
modules/video_output/Modules.am
View file @
956a6bc8
...
...
@@ -119,7 +119,8 @@ endif
### Win32 ###
libdirect2d_plugin_la_SOURCES = msw/direct2d.c \
msw/common.c msw/common.h msw/events.c msw/events.h
msw/common.c msw/common.h msw/events.c msw/events.h \
../control/win32touch.c ../control/win32touch.h
libdirect2d_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
-DMODULE_NAME_IS_direct2d
libdirect2d_plugin_la_LIBADD = -lgdi32 -lole32 -luuid
...
...
@@ -128,7 +129,8 @@ vout_LTLIBRARIES += $(LTLIBdirect2d)
EXTRA_LTLIBRARIES += libdirect2d_plugin.la
libdirect3d_plugin_la_SOURCES = msw/direct3d.c \
msw/common.c msw/common.h msw/events.c msw/events.h msw/builtin_shaders.h
msw/common.c msw/common.h msw/events.c msw/events.h msw/builtin_shaders.h \
../control/win32touch.c ../control/win32touch.h
libdirect3d_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
-DMODULE_NAME_IS_direct3d
libdirect3d_plugin_la_LIBADD = -lgdi32 -lole32 -luuid
...
...
@@ -137,7 +139,8 @@ vout_LTLIBRARIES += $(LTLIBdirect3d)
EXTRA_LTLIBRARIES += libdirect3d_plugin.la
libdirectdraw_plugin_la_SOURCES = msw/directx.c \
msw/common.c msw/common.h msw/events.c msw/events.h
msw/common.c msw/common.h msw/events.c msw/events.h \
../control/win32touch.c ../control/win32touch.h
libdirectdraw_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
-DMODULE_NAME_IS_directdraw
libdirectdraw_plugin_la_LIBADD = -luser32 -lgdi32 -lole32 -luuid
...
...
@@ -146,7 +149,8 @@ vout_LTLIBRARIES += libdirectdraw_plugin.la
endif
libglwin32_plugin_la_SOURCES = msw/glwin32.c opengl.c opengl.h \
msw/common.c msw/common.h msw/events.c msw/events.h
msw/common.c msw/common.h msw/events.c msw/events.h \
../control/win32touch.c ../control/win32touch.h
libglwin32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
-DMODULE_NAME_IS_glwin32
libglwin32_plugin_la_LIBADD = -lopengl32 -lgdi32 -lole32 -luuid
...
...
@@ -155,7 +159,8 @@ vout_LTLIBRARIES += $(LTLIBglwin32)
EXTRA_LTLIBRARIES += libglwin32_plugin.la
libwingdi_plugin_la_SOURCES = msw/wingdi.c \
msw/common.c msw/common.h msw/events.c msw/events.h
msw/common.c msw/common.h msw/events.c msw/events.h \
../control/win32touch.c ../control/win32touch.h
libwingdi_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
-DMODULE_NAME_IS_wingdi
libwingdi_plugin_la_LIBADD = -lgdi32 -lole32 -luuid
...
...
modules/video_output/msw/events.c
View file @
956a6bc8
...
...
@@ -30,6 +30,8 @@
# include "config.h"
#endif
#include "../../control/win32touch.h"
#include <vlc_common.h>
#include <vlc_vout_display.h>
...
...
@@ -67,6 +69,9 @@ struct event_thread_t
HCURSOR
cursor_empty
;
unsigned
button_pressed
;
/* Gestures */
win32_gesture_sys_t
*
p_gesture
;
/* Title */
char
*
psz_title
;
...
...
@@ -797,6 +802,8 @@ static int Win32VoutCreateWindow( event_thread_t *p_event )
return
VLC_EGENERIC
;
}
InitGestures
(
p_event
->
hwnd
,
&
p_event
->
p_gesture
);
if
(
p_event
->
hparent
)
{
LONG
i_style
;
...
...
@@ -882,6 +889,8 @@ static void Win32VoutCloseWindow( event_thread_t *p_event )
DestroyIcon
(
p_event
->
vlc_icon
);
DestroyCursor
(
p_event
->
cursor_empty
);
CloseGestures
(
p_event
->
p_gesture
);
}
/*****************************************************************************
...
...
@@ -1035,6 +1044,9 @@ static long FAR PASCAL WinVoutEventProc( HWND hwnd, UINT message,
case
WM_SETFOCUS
:
return
0
;
case
WM_GESTURE
:
return
DecodeGesture
(
VLC_OBJECT
(
vd
),
p_event
->
p_gesture
,
hwnd
,
message
,
wParam
,
lParam
);
default:
//msg_Dbg( vd, "WinProc WM Default %i", message );
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment