libbluray | branch: master | hpi1 <h...@anonymous.org> | Sun Sep 5 15:50:32 2010 +0300| [80374938ea57c6159724a8b1cfd48a71c1d1e411] | committer: hpi1
Added user input keys > http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=80374938ea57c6159724a8b1cfd48a71c1d1e411 --- src/Makefile.am | 3 +- src/libbluray/keys.h | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index d281f97..cdb5531 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -34,6 +34,7 @@ libbluray_la_SOURCES=libbluray/bluray.h \ libbluray/bluray.c \ libbluray/register.h \ libbluray/register.c \ + libbluray/keys.h \ libbluray/bdnav \ libbluray/bdnav/bdparse.h \ libbluray/bdnav/uo_mask_table.h \ @@ -82,7 +83,7 @@ libbluray_la_SOURCES=libbluray/bluray.h \ util/log_control.h \ util/bits.h \ util/logging.h -libbluray_la_HEADERS= libbluray/bluray.h file/filesystem.h util/log_control.h +libbluray_la_HEADERS= libbluray/bluray.h file/filesystem.h util/log_control.h libbluray/keys.h libbluray_la_LDFLAGS= -version-info $(LIB_VERSION_INFO) $(DLOPEN_LDFLAGS) if USING_BDJAVA diff --git a/src/libbluray/keys.h b/src/libbluray/keys.h new file mode 100644 index 0000000..94ff753 --- /dev/null +++ b/src/libbluray/keys.h @@ -0,0 +1,53 @@ +/* + * This file is part of libbluray + * Copyright (C) 2010 hpi1 + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * <http://www.gnu.org/licenses/>. + */ + +#if !defined(_BD_KEYS_H_) +#define _BD_KEYS_H_ + +/* + * User input + */ + +#define BD_VK_NONE 0xffff + +/* numeric key events */ +#define BD_VK_0 0 +#define BD_VK_1 1 +#define BD_VK_2 2 +#define BD_VK_3 3 +#define BD_VK_4 4 +#define BD_VK_5 5 +#define BD_VK_6 6 +#define BD_VK_7 7 +#define BD_VK_8 8 +#define BD_VK_9 9 + +/* */ +#define BD_VK_ROOT_MENU 10 /* open root menu */ +#define BD_VK_POPUP 11 /* toggle popup menu */ + +/* interactive key events */ +#define BD_VK_UP 12 +#define BD_VK_DOWN 13 +#define BD_VK_LEFT 14 +#define BD_VK_RIGHT 15 +#define BD_VK_ENTER 16 + + +#endif // _BD_KEYS_H_ _______________________________________________ libbluray-devel mailing list libbluray-devel@videolan.org http://mailman.videolan.org/listinfo/libbluray-devel