comparison stream/stream_dvdnav.c @ 19851:adfd08588514

report mouse coordinates after movement to dvdnav; this permits to enable button selection using the mouse; patch by Jonas Jermann and me
author nicodvb
date Sat, 16 Sep 2006 15:25:31 +0000
parents a43fa4ad378e
children 2c361743ce69
comparison
equal deleted inserted replaced
19850:4919b3ce8d5e 19851:adfd08588514
479 dvdnav_get_current_highlight(nav, button); 479 dvdnav_get_current_highlight(nav, button);
480 480
481 return reset; 481 return reset;
482 } 482 }
483 483
484 void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* button) {
485 dvdnav_priv_t * dvdnav_priv=(dvdnav_priv_t*)stream->priv;
486 dvdnav_t *nav = dvdnav_priv->dvdnav;
487 dvdnav_status_t status;
488 pci_t *pci = dvdnav_get_current_nav_pci(nav);
489
490 if(!pci) return;
491
492 status = dvdnav_mouse_select(nav, pci, x, y);
493 if(status == DVDNAV_STATUS_OK) dvdnav_get_current_highlight(nav, button);
494 else *button = -1;
495 }
496
497
484 stream_info_t stream_info_dvdnav = { 498 stream_info_t stream_info_dvdnav = {
485 "DVDNAV stream", 499 "DVDNAV stream",
486 "null", 500 "null",
487 "", 501 "",
488 "", 502 "",