Touch location Siri Remote tvOS Swift - swift

Is it possible to detect the coordinates of the tap on the surface of the Siri Remote? I would wish to recognized the left half and right half and assign a function to it when the user is doing a double tap on it.
Thanks!

There is no way to get location of the tap. The coordinates of any gesture in Siri Remote always start from the center of the touchpad.

Related

How to enable multi touch on click buttons?

I couldn't find an answer online. When I hold my phone with my hand, the palm of my hand touches the screen's bottom corner and it prevents/blocks any future clicks on buttons with my fingers on the screen. I need to enable multi-touch for buttons but not sure how to do it. I use buttons and (onClick component) but they don't work when I hold my phone with my palm. I need to tell the app- ignore previous clicks and count only the latest click
It's possible only via IPointerClick and other IPointer...Handler.
Please refer to UnityEngine.EventSystems namespace.

zoom out in MKMapView

When you double tap on MKMapView : zoom in.
But how to zoom out??
There's always using two fingers to zoom in and out. On the emulator you need to hold down an option key to get 'two fingers' appear on the emulated screen (I think it's the Alt key but I use a PC keyboard on my mac so may differ on a real mac keyboard)
As for doing it procedurally you need to set the region on the mapkit.
via the setRegion method of your MKMapKit object.
Make sure you're within bounds though as it will cause a crash if not. (i.e. long -180

How to pin mouse in center of screen with GLUT?

I want to pin my mouse in middle of screen I mean when user move mouse the only thing that he see is rotation in environment also mouse cursor never reach window border ...
I want to handle my camera with mouse but when mouse reach window border or in full screen mode screen border the mouse position doesn't change but camera should still rotate slow or speedy depend on speed of mouse movement...
How should I solve this problem?
SDL_warpmouse can accomplish this. If you are looking for an OS-specific way to accomplish this, consider viewing SDL's source code.

how can i animate image that moves up automatically

hi i am new to iphone. what i need is i want to display an image for example balloon. when ever i click the button the balloon automatically start moveing up vertically from bottom of the simulator to top of the simulator.While it reaches top of the simulator automatically it moves towards down.How can i done this.please post any relevant code or link.Thank you in Advance.
Have a look at this example from Apple you just need to recognize the first touch on the balloon and then make it move wherever you want (by using an animation or manually redrawing the UIImageView representing the balloon each time using a NSTimer)

iphone simulator using multi-touch problem

i know in iphone simulator to input using multi-touch, hold down the OPT key while using the mouse. will see two virtual fingertips.and move the mouse to pinch in and out.
my problem is in simulator,these two fingertips will only be overlap at the center all the time, if i jus want move one finger and another finger fix at a point,rather move two fingertips together how to achieve this in iphone simulator?in other word i want this two virtual finger can be overlap anywhere on the screen but not just center
If you press Shift-Option they will also move together with a static distance.