]> git.sesse.net Git - vlc/commitdiff
* Added support of wheel with win32
authorEmmanuel Puig <karibu@videolan.org>
Sun, 20 Apr 2003 15:06:07 +0000 (15:06 +0000)
committerEmmanuel Puig <karibu@videolan.org>
Sun, 20 Apr 2003 15:06:07 +0000 (15:06 +0000)
modules/gui/skins/win32/win32_window.cpp

index 9b8306648b9d6936dcb3108c147db0f6dd852dd6..f3cb5486d3ca1994fc5e18f1926fde186e36149c 100644 (file)
@@ -2,7 +2,7 @@
  * win32_window.cpp: Win32 implementation of the Window class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: win32_window.cpp,v 1.7 2003/04/16 21:40:07 ipkiss Exp $
+ * $Id: win32_window.cpp,v 1.8 2003/04/20 15:06:07 karibu Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -201,6 +201,13 @@ bool Win32Window::ProcessOSEvent( Event *evt )
             OSAPI_PostMessage( this, WINDOW_LEAVE, 0, 0 );
             return true;
 
+        case WM_MOUSEWHEEL:
+            if( HIWORD( p1 ) > 0 )
+                MouseScroll( LOWORD( p2 ), HIWORD( p2 ), MOUSE_SCROLL_UP );
+            else if( HIWORD( p1 ) < 0 )
+                MouseScroll( LOWORD( p2 ), HIWORD( p2 ), MOUSE_SCROLL_DOWN );
+            return true;
+
         default:
             return false;
     }