Loading...
Searching...
No Matches
keys.h
Go to the documentation of this file.
/*
* This file is part of libbluray
* Copyright (C) 2010-2022 Petri Hintukainen <phintuka@users.sourceforge.net>
*
* 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_
typedef enum {
BD_VK_NONE = 0xffff,
/* numeric key events */
BD_VK_0 = 0,
BD_VK_1 = 1,
BD_VK_2 = 2,
BD_VK_3 = 3,
BD_VK_4 = 4,
BD_VK_5 = 5,
BD_VK_6 = 6,
BD_VK_7 = 7,
BD_VK_8 = 8,
BD_VK_9 = 9,
/* */
BD_VK_ROOT_MENU = 10,
BD_VK_POPUP = 11,
/* interactive key events */
BD_VK_UP = 12,
BD_VK_DOWN = 13,
BD_VK_LEFT = 14,
BD_VK_RIGHT = 15,
BD_VK_ENTER = 16,
BD_VK_MOUSE_ACTIVATE = 17,
BD_VK_RED = 403,
BD_VK_GREEN = 404,
BD_VL_YELLOW = 405,
BD_VK_BLUE = 406,
} bd_vk_key_e;
/*
* Application may optionally provide KEY_PRESSED, KEY_TYPED and KEY_RELEASED events.
* These masks are OR'd with the key code when calling bd_user_input().
*/
#define BD_VK_KEY_PRESSED 0x80000000
#define BD_VK_KEY_TYPED 0x40000000
#define BD_VK_KEY_RELEASED 0x20000000
#endif // _BD_KEYS_H_
bd_vk_key_e
bd_vk_key_e
Key codes.
Definition keys.h:31
BD_VK_1
@ BD_VK_1
"2"
Definition keys.h:36
BD_VK_6
@ BD_VK_6
"7"
Definition keys.h:41
BD_VK_ENTER
@ BD_VK_ENTER
Select.
Definition keys.h:55
BD_VK_8
@ BD_VK_8
"9"
Definition keys.h:43
BD_VK_NONE
@ BD_VK_NONE
no key pressed
Definition keys.h:32
BD_VK_5
@ BD_VK_5
"6"
Definition keys.h:40
BD_VK_2
@ BD_VK_2
"3"
Definition keys.h:37
BD_VK_7
@ BD_VK_7
"8"
Definition keys.h:42
BD_VK_GREEN
@ BD_VK_GREEN
Color key "Green".
Definition keys.h:61
BD_VK_UP
@ BD_VK_UP
Arrow up.
Definition keys.h:51
BD_VK_3
@ BD_VK_3
"4"
Definition keys.h:38
BD_VK_BLUE
@ BD_VK_BLUE
Color key "Blue".
Definition keys.h:63
BD_VK_DOWN
@ BD_VK_DOWN
Arrow down.
Definition keys.h:52
BD_VK_ROOT_MENU
@ BD_VK_ROOT_MENU
Open disc root menu.
Definition keys.h:47
BD_VL_YELLOW
@ BD_VL_YELLOW
Color key "Yellow".
Definition keys.h:62
BD_VK_9
@ BD_VK_9
"0"
Definition keys.h:44
BD_VK_0
@ BD_VK_0
"1"
Definition keys.h:35
BD_VK_LEFT
@ BD_VK_LEFT
Arrow left.
Definition keys.h:53
BD_VK_4
@ BD_VK_4
"5"
Definition keys.h:39
BD_VK_RIGHT
@ BD_VK_RIGHT
Arrow right.
Definition keys.h:54
BD_VK_RED
@ BD_VK_RED
Color key "Red".
Definition keys.h:60
BD_VK_POPUP
@ BD_VK_POPUP
Toggle popup menu.
Definition keys.h:48
BD_VK_MOUSE_ACTIVATE
@ BD_VK_MOUSE_ACTIVATE
Mouse click.
Definition keys.h:58