# HG changeset patch # User jcdutton # Date 1019607552 0 # Node ID c3c8b98d7e95a9b8d176489e006efb0221b6a150 # Parent da60d6379f9541be0c16c2c8a7bb576ac223eec2 Enable auto action buttons. diff -r da60d6379f95 -r c3c8b98d7e95 highlight.c --- a/highlight.c Tue Apr 23 13:26:08 2002 +0000 +++ b/highlight.c Wed Apr 24 00:19:12 2002 +0000 @@ -72,6 +72,22 @@ return &(this->pci.hli.btnit[button-1]); } +dvdnav_status_t dvdnav_button_auto_action(dvdnav_t *this) { + btni_t *button_ptr; + + if(!this) + return S_ERR; + + if((button_ptr = __get_current_button(this)) == NULL) { + return S_ERR; + } + if (button_ptr->auto_action_mode == 1) { + return S_OK; + } + return S_ERR; +} + + dvdnav_status_t dvdnav_upper_button_select(dvdnav_t *this) { btni_t *button_ptr; @@ -83,7 +99,10 @@ } dvdnav_button_select(this, button_ptr->up); - + if (dvdnav_button_auto_action(this) ) { + dvdnav_button_activate(this); + } + return S_OK; } @@ -98,6 +117,9 @@ } dvdnav_button_select(this, button_ptr->down); + if (dvdnav_button_auto_action(this) ) { + dvdnav_button_activate(this); + } return S_OK; } @@ -114,6 +136,9 @@ } dvdnav_button_select(this, button_ptr->right); + if (dvdnav_button_auto_action(this) ) { + dvdnav_button_activate(this); + } return S_OK; } @@ -129,6 +154,9 @@ } dvdnav_button_select(this, button_ptr->left); + if (dvdnav_button_auto_action(this) ) { + dvdnav_button_activate(this); + } return S_OK; }