I have a project where I'm building a motion-sensing controller. It has around a dozen buttons plus the motion sensors. I'm having it wireless transmit the status of the buttons and sensors to the base station.
I know interrupts are better than polling, but most people seem to recommend polling inside an interrupt to handle updating all buttons. My only issue with that idea is it seems inefficient since those button presses will generate interrupts of their own that become redundant when you've already polled the button.
I was wondering if anyone knows a way to get all the interrupts currently waiting - for example if 2 buttons are pressed at the same time - and process them all at once, then set them all to handled and move on.
And just so no one asks, I don't have any code written. I'm looking for a method, not debugging help.