You could do: input & (timer(x) > y)
Input is your input you want to use, x is the inverse of the frequency so x = 0.5 gives a frequency of 2. Y is the percentage of time the signal is zero, so for y = 0.5, you have signal which is 50% of the time 0 and 50% of the time 1.
(03-12-2020, 02:27 AM)Miksel12 Wrote: [ -> ]You could do: input & (timer(x) > y)
Input is your input you want to use, x is the inverse of the frequency so x = 0.5 gives a frequency of 2. Y is the percentage of time the signal is zero, so for y = 0.5, you have signal which is 50% of the time 0 and 50% of the time 1.
This actually worked! Most of the times at least, this way you have to spam exactly 4 presses per second (which is pretty natural), but if you go too quickly or slowly it's going to have the same problem as before.
Thank you for explaining how it works! I would have never guessed by myself (update the wiki pleeease

)
Yeah, the input syntax page should probably be updated.
(03-08-2020, 12:54 AM)EddyHg80 Wrote: [ -> ]Hi guys, this is maybe a strange question, but I was wondering if there's a way to achieve this result: for example by spamming the A button on a controller Dolphin would register A then B then A again and so forth.
Of course without external programs, maybe using some input functions.
Here's how I'd probably do it.
Each successive press of `Button A` will activate A then B and so on.
Mapping for "A":
Code:
$a=toggle(`Button A`) & `Button A`
Mapping for "B":
(03-12-2020, 06:28 AM)Billiard26 Wrote: [ -> ]Here's how I'd probably do it.
Each successive press of `Button A` will activate A then B and so on.
Mapping for "A":
Code:
$a=toggle(`Button A`) & `Button A`
Mapping for "B":
This is it!
Thank you very much for taking your time to answer!
At this point you can close this thread if you want.