Add touchscreen keyboard toggle

This commit is contained in:
rocknix
2025-09-03 21:51:16 +00:00
parent f812412d1b
commit 91da1335a2
2 changed files with 22 additions and 6 deletions

View File

@@ -4,9 +4,25 @@
. /etc/profile
PID="$(pidof wvkbd-mobintl)"
if [ "$PID" != "" ]; then
killall wvkbd-mobintl
else
/usr/bin/wvkbd-mobintl -L 350 -fg 6b6b75 -fg-sp 6b6b75 -bg 1d1d1d --text ffffff --text-sp ffffff -fn 50 -l simple --hidden
TSKEY=$(get_setting "rocknix.touchscreen-keyboard.enabled")
if [ ! -n "${TSKEY}" ]; then
if [ "$DEVICE_HAS_TOUCHSCREEN" == "true" ]; then
set_setting "rocknix.touchscreen-keyboard.enabled" "1"
else
set_setting "rocknix.touchscreen-keyboard.enabled" "0"
fi
fi
while true; do
TSKEY=$(get_setting "rocknix.touchscreen-keyboard.enabled")
if [[ "${DEVICE_HAS_TOUCHSCREEN}" == "true" ]] && [[ "${TSKEY}" == "1" ]]; then
PID="$(pidof wvkbd-mobintl)"
if [ "$PID" != "" ]; then
killall wvkbd-mobintl
else
/usr/bin/wvkbd-mobintl -L 350 -fg 6b6b75 -fg-sp 6b6b75 -bg 1d1d1d --text ffffff --text-sp ffffff -fn 50 -l simple --hidden
fi
fi
sleep 5
done

View File

@@ -2,7 +2,7 @@
# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX)
PKG_NAME="emulationstation"
PKG_VERSION="dcc9960e7e7637605149f8c71281cc975b4092bf"
PKG_VERSION="86f9d35c11ab2efe2beb66eb2938bec88d79cf0e"
PKG_GIT_CLONE_BRANCH="master"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/ROCKNIX/emulationstation-next"