libbluray | branch: master | hpi1 <[email protected]> | Mon Dec 13 15:18:49 2010 +0200| [c32fe86e5f8004e01a7bd0119216ff87c58333a3] | committer: hpi1
Translate BD_VK_MOUSE_ACTIVATE to BD_VK_ENTER when mouse is over valid button > http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=c32fe86e5f8004e01a7bd0119216ff87c58333a3 --- src/libbluray/decoders/graphics_controller.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c index 9d41def..99acd89 100644 --- a/src/libbluray/decoders/graphics_controller.c +++ b/src/libbluray/decoders/graphics_controller.c @@ -50,6 +50,7 @@ struct graphics_controller_s { unsigned ig_drawn; unsigned pg_drawn; unsigned popup_visible; + unsigned valid_mouse_position; /* data */ PG_DISPLAY_SET *pgs; @@ -406,6 +407,14 @@ static void _user_input(GRAPHICS_CONTROLLER *gc, bd_vk_key_e key, GC_NAV_CMDS *c return; } + if (key == BD_VK_MOUSE_ACTIVATE) { + if (!gc->valid_mouse_position) { + TRACE("_user_input(): BD_VK_MOUSE_ACTIVATE outside of valid buttons\n"); + return; + } + key = BD_VK_ENTER; + } + for (ii = 0; ii < page->num_bogs; ii++) { BD_IG_BOG *bog = &page->bog[ii]; unsigned valid_id = gc->enabled_button[ii]; _______________________________________________ libbluray-devel mailing list [email protected] http://mailman.videolan.org/listinfo/libbluray-devel
