Commit 70ad5ae8 authored by Thomas Guillem's avatar Thomas Guillem

core: keys: add ACTIONID_VIEWPOINT_ZOOM_*

parent d68a92f5
...@@ -230,6 +230,8 @@ typedef enum vlc_action { ...@@ -230,6 +230,8 @@ typedef enum vlc_action {
/* Viewpoint */ /* Viewpoint */
ACTIONID_VIEWPOINT_FOV_IN, ACTIONID_VIEWPOINT_FOV_IN,
ACTIONID_VIEWPOINT_FOV_OUT, ACTIONID_VIEWPOINT_FOV_OUT,
ACTIONID_VIEWPOINT_ZOOM_IN,
ACTIONID_VIEWPOINT_ZOOM_OUT,
} vlc_action_t; } vlc_action_t;
......
...@@ -932,6 +932,19 @@ static int PutAction( intf_thread_t *p_intf, int i_action ) ...@@ -932,6 +932,19 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
false ); false );
break; break;
case ACTIONID_VIEWPOINT_ZOOM_IN:
if( p_vout )
input_UpdateViewpoint( p_input,
&(vlc_viewpoint_t) { .zoom = 0.01f },
false );
break;
case ACTIONID_VIEWPOINT_ZOOM_OUT:
if( p_vout )
input_UpdateViewpoint( p_input,
&(vlc_viewpoint_t) { .zoom = -0.01f },
false );
break;
case ACTIONID_TOGGLE_AUTOSCALE: case ACTIONID_TOGGLE_AUTOSCALE:
if( p_vout ) if( p_vout )
{ {
......
...@@ -370,6 +370,8 @@ static const struct action actions[] = ...@@ -370,6 +370,8 @@ static const struct action actions[] =
{ "unzoom", ACTIONID_UNZOOM, }, { "unzoom", ACTIONID_UNZOOM, },
{ "viewpoint-fov-in", ACTIONID_VIEWPOINT_FOV_IN, }, { "viewpoint-fov-in", ACTIONID_VIEWPOINT_FOV_IN, },
{ "viewpoint-fov-out", ACTIONID_VIEWPOINT_FOV_OUT, }, { "viewpoint-fov-out", ACTIONID_VIEWPOINT_FOV_OUT, },
{ "viewpoint-zoom-in", ACTIONID_VIEWPOINT_ZOOM_IN, },
{ "viewpoint-zoom-out", ACTIONID_VIEWPOINT_ZOOM_OUT, },
{ "vol-down", ACTIONID_VOL_DOWN, }, { "vol-down", ACTIONID_VOL_DOWN, },
{ "vol-mute", ACTIONID_VOL_MUTE, }, { "vol-mute", ACTIONID_VOL_MUTE, },
{ "vol-up", ACTIONID_VOL_UP, }, { "vol-up", ACTIONID_VOL_UP, },
......
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