Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
9bd7a6e2
Commit
9bd7a6e2
authored
Feb 09, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Even Laurent makes horrible mistakes sometimes ;)
parent
b015aa32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
src/video_output/event.h
src/video_output/event.h
+32
-32
No files found.
src/video_output/event.h
View file @
9bd7a6e2
...
...
@@ -44,51 +44,51 @@
static
inline
void
vout_SendEventClose
(
vout_thread_t
*
vout
)
{
/* Ask to stop
* FIXME works only for input handled by the playlist
*/
playlist_t
*
playlist
=
pl_Hold
(
vout
);
if
(
playlist
)
{
playlist_Stop
(
playlist
);
pl_Release
(
vout
);
}
/* Ask to stop
* FIXME works only for input handled by the playlist
*/
playlist_t
*
playlist
=
pl_Hold
(
vout
);
if
(
playlist
)
{
playlist_Stop
(
playlist
);
pl_Release
(
vout
);
}
}
static
inline
void
vout_SendEventKey
(
vout_thread_t
*
vout
,
int
key
)
{
var_SetInteger
(
vout
->
p_libvlc
,
"key-pressed"
,
key
);
var_SetInteger
(
vout
->
p_libvlc
,
"key-pressed"
,
key
);
}
static
inline
void
vout_SendEventMouseMoved
(
vout_thread_t
*
vout
,
int
x
,
int
y
)
{
var_SetInteger
(
vout
,
"mouse-x"
,
x
);
var_SetInteger
(
vout
,
"mouse-y"
,
y
);
var_SetBool
(
vout
,
"mouse-moved"
,
true
);
var_SetInteger
(
vout
,
"mouse-x"
,
x
);
var_SetInteger
(
vout
,
"mouse-y"
,
y
);
var_SetBool
(
vout
,
"mouse-moved"
,
true
);
}
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
);
int
current
=
var_GetInteger
(
vout
,
"mouse-button-down"
);
current
|=
1
<<
button
;
var_SetInteger
(
vout
,
"mouse-button-down"
,
current
);
switch
(
button
)
{
case
MOUSE_BUTTON_LEFT
:
var_SetBool
(
vout
,
"mouse-clicked"
,
true
);
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"
));
break
;
case
MOUSE_BUTTON_RIGHT
:
var_SetBool
(
vout
->
p_libvlc
,
"intf-popupmenu"
,
true
);
break
;
}
switch
(
button
)
{
case
MOUSE_BUTTON_LEFT
:
var_SetBool
(
vout
,
"mouse-clicked"
,
true
);
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"
));
break
;
case
MOUSE_BUTTON_RIGHT
:
var_SetBool
(
vout
->
p_libvlc
,
"intf-popupmenu"
,
true
);
break
;
}
}
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
);
int
current
=
var_GetInteger
(
vout
,
"mouse-button-down"
);
current
&=
~
(
1
<<
button
);
var_SetInteger
(
vout
,
"mouse-button-down"
,
current
);
}
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