-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkeydefine.py
More file actions
58 lines (54 loc) · 855 Bytes
/
keydefine.py
File metadata and controls
58 lines (54 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FIRESTICK_IP = None
ROKU_IP = None
FIRE_KEYS = {
"up": 19,
"down": 20,
"left": 21,
"right": 22,
"select": 23,
"back": 4,
"home": 3,
"menu": 82,
"play": 85,
"volup": 24,
"voldown": 25,
"mute": 164,
"power": 26,
"search": 84
}
FIRETV_MAPPING = {
'ArrowUp':"up",
'ArrowDown':'down',
'ArrowLeft':'left',
'ArrowRight':'right',
'Enter':'play'
}
ROKU_MAPPING = {
'ArrowUp':'Up',
'ArrowDown':'Down',
'ArrowLeft':'Left',
'ArrowRight':'Right',
<<<<<<< HEAD
'Enter':'Play',
' ':'Select'
=======
'Enter':'Select',
' ':'Play'
>>>>>>> 37f3ff87e25902bec7afd6b1b82ab79a48c26743
}
ROKU_KEYS = {'Home' ,
'Rev',
'Fwd',
'Play',
'Select',
'Left',
'Right',
'Down',
'Up',
'Back',
'InstantReplay',
'Info',
'Backspace',
'Search',
'Enter'
}