Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Continues repeated action while button pressed #50

Open
pwn-d opened this issue Feb 15, 2022 · 0 comments
Open

[Question] Continues repeated action while button pressed #50

pwn-d opened this issue Feb 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pwn-d
Copy link

pwn-d commented Feb 15, 2022

Hi there,
is there an option to configure a button to trigger every x timeunits while holding it down or even encapsulate a certain action while holding down?
My target is to use an flasher on my racing wheel, that flashes as long as I hold the button.
In pseudo code
either

while (button_is_pressed){
    //start ingame flasher animation
    press(button_flasher)
    // wait x.y seconds to press again
}

or

while (button_is_pressed){
    // light on
    press(button_light) 
    // wait x.y seconds

    // light off
    press(button_light) 
    // wait a.b seconds
}

Hopefully I didn't miss anything to obvious.

Cheers,

P.S. I love your project and thanks a lot

@vostrenkov vostrenkov added the enhancement New feature or request label Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants