I have developed a
patch for the iPhone
MobileTerminal that enables the beginning of proper event processing.
Part of the problem was a lot of trial and error, involving two major realizations:
1) iPhone apps don't get orientation-changed events unless they're launched from the GUI
2) Figuring out where in the __GSEvent structure the eventType parameter is.
This patch introduces a number of problems into MobileTerminal, namely causing it to not exit properly, causing it to exit on iPhone sleep, and causes it to (intentionally, because it's only temporary debug code) leak memory when printing event alerts.