Commit 9349c1a9 authored by hpi1's avatar hpi1

Added events for menus

parent 059fbe53
......@@ -61,6 +61,19 @@ static void _print_event(BD_EVENT *ev)
printf("EVENT_SELECTED_BUTTON_ID:\t%d\n", ev->param);
break;
case BD_EVENT_STILL:
printf("EVENT_STILL:\t%d\n", ev->param);
break;
case BD_EVENT_ENABLE_BUTTON:
printf("EVENT_ENABLE_BUTTON:\t%d\n", ev->param);
break;
case BD_EVENT_DISABLE_BUTTON:
printf("EVENT_DISABLE_BUTTON:\t%d\n", ev->param);
break;
case BD_EVENT_POPUP_OFF:
printf("EVENT_POPUP_OFF:\t%d\n", ev->param);
break;
/* stream selection */
case BD_EVENT_AUDIO_STREAM:
......
......@@ -1307,6 +1307,21 @@ static void _process_hdmv_vm_event(BLURAY *bd, HDMV_EVENT *hev)
bd->hdmv_suspended = 0;
break;
case HDMV_EVENT_STILL:
_queue_event(bd, (BD_EVENT){BD_EVENT_STILL, hev->param});
break;
case HDMV_EVENT_ENABLE_BUTTON:
_queue_event(bd, (BD_EVENT){BD_EVENT_ENABLE_BUTTON, hev->param});
break;
case HDMV_EVENT_DISABLE_BUTTON:
_queue_event(bd, (BD_EVENT){BD_EVENT_DISABLE_BUTTON, hev->param});
break;
case HDMV_EVENT_POPUP_OFF:
_queue_event(bd, (BD_EVENT){BD_EVENT_POPUP_OFF, 0});
break;
case HDMV_EVENT_END:
case HDMV_EVENT_NONE:
default:
......
......@@ -346,6 +346,12 @@ typedef enum {
/* Interactive Graphics */
BD_EVENT_MENU_PAGE_ID, /* 0..0xfe */
BD_EVENT_SELECTED_BUTTON_ID, /* 0..0x1fdf, 0xffff = invalid */
BD_EVENT_POPUP_OFF,
BD_EVENT_ENABLE_BUTTON, /* param: button id */
BD_EVENT_DISABLE_BUTTON, /* param: button id */
/* still */
BD_EVENT_STILL, /* 0 - off, 1 - on */
} bd_event_e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment