Capturing iOS touch through UIView
-
motif
- Kobold
- Posts: 32
- Joined: Sun Mar 06, 2005 5:16 pm
Capturing iOS touch through UIView
Hi, from what I've read so far, in order to capture multi-touch events in iOS device, creating a UIView is the recommended way. Which means I should totally remove the use of OIS on iOS?
-
masterfalcon
- OGRE Retired Team Member

- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: Capturing iOS touch through UIView
This is a good place to start. Basically, create a transparent UIView over the top of your Ogre view whose only purpose is to be a touch delegate.
http://www.ogre3d.org/forums/viewtopic.php?f=1&t=59240
http://www.ogre3d.org/forums/viewtopic.php?f=1&t=59240
-
motif
- Kobold
- Posts: 32
- Joined: Sun Mar 06, 2005 5:16 pm
Re: Capturing iOS touch through UIView
Ok, thanks. I followed the example to create a UIView subclass and added it to the root window. However I found that if I didn't remove the OIS dependency, my UIView subclass wouldn't detect the touch events. I suspect the OIS iPhone input manager has set a flag to exclusively receive the multi-touch events. I've to remove the OIS dependency for my UIView subclass to detect the touches.