[vlc-devel] glue about var_Set / var_Get and key-pressed
iuri at digizap.com.br
Thu Feb 8 12:45:53 CET 2007
On Thu, 2007-02-08 at 14:02 +0800, gauchy wrote:
> > look for examples on ManageVideo/ConvertKey in
> > vlc/modules/video_output/x11/xcommon.c
> > use something like this:
> > var_Set( p_vout->p_libvlc, "key-pressed", val );
> > handle it on interface plugin
> I've seen that code before,but it's unclear how vlc to handle the
> key-pressed events?
> var_Set() and var_Get() drive me crazy! no documents talk about
> how these functions works, only tell me to set the variable value and
> get the variable's value, Can you tell me something about that? or where
> I can find the document?
you use var_Set on a place and use var_Get in another, it's like IPC.
But you use var_AddCallback to handle it correctly.
read the changelog and look for key-press
Iuri Gomes Diniz <iuri at yahoo.com.br>
Behold, the fool saith, "Put not all thine eggs in the one
but a manner of saying, "Scatter your money and your attention;" but the
man saith, "Put all your eggs in the one basket and--WATCH THAT BASKET."
-- Mark Twain, "Pudd'nhead Wilson's Calendar"
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the vlc-devel