I think this may be impossible, but I'd like to rotate the display by 180 degrees on the fly, triggered by a button connected to the input pins.
I built a cocktail-style MAME cabinet (RetroPie) but not all games have native support for cocktail mode. I'd like to mount a physical button on the tabletop that will immediately flip the screen when you press it.
I imagine writing a little script that will load at system boot which will listen for the button press from one of the input pins, and then flip the screen immediately whenever it gets pressed.
Is that possible?