You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[The Ultimate Guide To iPhone Resolutions](https://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions)
16
16
17
-
:::tip
18
-
In your script, you can change the screen coordinate system using the [`screen.init`](../screen.md#initialize-rotated-coordinate-system-screeninit) function.
17
+
## Device default orientation and affected modules
18
+
19
+
This chapter uses the hardware coordinate system (physical pixels). In addition, XXTouch Elite defines device-specific default orientations that affect how coordinates are interpreted by common features.
20
+
21
+
### Default orientations
22
+
23
+
For historical reasons, any mention in this manual of “HOME button at the bottom” should be read as the device’s default orientation; likewise, mentions of the HOME button being left/right/top correspond to the respective orientation conventions.
24
+
25
+
iPhone: Portrait (upright). This is the default orientation for screenshots, simulated taps, record-and-replay, and Script UI.
26
+
27
+

28
+
29
+
iPad: Facing the screen, the default orientation is with the charging port on the right side (Landscape Right).
30
+
31
+

32
+
33
+
### What this impacts
34
+
35
+
- Screen-related operations: capturing screenshots, cropping regions, color sampling, and image recognition all interpret X/Y in the default orientation unless you change it.
36
+
- Touch interactions: coordinates for tapping, swiping, and other gestures; recorded tracks are played back under the default orientation.
37
+
- Record and replay: gesture paths are stored in hardware coordinates and assumed to run under the default orientation unless reconfigured.
38
+
- Script UI and overlays: any absolute screen positions used by UI/overlay components follow the same orientation rules.
39
+
- Image/template reuse: templates/screenshots created under one orientation should be used under the same orientation, or you should rotate/normalize via `screen.init`.
40
+
41
+
### Changing the coordinate system in scripts
42
+
43
+
When needed, use [`screen.init`](../screen.md#initialize-rotated-coordinate-system-screeninit) to rotate the working coordinate system for your script, while XXTouch Elite still operates on hardware pixels underneath. It’s good practice to explicitly set your intended orientation at the start of a script.
0 commit comments