Optimal OnTheFly Feedback Control of Event Sensors