changeset 19910:8e3785c20752

show in the osd the number of the button selected by the mouse
author nicodvb
date Tue, 19 Sep 2006 22:44:19 +0000
parents 282e93cf7617
children 2ca75d2fbcc6
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Tue Sep 19 22:01:27 2006 +0000
+++ b/mplayer.c	Tue Sep 19 22:44:19 2006 +0000
@@ -5162,6 +5162,7 @@
             pointer_x = (int) (dx * (double) sh_video->disp_w);
             pointer_y = (int) (dy * (double) sh_video->disp_h);
             mp_dvdnav_update_mouse_pos(stream, pointer_x, pointer_y, &button);
+            if(button>0) set_osd_msg(OSD_MSG_TEXT, 1, osd_duration, "Selected button number %d", button);
         }
 #endif
         break;