default button delay in macro, tmacto to test buttons

This commit is contained in:
2025-06-26 20:37:33 +02:00
parent 138d742342
commit f97156f503
2 changed files with 61 additions and 0 deletions
+6
View File
@@ -21,9 +21,15 @@ jcrestart() {
} }
jcmacro() { jcmacro() {
buttonDelay='0.01'
if [[ ! -z $2 ]]; then
buttonDelay=$2
fi
while read -r line; do while read -r line; do
if [[ ${line:0:1} != "#" ]]; then if [[ ${line:0:1} != "#" ]]; then
jc "$line" jc "$line"
jc "sleep $buttonDelay"
fi fi
done < "$1" done < "$1"
} }
+55
View File
@@ -0,0 +1,55 @@
# go to settings
hold down
sleep 1
release down
hold right
sleep 1.5
release right
left
a
sleep 1.2
#go to controller settings
down
down
down
down
down
down
down
down
a
sleep 1.2
# go to test inputs
down
down
down
down
down
down
down
down
down
down
down
down
a
sleep 1.2
a
sleep 1
# test buttons
up
right
down
left
a
b
x
y
plus
minus
l
r
zl
zr
l_stick
r_stick