Touch FingerX and FingerY

About Monkey 2 Forums Monkey 2 Programming Help Touch FingerX and FingerY

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by  Pakz 1 year, 9 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9164

    Pakz
    Participant

    I am not quite sure yet on how to use the touch commands yet. I did try a simple browser test and tested it on my ipad. It appears the touch.FingerX()  and touch.Fingery() returns large numbers.

    Can I just divide these to get to the actual pixel location on the screen? I am using a 640×480 resolution. Does this work with other touch devices also? The example in the banana folder are a little difficult for me.

    edit: It appears that if I divide the fingerx and y coordinates with the width and height of the canvas that I get the actual pixel locations. This in portrait and landscape mode on ipad 2017.

    edit: I tested on a (low mid) huawei android phone and it also appears as that the touch x and y divided by the canvas width and height return the actual pixel coordinates.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.