Commit b9452821 authored by Antoine Cellerier's avatar Antoine Cellerier

Use action id in lirc. (Untested)

parent ca35eb93
......@@ -35,6 +35,7 @@
#include <vlc_plugin.h>
#include <vlc_interface.h>
#include <vlc_osd.h>
#include <vlc_keys.h>
#ifdef HAVE_POLL
# include <poll.h>
......@@ -179,8 +180,11 @@ static void Process( intf_thread_t *p_intf )
{
if( !strncmp( "key-", c, 4 ) )
{
int i_keyval = config_GetInt( p_intf, c );
var_SetInteger( p_intf->p_libvlc, "key-pressed", i_keyval );
vlc_key_t i_key = vlc_GetActionId( c );
if( i_key )
var_SetInteger( p_intf->p_libvlc, "key-action", i_key );
else
msg_Err( p_intf, "Unknown hotkey '%s'.", c );
}
else if( !strncmp( "menu ", c, 5) )
{
......
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