I may be reading this wrong but if you want
and to keep going I think you need an additional inner loopI want the Python script to wait for either one of them being pressed.
Code:
while True: button_1_selected = False button_5_selected = False while not(button_1_selected) and not(button_5_selected) if button1.is_pressed == True: button1.wait_for_release() button_1_selected = True if button5.is_pressed == True: button5.wait_for_release() button_5_selected = True # End of While no button selected # Code to execute for button pressed # End of while True Loop
Statistics: Posted by DS256 — Mon Mar 24, 2025 5:08 pm