Commit c53b4c33 authored by Sam Hocevar's avatar Sam Hocevar
Browse files

* modules/video_output/caca.c:

    + Updated for libcaca 0.7.
parent 5d751eab
/***************************************************************************** /*****************************************************************************
* caca.c: Color ASCII Art video output plugin using libcaca * caca.c: Color ASCII Art video output plugin using libcaca
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003, 2004 VideoLAN
* $Id: caca.c,v 1.5 2004/01/04 04:50:24 sam Exp $ * $Id: caca.c,v 1.6 2004/01/08 19:22:10 sam Exp $
* *
* Authors: Sam Hocevar <sam@zoy.org> * Authors: Sam Hocevar <sam@zoy.org>
* *
...@@ -199,24 +199,21 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -199,24 +199,21 @@ static int Manage( vout_thread_t *p_vout )
int event; int event;
vlc_value_t val; 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';
case 'q': break;
val.i_int = KEY_MODIFIER_CTRL | 'q'; case ' ':
break; val.i_int = KEY_SPACE;
case ' ': break;
val.i_int = KEY_SPACE; default:
break; continue;
default:
continue;
}
var_Set( p_vout->p_vlc, "key-pressed", val );
} }
var_Set( p_vout->p_vlc, "key-pressed", val );
} }
return VLC_SUCCESS; return VLC_SUCCESS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment