Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
c53b4c33
Commit
c53b4c33
authored
Jan 08, 2004
by
Sam Hocevar
Browse files
* modules/video_output/caca.c:
+ Updated for libcaca 0.7.
parent
5d751eab
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_output/caca.c
View file @
c53b4c33
/*****************************************************************************
* caca.c: Color ASCII Art video output plugin using libcaca
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: caca.c,v 1.
5
2004/01/0
4 04:50:24
sam Exp $
* Copyright (C) 2003
, 2004
VideoLAN
* $Id: caca.c,v 1.
6
2004/01/0
8 19:22:10
sam Exp $
*
* Authors: Sam Hocevar <sam@zoy.org>
*
...
...
@@ -199,24 +199,21 @@ static int Manage( vout_thread_t *p_vout )
int
event
;
vlc_value_t
val
;
while
((
event
=
caca_get_event
()
))
while
((
event
=
caca_get_event
(
CACA_EVENT_KEY_PRESS
)
))
{
if
(
event
&
CACA_EVENT_KEY_PRESS
)
switch
(
event
&
0x00ffffff
)
{
switch
(
event
&
0xffff
)
{
case
'q'
:
val
.
i_int
=
KEY_MODIFIER_CTRL
|
'q'
;
break
;
case
' '
:
val
.
i_int
=
KEY_SPACE
;
break
;
default:
continue
;
}
var_Set
(
p_vout
->
p_vlc
,
"key-pressed"
,
val
);
case
'q'
:
val
.
i_int
=
KEY_MODIFIER_CTRL
|
'q'
;
break
;
case
' '
:
val
.
i_int
=
KEY_SPACE
;
break
;
default:
continue
;
}
var_Set
(
p_vout
->
p_vlc
,
"key-pressed"
,
val
);
}
return
VLC_SUCCESS
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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