LIBTOOL=@LIBTOOL@ --tag=CC
SOURCES_aa = aa.c
-SOURCES_caca = caca.c
+SOURCES_caca = caca.c keythread.h keythread.c
SOURCES_fb = fb.c
SOURCES_vout_sdl = sdl.c keythread.h keythread.c
SOURCES_snapshot = snapshot.c
#include <vlc_plugin.h>
#include <vlc_vout_display.h>
#include <vlc_picture_pool.h>
+#include "keythread.h"
#include <caca.h>
cucul_dither_t *dither;
picture_pool_t *pool;
+ key_thread_t *keys;
};
/**
vout_display_SendEventFullscreen(vd, false);
Refresh(vd);
+ sys->keys = vlc_CreateKeyThread(vd);
return VLC_SUCCESS;
error:
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys = vd->sys;
+ vlc_DestroyKeyThread(sys->keys);
if (sys->pool)
picture_pool_Delete(sys->pool);
if (sys->dither)
const int vlc = keys[i].vlc;
if (vlc >= 0)
- vout_display_SendEventKey(vd, vlc);
+ vlc_EmitKey(sys->keys, vlc);
return;
}
}