Page 1 of 1
[Ogre] How implement pan and pitch guesture on iOS
Posted: 27 Dec 2016, 10:55
by decai
Hi all,
We're using NoesisGUI with Ogre on iOS.
1. The IView has three function TouchDown,TouchMove and TouchDown, these function has 3 parameters, what's the mean of the third parameter `id` mean?
2. How to implement Pan and pitch gesture like native iOS UI, how to handle multiple touch event?
3. The words display in UI is not clear as native UI. We use iPad Pro for dev. Is there some thing that we didn't handled with content scale or Retina display?
Re: [Ogre] How implement pan and pitch guesture on iOS
Posted: 27 Dec 2016, 23:54
by jsantos
Hello!
1. The 'id' parameter uniquely identifies the touch. It only makes sense when using multiple touches simultaneously. So for example, if you have two fingers touching the screen you have to give a different ID for each one. That way we can track them correctly. How you assign those IDs is up to you, but you need to be consistent.
2. You need to use
manipulations. A manipulation is a high-level concept that provides you all the information to generate high-level events. Please, let me know if you need more information.
3. Are you correctly calculating width and height dimensions?
UIView* view = GetView();
const CGSize Size = view.bounds.size;
const CGFloat ContentScale = [UIScreen mainScreen].scale;
const CGFloat Width = Size.width * ContentScale;
const CGFloat Height = Size.height * ContentScale;
Make sure to use this Width and Height to initialize both the drawable size of the iOS layer and noesis IView. Is the integration sample included in the SDK working correctly?
Re: [Ogre] How implement pan and pitch guesture on iOS
Posted: 29 Dec 2016, 09:20
by decai
Make sure to use this Width and Height to initialize both the drawable size of the iOS layer and noesis IView. Is the integration sample included in the SDK working correctly?
Yes, we do not multi the scale as the integration sample. After set the right size, it's looks better. Thanks.
Re: [Ogre] How implement pan and pitch guesture on iOS
Posted: 29 Dec 2016, 16:27
by jsantos
Cool! Did you also solve the gestures issue?
Re: [Ogre] How implement pan and pitch guesture on iOS
Posted: 01 Jan 2017, 05:06
by decai
We just working on other things, we'll give feedback when we having progress on the gesture issue.
Thanks.
Re: [Ogre] How implement pan and pitch guesture on iOS
Posted: 03 Jan 2017, 02:14
by jsantos
Cool, thanks for the feedback!