I am going to add to Device Guesser and I am trying to make it detect different devices, but I need help with seeing how devices input touch with a different resolution. After this is done, I will open source the code so anybody can use it.
The project is a 1024x768 project, but I need to test it on different devices to determine what number set a device needs to make the touch a whole integer.
How to help:
- Open this project in the Hopscotch App.
- Go to the Set Text actions in the object.
- Change the values in tiltright>0 to experiment with TouchY and tiltleft<0 for TouchX.
- Find a value that makes the Last Touch Y Variable always a whole number when played horizontally. The number must be less than 15 digits long.
Basically, change that number and let me know what number makes what device output a whole number regardless of last touch y (that means anywhere you press, the green number should be a whole number). Look at post 2 for device list and suggestions
For example: The iPhone screen size is 667x375. In Last Touch Y, I had to multiply by 375 (the height of the editor on iPhone) to make it always output a whole number.
See the next post for the device list.
Forget Last Touch X, this is an older project
Reply with your device (only if listed in the next post) and a the number you multiplied by to make Last Touch Y a whole number every time.
I know it sounds confusing but if you have any questions, please ask me.