Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
57f92bde
Commit
57f92bde
authored
Feb 09, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout event: use var_GetAndSet
parent
7e6c2325
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
src/video_output/event.h
src/video_output/event.h
+3
-8
No files found.
src/video_output/event.h
View file @
57f92bde
...
...
@@ -65,9 +65,7 @@ static inline void vout_SendEventMouseMoved(vout_thread_t *vout, int x, int y)
}
static
inline
void
vout_SendEventMousePressed
(
vout_thread_t
*
vout
,
int
button
)
{
int
current
=
var_GetInteger
(
vout
,
"mouse-button-down"
);
current
|=
1
<<
button
;
var_SetInteger
(
vout
,
"mouse-button-down"
,
current
);
var_OrInteger
(
vout
,
"mouse-button-down"
,
1
<<
button
);
switch
(
button
)
{
...
...
@@ -76,8 +74,7 @@ static inline void vout_SendEventMousePressed(vout_thread_t *vout, int button)
var_SetBool
(
vout
->
p_libvlc
,
"intf-popupmenu"
,
false
);
break
;
case
MOUSE_BUTTON_CENTER
:
var_SetBool
(
vout
->
p_libvlc
,
"intf-show"
,
!
var_GetBool
(
vout
->
p_libvlc
,
"intf-show"
));
var_ToggleBool
(
vout
->
p_libvlc
,
"intf-show"
);
break
;
case
MOUSE_BUTTON_RIGHT
:
var_SetBool
(
vout
->
p_libvlc
,
"intf-popupmenu"
,
true
);
...
...
@@ -86,9 +83,7 @@ static inline void vout_SendEventMousePressed(vout_thread_t *vout, int button)
}
static
inline
void
vout_SendEventMouseReleased
(
vout_thread_t
*
vout
,
int
button
)
{
int
current
=
var_GetInteger
(
vout
,
"mouse-button-down"
);
current
&=
~
(
1
<<
button
);
var_SetInteger
(
vout
,
"mouse-button-down"
,
current
);
var_NAndInteger
(
vout
,
"mouse-button-down"
,
1
<<
button
);
}
static
inline
void
vout_SendEventMouseDoubleClick
(
vout_thread_t
*
vout
)
{
...
...
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