changeset 20164:b064d49b08f9

Use MOUSE_BTN0 instead of MOUSE_BASE for consistency with other vo drivers. patch by Laurent Wozniak, laurent.wozniak laposte net
author diego
date Thu, 12 Oct 2006 00:39:47 +0000
parents 9f6255b3187e
children 5789c723d8df
files libvo/vo_sdl.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Wed Oct 11 23:18:34 2006 +0000
+++ b/libvo/vo_sdl.c	Thu Oct 12 00:39:47 2006 +0000
@@ -1190,15 +1190,15 @@
 				if(vo_nomouse_input)
 				    break;
 				if(event.button.button == 4 || event.button.button == 5)
-					mplayer_put_key(MOUSE_BASE+event.button.button-1);
+					mplayer_put_key(MOUSE_BTN0+event.button.button-1);
 				else
-					mplayer_put_key((MOUSE_BASE+event.button.button-1) | MP_KEY_DOWN);
+					mplayer_put_key((MOUSE_BTN0+event.button.button-1) | MP_KEY_DOWN);
 				break;			    
 		
 			case SDL_MOUSEBUTTONUP:
 				if(vo_nomouse_input)
 				    break;
-				mplayer_put_key(MOUSE_BASE+event.button.button-1);
+				mplayer_put_key(MOUSE_BTN0+event.button.button-1);
 				break;
 	
 			/* graphics mode selection shortcuts */