Redirecting input to another view
Posted
by Jon
on Stack Overflow
See other posts from Stack Overflow
or by Jon
Published on 2010-06-18T13:49:56Z
Indexed on
2010/06/18
13:53 UTC
Read the original article
Hit count: 297
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
© Stack Overflow or respective owner