From f97156f503931e5618df26ffc2b3427e619de2d8 Mon Sep 17 00:00:00 2001 From: Zjamnik Date: Thu, 26 Jun 2025 20:37:33 +0200 Subject: [PATCH] default button delay in macro, tmacto to test buttons --- .bash_aliases | 6 +++++ macro/testButtons.txt | 55 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 macro/testButtons.txt diff --git a/.bash_aliases b/.bash_aliases index e96f5b3..2850acd 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -21,9 +21,15 @@ jcrestart() { } jcmacro() { + buttonDelay='0.01' + if [[ ! -z $2 ]]; then + buttonDelay=$2 + fi + while read -r line; do if [[ ${line:0:1} != "#" ]]; then jc "$line" + jc "sleep $buttonDelay" fi done < "$1" } diff --git a/macro/testButtons.txt b/macro/testButtons.txt new file mode 100644 index 0000000..0084318 --- /dev/null +++ b/macro/testButtons.txt @@ -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