Merge pull request #2260 from anthonycaccese/dev
MPV Controls Update (aarch64)
This commit is contained in:
commit
208dd689cb
4 changed files with 46 additions and 22 deletions
|
@ -10,20 +10,29 @@ case "$1" in
|
|||
"pause")
|
||||
sendkey "p"
|
||||
;;
|
||||
"skip5s")
|
||||
sendkey "RIGHT"
|
||||
"changeaudio")
|
||||
sendkey "#"
|
||||
;;
|
||||
"changesub")
|
||||
sendkey "j"
|
||||
;;
|
||||
"showosd")
|
||||
sendkey "O"
|
||||
;;
|
||||
"back5s")
|
||||
sendkey "LEFT"
|
||||
;;
|
||||
"skip60s")
|
||||
sendkey "UP"
|
||||
"skip5s")
|
||||
sendkey "RIGHT"
|
||||
;;
|
||||
"back60s")
|
||||
sendkey "DOWN"
|
||||
;;
|
||||
"skip60s")
|
||||
sendkey "UP"
|
||||
;;
|
||||
"quit")
|
||||
sendkey "q"
|
||||
sendkey "Q"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -20,5 +20,5 @@ case ${ASPECT} in
|
|||
;;
|
||||
esac
|
||||
|
||||
/usr/bin/mpv --fullscreen --geometry=${RES} --hwdec=auto --input-ipc-server=/tmp/mpvsocket "${1}"
|
||||
/usr/bin/mpv --fullscreen --geometry=${RES} --hwdec=auto-safe --input-ipc-server=/tmp/mpvsocket "${1}"
|
||||
exit 0
|
||||
|
|
|
@ -9,13 +9,16 @@
|
|||
### For a list of available buttons, cat /etc/profile.d/01-deviceconfig
|
||||
###
|
||||
|
||||
BTN_PAUSE=${DEVICE_BTN_START}
|
||||
BTN_PAUSE=${DEVICE_BTN_SOUTH}
|
||||
BTN_CHANGEAUDIO=${DEVICE_BTN_EAST}
|
||||
BTN_CHANGESUB=${DEVICE_BTN_WEST}
|
||||
BTN_SHOWOSD=${DEVICE_BTN_NORTH}
|
||||
BTN_BACK5S=${DEVICE_BTN_DPAD_LEFT}
|
||||
BTN_SKIP5S=${DEVICE_BTN_DPAD_RIGHT}
|
||||
BTN_BACK60S=${DEVICE_BTN_DPAD_DOWN}
|
||||
BTN_SKIP60S=${DEVICE_BTN_DPAD_UP}
|
||||
BTN_QUIT_HOTKEY=${DEVICE_BTN_SELECT}
|
||||
BTN_QUIT_SELECT=${DEVICE_BTN_START}
|
||||
BTN_SKIP5S=${DEVICE_BTN_TR}
|
||||
BTN_BACK5S=${DEVICE_BTN_TL}
|
||||
BTN_SKIP60S=${DEVICE_BTN_TR2}
|
||||
BTN_BACK60S=${DEVICE_BTN_TL2}
|
||||
BTN_KILL_HOTKEY=${DEVICE_BTN_TL}
|
||||
BTN_KILL_SELECTA=${DEVICE_BTN_SELECT}
|
||||
BTN_KILL_SELECTB=${DEVICE_BTN_START}
|
||||
BTN_KILL_SELECTB=${DEVICE_BTN_START}
|
|
@ -28,27 +28,39 @@ jslisten() {
|
|||
program="/usr/bin/manage_mpv.sh pause"
|
||||
button1=${BTN_PAUSE}
|
||||
|
||||
[Exit]
|
||||
program="/usr/bin/manage_mpv.sh quit"
|
||||
button1=${BTN_QUIT_HOTKEY}
|
||||
button2=${BTN_QUIT_SELECT}
|
||||
[ChangeAudio]
|
||||
program="/usr/bin/manage_mpv.sh changeaudio"
|
||||
button1=${BTN_CHANGEAUDIO}
|
||||
|
||||
[Skip5s]
|
||||
program="/usr/bin/manage_mpv.sh skip5s"
|
||||
button1=${BTN_SKIP5S}
|
||||
[ChangeSub]
|
||||
program="/usr/bin/manage_mpv.sh changesub"
|
||||
button1=${BTN_CHANGESUB}
|
||||
|
||||
[ShowOSD]
|
||||
program="/usr/bin/manage_mpv.sh showosd"
|
||||
button1=${BTN_SHOWOSD}
|
||||
|
||||
[Back5s]
|
||||
program="/usr/bin/manage_mpv.sh back5s"
|
||||
button1=${BTN_BACK5S}
|
||||
|
||||
[Skip60s]
|
||||
program="/usr/bin/manage_mpv.sh skip60s"
|
||||
button1=${BTN_SKIP60S}
|
||||
[Skip5s]
|
||||
program="/usr/bin/manage_mpv.sh skip5s"
|
||||
button1=${BTN_SKIP5S}
|
||||
|
||||
[Back60s]
|
||||
program="/usr/bin/manage_mpv.sh back60s"
|
||||
button1=${BTN_BACK60S}
|
||||
|
||||
[Skip60s]
|
||||
program="/usr/bin/manage_mpv.sh skip60s"
|
||||
button1=${BTN_SKIP60S}
|
||||
|
||||
[Exit]
|
||||
program="/usr/bin/manage_mpv.sh quit"
|
||||
button1=${BTN_QUIT_HOTKEY}
|
||||
button2=${BTN_QUIT_SELECT}
|
||||
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue