From 7058cf2817f8bfa5b42b3f016457fb32948acf05 Mon Sep 17 00:00:00 2001 From: Psycoguana <21992381+Psycoguana@users.noreply.github.com> Date: Sat, 23 Nov 2019 20:42:08 -0300 Subject: [PATCH] Adjust volume from phone physical buttons for Plex Keyboard Remote --- Main/Plex Keyboard/layout.xml | 4 ++-- Main/Plex Keyboard/remote.lua | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Main/Plex Keyboard/layout.xml b/Main/Plex Keyboard/layout.xml index 14679944..ba95eedd 100644 --- a/Main/Plex Keyboard/layout.xml +++ b/Main/Plex Keyboard/layout.xml @@ -1,5 +1,5 @@ - + @@ -39,4 +39,4 @@ - \ No newline at end of file + diff --git a/Main/Plex Keyboard/remote.lua b/Main/Plex Keyboard/remote.lua index a4e071b4..0183eb45 100644 --- a/Main/Plex Keyboard/remote.lua +++ b/Main/Plex Keyboard/remote.lua @@ -134,3 +134,15 @@ actions.info = function () actions.switch(); kb.press("i"); end + +--@help Volume Down +actions.volume_down = function () + actions.switch(); + kb.press("volumedown") +end + +--@help Volume Up +actions.volume_up = function () + actions.switch(); + kb.press("volumeup") +end