Highlighted

Adobe Air - tvOS cursor issue

Explorer ,
Mar 14, 2017

Copy link to clipboard

Copied

Hi,

​I have met a problem while using Adobe Air to port my game for tvOS that mouse coordinates don't go out to the stage. Therefore when I swipe 3 or more times at the same direction, it doesn't calculate mouse's coordinate difference at this direction. In this case, it returns zero.

​I have tried to mouseLock and reaching movementX/movementY of the MouseEvent, but tvOS doesn't allow me to lock mouse.

Is there any solution for this? Thank you for your help.

​Best.

TOPICS
Air beta

Views

739

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Adobe Air - tvOS cursor issue

Explorer ,
Mar 14, 2017

Copy link to clipboard

Copied

Hi,

​I have met a problem while using Adobe Air to port my game for tvOS that mouse coordinates don't go out to the stage. Therefore when I swipe 3 or more times at the same direction, it doesn't calculate mouse's coordinate difference at this direction. In this case, it returns zero.

​I have tried to mouseLock and reaching movementX/movementY of the MouseEvent, but tvOS doesn't allow me to lock mouse.

Is there any solution for this? Thank you for your help.

​Best.

TOPICS
Air beta

Views

740

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 14, 2017 0
Adobe Employee ,
Mar 14, 2017

Copy link to clipboard

Copied

Hi,

For tvOS Swipe events, you will always get default values for localX and localY properties and thus it is not possible to calculate the mouse's coordinates. Use the offsetX, offsetY to determine the swipe direction.

Creating a pointer like application is not recommended on tvOS and can lead to app rejections but you can still get coordinates by subscribing to the Touch Events.

For this, you would first need to set Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

Thanks,

Krati | Adobe AIR Engineering

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2017 0
Explorer ,
Mar 14, 2017

Copy link to clipboard

Copied

Hi Krati,

offsetX and offsetY gives me total 4 results; 1_0 , -1_0 , 0_1 , 0_-1... However, I need also 1_1 , -1_-1 , 1_-1 , -1_1 directions.

Therefore, I use touch events. I'm not creating a pointer, I'm just reading current mouse's stageX and stageY values to calculate extra offset directions.

Any idea?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2017 0
New Here ,
Sep 26, 2017

Copy link to clipboard

Copied

Using the remote as a gamepad could help for detecting swipes, but it would max out at 1 in each direction.

You also can't detect where the user is placing their thumb, which would allow me to use the remote like a d-pad.

Could we just get the absolute coordinates or the touch on the remote?  This would solve theses and any other limitations.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 26, 2017 0