Redirecting input to another view
- by Jon
My application is working fine on the normal iPad display, but I also need to output to VGA out. When I do this, I need to add the view to the external screen's window which seems to mean that I can't use it to accept input from the iPad screen.
I want to redirect input from the iPad's window to the window displaying on the external screen. As far as I can tell there's no standard method of doing this.
I've tried overriding hitTest on the iPad's window view to send it to the window on the external display, but the coordinates seem to get messed up in the process which makes it nigh unusable.
I've also tried subclassing the iPad's UIWindow and catching events in sendEvent, then trying to send them to the external window, but this doesn't seem to work at all.
Any help would be appreciated, I'm happy to post any code you would like to see.
Thanks,
Jon