Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f1d93a31
Commit
f1d93a31
authored
Mar 04, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/directx: added support for the mouse gestures interface.
parent
f94579f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
16 deletions
+42
-16
modules/video_output/directx/directx.c
modules/video_output/directx/directx.c
+1
-3
modules/video_output/directx/events.c
modules/video_output/directx/events.c
+41
-13
No files found.
modules/video_output/directx/directx.c
View file @
f1d93a31
...
...
@@ -2,7 +2,7 @@
* vout.c: Windows DirectX video output display method
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: directx.c,v 1.1
3 2003/02/20 01:52:46 sigmunau
Exp $
* $Id: directx.c,v 1.1
4 2003/03/04 22:48:55 gbazin
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -61,8 +61,6 @@ DEFINE_GUID( IID_IDirectDrawSurface2, 0x57805885,0x6eec,0x11cf,0x94,0x41,0xa8,0x
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
static
void
ToggleOnTop
();
static
int
OpenVideo
(
vlc_object_t
*
);
static
void
CloseVideo
(
vlc_object_t
*
);
...
...
modules/video_output/directx/events.c
View file @
f1d93a31
...
...
@@ -2,7 +2,7 @@
* events.c: Windows DirectX video output events handler
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: events.c,v 1.1
1 2003/02/01 18:54:10 sam
Exp $
* $Id: events.c,v 1.1
2 2003/03/04 22:48:55 gbazin
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -130,7 +130,47 @@ void DirectXEventThread( event_thread_t *p_event )
ShowCursor
(
FALSE
);
break
;
case
WM_LBUTTONDOWN
:
var_Get
(
p_event
->
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
|=
1
;
var_Set
(
p_event
->
p_vout
,
"mouse-button-down"
,
val
);
break
;
case
WM_LBUTTONUP
:
var_Get
(
p_event
->
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
&=
~
1
;
var_Set
(
p_event
->
p_vout
,
"mouse-button-down"
,
val
);
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_event
->
p_vout
,
"mouse-clicked"
,
val
);
break
;
case
WM_LBUTTONDBLCLK
:
p_event
->
p_vout
->
p_sys
->
i_changes
|=
VOUT_FULLSCREEN_CHANGE
;
break
;
case
WM_MBUTTONDOWN
:
var_Get
(
p_event
->
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
|=
2
;
var_Set
(
p_event
->
p_vout
,
"mouse-button-down"
,
val
);
break
;
case
WM_MBUTTONUP
:
var_Get
(
p_event
->
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
&=
~
2
;
var_Set
(
p_event
->
p_vout
,
"mouse-button-down"
,
val
);
break
;
case
WM_RBUTTONDOWN
:
var_Get
(
p_event
->
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
|=
4
;
var_Set
(
p_event
->
p_vout
,
"mouse-button-down"
,
val
);
break
;
case
WM_RBUTTONUP
:
var_Get
(
p_event
->
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
&=
~
4
;
var_Set
(
p_event
->
p_vout
,
"mouse-button-down"
,
val
);
{
intf_thread_t
*
p_intf
;
p_intf
=
vlc_object_find
(
p_event
,
VLC_OBJECT_INTF
,
...
...
@@ -143,18 +183,6 @@ void DirectXEventThread( event_thread_t *p_event )
}
break
;
case
WM_LBUTTONUP
:
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_event
->
p_vout
,
"mouse-clicked"
,
val
);
break
;
case
WM_LBUTTONDOWN
:
break
;
case
WM_LBUTTONDBLCLK
:
p_event
->
p_vout
->
p_sys
->
i_changes
|=
VOUT_FULLSCREEN_CHANGE
;
break
;
case
WM_KEYDOWN
:
/* the key events are first processed here. The next
* message processed by this main message loop will be the
...
...
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