Questions tagged [touch-location]

The TouchLocation structure contains information, such as screen location, current state, and amount of pressure for a registered touch location item.

The TouchLocation structure contains information, such as screen location, current state, and amount of pressure for a registered touch location item. A collection of current touch locations is stored in the TouchCollection object of the touch screen device.

Link: http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.touch.touchlocation.aspx

4 questions
2
votes
1 answer

How to get exact touch location of object to add new child object at the same place

I have a base plane and when I click on the plane I need to add some other object at the exact location the user is touched. the newly added object is not a child of base plane it will be a child of another object which will present the same base…
2
votes
0 answers

How to detect a long touch (over 2 seconds) on Android

I have a custom view and I want to detect when a user has been pressing/touching the same spot for over 2 seconds. I have been using an onTouch event to detect when the user first touches the screen and then see if he is still touching the same spot…
skbrhmn
  • 1,124
  • 1
  • 14
  • 36
2
votes
0 answers

Detect touch point whether belongs to clipped area of Layer cocos2d-x

I need to add a translucent guide layer above my UI, details are as follows: there is one (or more) area (which I suggest the user to click) of the layer, and it's totally transparent and transmit touches to the UI below. At the same time, the rest…
weiwen
  • 446
  • 6
  • 16
0
votes
0 answers

What's the equivalent of convertToNodeSpace in Sprite Kit

Let me first introduce you to the node hierarchy: SKView->SKScene->SKNode I've added a UIPinchGestureRecognizer to the view so that I can zoom in and out my content. Here's the code in SKScene…
Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206