[vlc-devel] glue about var_Set / var_Get and key-pressed

Iuri Diniz 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?
>   thanks
>                              gauchy
> 
> 

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

a glue:
read modules/control/hotkeys.c


---
Iuri Gomes Diniz <iuri at yahoo.com.br>
http://clx.digi.com.br

Behold, the fool saith, "Put not all thine eggs in the one
basket"--which is
but a manner of saying, "Scatter your money and your attention;" but the
wise
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...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070208/b0ce39aa/attachment.sig>


More information about the vlc-devel mailing list