• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Adobe Air - tvOS cursor issue

Explorer ,
Mar 14, 2017 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

859

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
community guidelines
Adobe Employee ,
Mar 14, 2017 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

Votes

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
community guidelines
Explorer ,
Mar 14, 2017 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?

Votes

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
community guidelines
New Here ,
Sep 26, 2017 Sep 26, 2017

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines