libbluray
Toggle main menu visibility
Loading...
Searching...
No Matches
libbluray
keys.h
Go to the documentation of this file.
1
/*
2
* This file is part of libbluray
3
* Copyright (C) 2010-2022 Petri Hintukainen <phintuka@users.sourceforge.net>
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library. If not, see
17
* <http://www.gnu.org/licenses/>.
18
*/
19
24
25
#if !defined(_BD_KEYS_H_)
26
#define _BD_KEYS_H_
27
31
typedef
enum
{
32
BD_VK_NONE
= 0xffff,
33
34
/* numeric key events */
35
BD_VK_0
= 0,
36
BD_VK_1
= 1,
37
BD_VK_2
= 2,
38
BD_VK_3
= 3,
39
BD_VK_4
= 4,
40
BD_VK_5
= 5,
41
BD_VK_6
= 6,
42
BD_VK_7
= 7,
43
BD_VK_8
= 8,
44
BD_VK_9
= 9,
45
46
/* */
47
BD_VK_ROOT_MENU
= 10,
48
BD_VK_POPUP
= 11,
49
50
/* interactive key events */
51
BD_VK_UP
= 12,
52
BD_VK_DOWN
= 13,
53
BD_VK_LEFT
= 14,
54
BD_VK_RIGHT
= 15,
55
BD_VK_ENTER
= 16,
56
58
BD_VK_MOUSE_ACTIVATE
= 17,
59
60
BD_VK_RED
= 403,
61
BD_VK_GREEN
= 404,
62
BD_VL_YELLOW
= 405,
63
BD_VK_BLUE
= 406,
64
65
}
bd_vk_key_e
;
66
67
/*
68
* Application may optionally provide KEY_PRESSED, KEY_TYPED and KEY_RELEASED events.
69
* These masks are OR'd with the key code when calling bd_user_input().
70
*/
71
72
#define BD_VK_KEY_PRESSED 0x80000000
73
#define BD_VK_KEY_TYPED 0x40000000
74
#define BD_VK_KEY_RELEASED 0x20000000
75
76
#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