Commit c185d2a8 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Convert some uses of key-pressed to key-action.

parent 89db25d2
...@@ -1059,8 +1059,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1059,8 +1059,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
/* Parse commands that only require an input */ /* Parse commands that only require an input */
if( !strcmp( psz_cmd, "pause" ) ) if( !strcmp( psz_cmd, "pause" ) )
{ {
val.i_int = config_GetInt( p_intf, "key-play-pause" ); var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_PLAY_PAUSE );
var_Set( p_intf->p_libvlc, "key-pressed", val );
vlc_object_release( p_input ); vlc_object_release( p_input );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -1090,8 +1089,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1090,8 +1089,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
} }
else else
{ {
val.i_int = config_GetInt( p_intf, "key-jump+extrashort" ); var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_FORWARD_EXTRASHORT );
var_Set( p_intf->p_libvlc, "key-pressed", val );
} }
vlc_object_release( p_input ); vlc_object_release( p_input );
return VLC_SUCCESS; return VLC_SUCCESS;
...@@ -1106,8 +1104,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1106,8 +1104,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
} }
else else
{ {
val.i_int = config_GetInt( p_intf, "key-jump-extrashort" ); var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_BACKWARD_EXTRASHORT );
var_Set( p_intf->p_libvlc, "key-pressed", val );
} }
vlc_object_release( p_input ); vlc_object_release( p_input );
return VLC_SUCCESS; return VLC_SUCCESS;
...@@ -1569,10 +1566,7 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1569,10 +1566,7 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd,
{ {
if( i_volume == AOUT_VOLUME_MIN ) if( i_volume == AOUT_VOLUME_MIN )
{ {
vlc_value_t keyval; var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_MUTE );
keyval.i_int = config_GetInt( p_intf, "key-vol-mute" );
var_Set( p_intf->p_libvlc, "key-pressed", keyval );
} }
i_error = aout_VolumeSet( p_this, i_volume ); i_error = aout_VolumeSet( p_this, i_volume );
osd_Volume( p_this ); osd_Volume( p_this );
......
...@@ -1020,9 +1020,7 @@ static NSString * VLCToolbarMediaControl = @"VLCToolbarMediaControl"; ...@@ -1020,9 +1020,7 @@ static NSString * VLCToolbarMediaControl = @"VLCToolbarMediaControl";
/* Pause */ /* Pause */
if( p_intf->p_sys->i_play_status == PLAYING_S ) if( p_intf->p_sys->i_play_status == PLAYING_S )
{ {
vlc_value_t val; var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_PLAY_PAUSE );
val.i_int = config_GetInt( p_intf, "key-play-pause" );
var_Set( p_intf->p_libvlc, "key-pressed", val );
} }
} }
......
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