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
06a696f8
Commit
06a696f8
authored
Sep 06, 2004
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed OpenGL mouse events
parent
460b1fca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
modules/video_output/opengl.c
modules/video_output/opengl.c
+6
-2
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+0
-7
No files found.
modules/video_output/opengl.c
View file @
06a696f8
...
...
@@ -197,9 +197,13 @@ static int CreateVout( vlc_object_t *p_this )
p_vout
->
pf_display
=
DisplayVideo
;
p_vout
->
pf_control
=
Control
;
var_Create
(
p_sys
->
p_vout
,
"video-on-top"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
/* Forward events from the opengl provider */
var_Create
(
p_sys
->
p_vout
,
"mouse-x"
,
VLC_VAR_INTEGER
);
var_Create
(
p_sys
->
p_vout
,
"mouse-y"
,
VLC_VAR_INTEGER
);
var_Create
(
p_sys
->
p_vout
,
"mouse-moved"
,
VLC_VAR_BOOL
);
var_Create
(
p_sys
->
p_vout
,
"mouse-clicked"
,
VLC_VAR_INTEGER
);
var_Create
(
p_sys
->
p_vout
,
"video-on-top"
,
VLC_VAR_BOOL
);
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-x"
,
SendEvents
,
p_vout
);
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-y"
,
SendEvents
,
p_vout
);
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-moved"
,
SendEvents
,
p_vout
);
...
...
src/video_output/vout_intf.c
View file @
06a696f8
...
...
@@ -223,13 +223,6 @@ void vout_IntfInit( vout_thread_t *p_vout )
}
var_AddCallback
(
p_vout
,
"fullscreen"
,
FullscreenCallback
,
NULL
);
/* Mouse coordinates */
var_Create
(
p_vout
,
"mouse-x"
,
VLC_VAR_INTEGER
);
var_Create
(
p_vout
,
"mouse-y"
,
VLC_VAR_INTEGER
);
var_Create
(
p_vout
,
"mouse-button-down"
,
VLC_VAR_INTEGER
);
var_Create
(
p_vout
,
"mouse-moved"
,
VLC_VAR_BOOL
);
var_Create
(
p_vout
,
"mouse-clicked"
,
VLC_VAR_INTEGER
);
var_Create
(
p_vout
,
"intf-change"
,
VLC_VAR_BOOL
);
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_vout
,
"intf-change"
,
val
);
...
...
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