Code like
if(event is InputEventMouseButton):
checks for a once-only event upon pressed or released.
I want continuous polling of a mouse button so that as long as the button is being held down, I'm getting executing some code.
I can set a flag upon pressed, and unset it upon release but it seems to me like there should be a way to poll the buttons.