Skip to main content

Screen Coordinates

Please first turn off the screen orientation lock on your device, keep the earpiece at the top, and hold the device vertically. The coordinate system is shown in the following figure Hardware Coordinates:

Screen_Coordinates.001

XXTouch Elite always uses physical pixels as units, with the hardware resolution coordinate system, rather than the logical resolution coordinate system or the view coordinate system. For information about coordinate systems on different devices, please refer to:

tip

In your script, you can change the screen coordinate system using the screen.init function.

Screen_Coordinates.002