简体   繁体   English

使用iPhone模拟器在openGL ES上测试手势

[英]Testing gestures on openGL ES using the iPhone simulator

I have an openGL ES app i'm working on, and i added some gestures: 我有一个正在使用的openGL ES应用程序,并且添加了一些手势:

Pan - 1 & 2 fingers, for moving the object 平移-1和2个手指,用于移动对象

Pinch - Zoom in and out on the object 捏-放大和缩小对象

Rotation - Just to rotate the object 旋转-仅旋转对象

I can't test these gestures on an iPhone since mine is currently out of use, and i wanted to know is there any way to test these gestures using Xcode's iPhone simulator and the Mac's touch pad? 由于我的iPhone目前已停用,因此我无法在iPhone上测试这些手势,我想知道是否可以使用Xcode's iPhone模拟器和Mac's触摸板来测试这些手势?

Currently i could only test the pan gesture since i can click on the Mac touch pad and drag my finger around, so pan does work, but only for 1 finger. 目前,我只能测试平移手势,因为我可以单击Mac触摸板并四处拖动手指,因此平移确实有效,但仅适用于一根手指。

How can i test all the other gestures? 我如何测试所有其他手势? is there a way to define that on the iPhone simulator? 有没有办法在iPhone模拟器上定义它?

在此处输入图片说明

Hold down the Option key. 按住Option键。

Developer Doc 开发人员文档

As Peter says, hold down the option key (alt key on a Windows keyboard) while hovering the mouse over the simulator's screen. 如Peter所说,在将鼠标悬停在模拟器屏幕上的同时,按住Option键(Windows键盘上的Alt键)。 That causes 2 points to show on the screen. 这将导致2点显示在屏幕上。 It's not perfect, but it's better than nothing. 它并不完美,但总比没有好。

Apple has had multi-touch trackpads and mice for Mac for what, 3 years now, but they still have not added multi-touch support to the simulator. 苹果已经有3年的Mac版多点触控触控板和鼠标了,但是他们仍然没有为模拟器添加多点触控支持。 If this was an end-user feature it would have been added years ago. 如果这是最终用户功能,那么它会在几年前添加。 Us developers are not a priority for Apple it seems. 美国开发人员似乎并不是苹果的优先事项。 :( :(

您可以在按住Alt键的同时按下鼠标左键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM