diff options
author | joey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-08-26 22:15:26 +0000 |
---|---|---|
committer | joey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-08-26 22:15:26 +0000 |
commit | 139beb2d89b569b1194b525f528b32f2d3e78a5c (patch) | |
tree | 8a6d3a7c173155480f0eed8fa62cdd804d145897 /libvo/vo_directx.c | |
parent | fcc08ec7266e9b11a5e913fbb9787bd8893129ae (diff) | |
download | mpv-139beb2d89b569b1194b525f528b32f2d3e78a5c.tar.bz2 mpv-139beb2d89b569b1194b525f528b32f2d3e78a5c.tar.xz |
added "xbutton" support for 4-5 button mice
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13158 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_directx.c')
-rw-r--r-- | libvo/vo_directx.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index ebf56d0420..1bfd1d24dc 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -35,6 +35,12 @@ #include "aspect.h" #include "geometry.h" +#ifndef WM_XBUTTONDOWN +# define WM_XBUTTONDOWN 0x020B +# define WM_XBUTTONUP 0x020C +# define WM_XBUTTONDBLCLK 0x020D +#endif + static LPDIRECTDRAW7 g_lpdd = NULL; //DirectDraw Object static LPDIRECTDRAWSURFACE7 g_lpddsPrimary = NULL; //Primary Surface: viewport through the Desktop static LPDIRECTDRAWSURFACE7 g_lpddsOverlay = NULL; //Overlay Surface @@ -907,6 +913,16 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l mplayer_put_key(MOUSE_BTN4); break; } + case WM_XBUTTONDOWN: + { + if (vo_nomouse_input) + break; + if (HIWORD(wParam) == 1) + mplayer_put_key(MOUSE_BTN5); + else + mplayer_put_key(MOUSE_BTN6); + break; + } } return DefWindowProc(hWnd, message, wParam, lParam); |