Let me see if I can explain this briefly…
From experiementing I have discovered that the command function in DirectButton is executed FOLLOWING release of the mouse button. Makes sense (click!)… but …
I would like to use DirectButton to execute a function WHILE the button is held down.
mybutton=DirectButton(stuff… command=myfunction … stuff)
you click on mybutton and hold the button down and myfunction is called AFTER releasing the mousebutton.
Is there a way to execute myfunction while the button is held down?
Possibly related question: syntax for using getButtonState(index). The API manual says the index is the index of the button. How do you know the index of a particular button? Any syntax examples would be very very appreciated!!!