iolate / SimulateTouch

Simulate touch library for iOS
MIT License
506 stars 159 forks source link

Coordinates bigger than 768 are discarded #4

Open autresphere opened 10 years ago

autresphere commented 10 years ago

Hi,

It seems touch coordinates bigger than 768 are discarded whatever the orientation is. On a jailbreaked iPad (non retina), if you launch a Draw app in landscape mode, and try '/usr/bin/stouch touch 768 300 3', no point is drawn while '/usr/bin/stouch touch 767 300 3' draws the expected point.

Any idea how to fix that?

Thanks for your help

iolate commented 10 years ago

It works perfect on my iPad mini 1(non retina).

autresphere commented 10 years ago

Are you on iOS7? Whatever I try, there is always this limit on my iPad2 iOS7. I've added some log inside SendTouchesEvent in SimulateTouch.mm to check rX and rY, but they are correct. Any idea?

Thanks for your help.

iolate commented 10 years ago

Of course, I'm iOS7 too.

I don't know why... Is there any error log on your device's syslog?

    1. 13., 오전 1:14, Philippe Converset notifications@github.com 작성:

Are you on iOS7? Whatever I try, there is always this limit on my iPad2 iOS7. I've added some log inside SendTouchesEvent in SimulateTouch.mm to check rX and rY, but they are correct. Any idea?

Thanks for your help.

— Reply to this email directly or view it on GitHub.

autresphere commented 10 years ago

No there is nothing on the syslog apart for my specific log that prints the coordinates.

iolate commented 10 years ago

Hmm,,,

what is the app that you tested?

    1. 13., 오전 2:07, Philippe Converset notifications@github.com 작성:

No there is nothing on the syslog apart for my specific log that prints the coordinates.

— Reply to this email directly or view it on GitHub.

autresphere commented 10 years ago

It's not related to the app. The event seems to be "simply" discarded whether I try on a draw app or on the photo app. On the photo app, a touch with coordinates below 768 toggles the toolbar as expected, while a touch with coordinates bigger than 768 does nothing.

iolate commented 10 years ago

In my device, It works perfectly so I cannot help you.

Check your version of SimulateTouch again. 0.7-13 from BigBoss is latest.

    1. 13., 오전 2:48, Philippe Converset notifications@github.com 작성:

It's not related to the app. The event seems to be "simply" discarded whether I try on a draw app or on the photo app. On the photo app, a touch with coordinates below 768 toggles the toolbar as expected, while a touch with coordinates bigger than 768 does nothing.

— Reply to this email directly or view it on GitHub.

autresphere commented 10 years ago

I've just restored then reinstalled from scratch Cydia, SSH Connect and SimulateTouch on the same iPad iOS7. But unfortunately, the issue is still there. I might try later on a different iPad or iPhone.

acer915 commented 10 years ago

I have same issue

iPad2 iOS7 can't send touch coordinates bigger than 768, but other device is ok.

Any idea how to fix that?

Thanks for your help

iolate commented 10 years ago

Hmm,,

I don't know why..

Sorry :(

    1. 7., 오후 2:56, acer915 notifications@github.com 작성:

I have same issue

iPad2 iOS7 can't send touch coordinates bigger than 768, but other device is ok.

Any idea how to fix that?

Thanks for your help

— Reply to this email directly or view it on GitHub.

Adolfoi commented 10 years ago

Hi everyone. I also found the same problem today. The iPad mini 1st in iOS7 me, I will work fine for sure. However, in iPad 2 in iOS7 me, is not recognized only up to the middle.

It is thought that it is a thing due to the difference in the orientation of the iPad series probably this.

In other words, is that it is considered that the orientation of the screen at the time of the image recognition perhaps is different is the cause. That there is a difference by iPad series has been confirmed this.

Thanks in advance.