<html><head></head><body><div class="gmail_quote">Le 3 août 2017 16:10:51 GMT+03:00, "Hugo Beauzée-Luyssen" <hugo@beauzee.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">From: Thomas Guillem <thomas@gllm.fr><br /><br />---<br /> modules/video_output/win32/win32touch.c | 20 ++++++++++----------<br /> 1 file changed, 10 insertions(+), 10 deletions(-)<br /><br />diff --git a/modules/video_output/win32/win32touch.c b/modules/video_output/win32/win32touch.c<br />index 72f041b9d0..ccd103f184 100644<br />--- a/modules/video_output/win32/win32touch.c<br />+++ b/modules/video_output/win32/win32touch.c<br />@@ -74,7 +74,7 @@ LRESULT DecodeGesture( vlc_object_t *p_this, win32_gesture_sys_t *p_gesture,<br />                         else<br />                             action_id = ACTIONID_JUMP_FORWARD_SHORT;<br />                     }<br />-                    var_SetInteger( p_this->obj.libvlc, "key-action", action_id );<br />+                    vlc_actions_do( p_this, action_id, true );<br />                 }<br />                 /* Reset the values */<br />                 p_gesture->i_action = GESTURE_ACTION_UNDEFINED;<br />@@ -108,9 +108,9 @@ LRESULT DecodeGesture( vlc_object_t *p_this, win32_gesture_sys_t *p_gesture,<br />                     int offset = p_gesture->i_lasty - gi.ptsLocation.y;<br /> <br />                     if( offset > 100)<br />-                        var_SetInteger( p_this->obj.libvlc, "key-action", ACTIONID_VOL_UP );<br />+                        vlc_actions_do( p_this, ACTIONID_VOL_UP, true );<br />                     else if( offset < -100)<br />-                        var_SetInteger( p_this->obj.libvlc, "key-action", ACTIONID_VOL_DOWN );<br />+                        vlc_actions_do( p_this, ACTIONID_VOL_DOWN, true );<br />                     else<br />                         break;<br /> <br />@@ -124,19 +124,19 @@ LRESULT DecodeGesture( vlc_object_t *p_this, win32_gesture_sys_t *p_gesture,<br /> <br />                     if( p_gesture->i_lasty - p_gesture->i_beginy > 80 )<br />                     {<br />-                        var_SetInteger( p_this->obj.libvlc, "key-action", ACTIONID_BRIGHTNESS_DOWN );<br />+                        vlc_actions_do( p_this, ACTIONID_BRIGHTNESS_DOWN, true );<br />                         p_gesture->i_lasty = gi.ptsLocation.y;<br />                     }<br />                     else if ( p_gesture->i_lasty - p_gesture->i_beginy < 80 )<br />                     {<br />-                        var_SetInteger( p_this->obj.libvlc, "key-action", ACTIONID_BRIGHTNESS_UP );<br />+                        vlc_actions_do( p_this, ACTIONID_BRIGHTNESS_UP, true );<br />                         p_gesture->i_lasty = gi.ptsLocation.y;<br />                     } */<br />                 }<br />                 break;<br />             case GID_TWOFINGERTAP:<br />                 p_gesture->i_type = GID_TWOFINGERTAP;<br />-                var_SetInteger( p_this->obj.libvlc, "key-action", ACTIONID_PLAY_PAUSE );<br />+                vlc_actions_do( p_this, ACTIONID_PLAY_PAUSE, true );<br />                 bHandled = TRUE;<br />                 break;<br />             case GID_ZOOM:<br />@@ -151,11 +151,11 @@ LRESULT DecodeGesture( vlc_object_t *p_this, win32_gesture_sys_t *p_gesture,<br />                             double k = (double)(gi.ullArguments) /<br />                                        (double)(p_gesture->i_ullArguments);<br />                             if( k > 1 )<br />-                                var_SetInteger( p_this->obj.libvlc, "key-action",<br />-                                        ACTIONID_TOGGLE_FULLSCREEN );<br />+                                vlc_actions_do( p_this,<br />+                                        ACTIONID_TOGGLE_FULLSCREEN, true );<br />                             else<br />-                                var_SetInteger( p_this->obj.libvlc, "key-action",<br />-                                        ACTIONID_LEAVE_FULLSCREEN );<br />+                                vlc_actions_do( p_this,<br />+                                        ACTIONID_LEAVE_FULLSCREEN, true );<br />                         }<br />                         break;<br />                     default:</pre></blockquote></div><br clear="all">Same as 15<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>