-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremote.lua
More file actions
46 lines (37 loc) · 872 Bytes
/
remote.lua
File metadata and controls
46 lines (37 loc) · 872 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
local keyboard = libs.keyboard;
--@help Launch Crunchroll
actions.launch = function()
os.open("http://www.crunchyroll.com");
end
--@help Lower volume
actions.volume_down = function()
keyboard.stroke("volumedown");
end
--@help Raise volume
actions.volume_up = function()
keyboard.stroke("volumeup");
end
--@help Mute volume
actions.volume_mute = function()
keyboard.stroke("M");
end
--@help Forward 10 seconds
actions.right = function()
keyboard.stroke("right");
end
--@help Toggle play pause state
actions.play_pause = function()
keyboard.stroke("space");
end
--@help Rewind 10 seconds
actions.left = function()
keyboard.stroke("left");
end
--@help Toggle fullscreen
actions.fullscreen = function()
keyboard.stroke("F");
end
--@help Next Episode
actions.next = function()
keyboard.stroke("Lshift", "n");
end