[vlc-commits] mouse wheel handling: fix left / right scrolling events

David Fuhrmann git at videolan.org
Sun Feb 10 10:19:56 CET 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Feb 10 10:01:26 2013 +0100| [77733e5ec52e49d853e790ab682ded21e641f1b2] | committer: David Fuhrmann

mouse wheel handling: fix left / right scrolling events

scrolling right should set position forwards, not backwards

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=77733e5ec52e49d853e790ab682ded21e641f1b2
---

 src/config/keys.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/config/keys.c b/src/config/keys.c
index 7403aea..738625d 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -506,16 +506,16 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
     if (mousemode < 2)
     {
         vlc_AddMapping (&as->map,
-                        mousemode ? KEY_MOUSEWHEELLEFT : KEY_MOUSEWHEELUP,
+                        mousemode ? KEY_MOUSEWHEELRIGHT : KEY_MOUSEWHEELUP,
                         ACTIONID_VOL_UP);
         vlc_AddMapping (&as->map,
-                        mousemode ? KEY_MOUSEWHEELRIGHT : KEY_MOUSEWHEELDOWN,
+                        mousemode ? KEY_MOUSEWHEELLEFT : KEY_MOUSEWHEELDOWN,
                         ACTIONID_VOL_DOWN);
         vlc_AddMapping (&as->map,
-                        mousemode ? KEY_MOUSEWHEELUP : KEY_MOUSEWHEELLEFT,
+                        mousemode ? KEY_MOUSEWHEELUP : KEY_MOUSEWHEELRIGHT,
                         ACTIONID_JUMP_FORWARD_EXTRASHORT);
         vlc_AddMapping (&as->map,
-                        mousemode ? KEY_MOUSEWHEELDOWN : KEY_MOUSEWHEELRIGHT,
+                        mousemode ? KEY_MOUSEWHEELDOWN : KEY_MOUSEWHEELLEFT,
                         ACTIONID_JUMP_BACKWARD_EXTRASHORT);
     }
 



More information about the vlc-commits mailing list