Method for interacting with electronic device

By using cursor interaction technology in virtual/augmented reality environments, using hand movement and gaze position, the problems of low interaction efficiency and power waste in the existing technology are solved, achieving a more efficient human-machine interface and longer device battery life.

CN118860221APending Publication Date: 2024-10-29APPLE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410893715.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-09-07
Filing Date
2022-09-24
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing methods of interacting with virtual/augmented reality environments are inefficient and user input is cumbersome and error-prone, resulting in high cognitive load and long time consumption. Especially in battery-driven devices, there is a problem of power waste.

Method used

Provide an improved computer system and user interface that utilizes the user's hand movement and gaze position through cursor interaction technology to reduce the number and complexity of input devices, improve the efficiency of the human-machine interface, and enable cursor selection in a three-dimensional environment and scrolling operations.

Benefits of technology

Improves interaction efficiency in virtual/augmented reality environments, reduces the amount and complexity of user input, reduces battery consumption, extends device battery life, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860221A_ABST
    Figure CN118860221A_ABST
Patent Text Reader

Abstract

The invention relates to a method for interacting with an electronic device. In some embodiments, an electronic device facilitates cursor interaction in different regions in a three-dimensional environment. In some embodiments, an electronic device facilitates cursor interaction in content. In some embodiments, an electronic device facilitates cursor movement. In some embodiments, an electronic device facilitates interaction with a plurality of input devices. In some embodiments, a computer system facilitates cursor movement based on movement of a hand of a user of the computer system and a location of a gaze of the user in a three-dimensional environment. In some embodiments, a computer system facilitates cursor selection and scrolling of content in a three-dimensional environment.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with an application date of September 24, 2022, application number 202280078395.X, and invention name “Method for interacting with an electronic device”.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This patent application claims the benefit of U.S. Provisional Application No. 63 / 261,666, filed on September 25, 2021, U.S. Provisional Application No. 63 / 266,539, filed on January 7, 2022, and U.S. Provisional Application No. 63 / 374,868, filed on September 7, 2022, the contents of which are incorporated herein by reference in their entirety for all purposes. Technical Field

[0004] The present invention generally relates to computer systems having a display generating component for presenting a graphical user interface and one or more input devices, including but not limited to electronic devices that provide various interactions with a three-dimensional environment. Background Art

[0005] In recent years, the development of computer systems for augmented reality has increased significantly. Exemplary augmented reality environments include at least some virtual elements that replace or enhance the physical world. Input devices for computer systems and other electronic computing devices (such as cameras, controllers, joysticks, touch-sensitive surfaces, and touchscreen displays) are used to interact with virtual / augmented reality environments. Exemplary virtual elements include virtual objects (including digital images, videos, text, icons, control elements (such as buttons), and other graphics). Summary of the Invention

[0006] Some methods and interfaces for interacting with environments that include at least some virtual elements (e.g., applications, augmented reality environments, mixed reality environments, and virtual reality environments) are cumbersome, inefficient, and limited. For example, systems that provide insufficient feedback for performing actions associated with virtual objects, systems that require a series of inputs to achieve desired results in augmented reality environments, and systems where virtual object manipulation is complex, cumbersome, and error-prone can place a significant cognitive burden on users and detract from the experience of the virtual / augmented reality environment. In addition, these methods take longer than necessary, wasting energy. This latter consideration is particularly important in battery-powered devices.

[0007] Therefore, there is a need for computer systems with improved methods and interfaces for providing computer-generated experiences to users, thereby making user interactions with computer systems more efficient and intuitive for the users. Such methods and interfaces optionally supplement or replace conventional methods for providing extended reality experiences to users. Such methods and interfaces reduce the amount, extent, and / or nature of inputs from users by helping users understand the connection between the inputs provided and the device's responses to those inputs, thereby forming a more effective human-computer interface.

[0008] The above-mentioned defects and other problems associated with the user interface of the computer system are reduced or eliminated by the disclosed system. In some embodiments, the computer system is a desktop computer with an associated display. In some embodiments, the computer system is a portable device (e.g., a laptop, a tablet computer, or a handheld device). In some embodiments, the computer system is a personal electronic device (e.g., a wearable electronic device, such as a watch or a head-mounted device). In some embodiments, the computer system has a touch pad. In some embodiments, the computer system has one or more cameras. In some embodiments, the computer system has a touch-sensitive display (also referred to as a "touch screen" or "touch screen display"). In some embodiments, the computer system has one or more eye tracking components. In some embodiments, the computer system has one or more hand tracking components. In some embodiments, in addition to the display generation component, the computer system also has one or more output devices, which include one or more tactile output generators and / or one or more audio output devices. In some embodiments, the computer system has a graphical user interface (GUI), one or more processors, a memory, and one or more modules, a program or instruction set stored in the memory for performing multiple functions. In some embodiments, the user interacts with the GUI through contacts and gestures of a stylus and / or fingers on a touch-sensitive surface, movement of the user's eyes and hands in space relative to the GUI (and / or computer system) or the user's body (as captured by a camera and other motion sensors), and / or voice input (as captured by one or more audio input devices). In some embodiments, the functions performed by interaction optionally include image editing, drawing, presentations, word processing, spreadsheet creation, playing games, making and receiving calls, video conferencing, sending and receiving emails, instant messaging, test support, digital photography, digital video recording, web browsing, digital music playback, note-taking, and / or digital video playback. Executable instructions for performing these functions are optionally included in a transient and / or non-transient computer-readable storage medium or other computer program product configured for execution by one or more processors.

[0009] There is a need for electronic devices with improved methods and interfaces for interacting with content in a three-dimensional environment. Such methods and interfaces can supplement or replace conventional methods for interacting with content in a three-dimensional environment. Such methods and interfaces reduce the amount, extent, and / or nature of input from a user and produce a more efficient human-computer interface. For battery-powered computing devices, such methods and interfaces conserve power and increase the time between battery charges.

[0010] In some embodiments, the electronic device facilitates cursor interaction in different areas of a three-dimensional environment. In some embodiments, the electronic device facilitates cursor interaction within content. In some embodiments, the electronic device facilitates cursor movement. In some embodiments, the electronic device facilitates interaction with multiple input devices. In some embodiments, the computer system facilitates cursor movement based on the movement of a user's hand of the computer system and the location of the user's gaze within the three-dimensional environment. In some embodiments, the computer system facilitates cursor selection and scrolling of content in the three-dimensional environment.

[0011] It should be noted that the various embodiments described above can be combined with any other embodiment described herein. The features and advantages described in this specification are not comprehensive. In particular, many additional features and advantages will be apparent to those skilled in the art from the drawings, the specification, and the claims. In addition, it should be noted that the language used in this specification has been selected in principle for readability and instructional purposes, and may not be selected to describe or define the subject matter of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] For a better understanding of the various described embodiments, reference should be made to the following detailed description taken in conjunction with the following drawings, wherein like reference numerals designate corresponding parts throughout the several views.

[0013] Figure 1 is a block diagram illustrating an operating environment for a computer system for providing an XR experience according to some embodiments.

[0014] Figure 2 is a block diagram illustrating a controller of a computer system configured to manage and coordinate a user's XR experience according to some embodiments.

[0015] Figure 3 is a block diagram illustrating display generation components of a computer system configured to provide the visual component of an XR experience to a user according to some embodiments.

[0016] Figure 4 is a block diagram illustrating a hand tracking unit of a computer system configured to capture gesture input from a user according to some embodiments.

[0017] Figure 5 is a block diagram illustrating an eye tracking unit of a computer system configured to capture gaze input from a user according to some embodiments.

[0018] Figure 6A is a flowchart illustrating a flash-assisted gaze tracking pipeline according to some embodiments.

[0019] Figure 6B An exemplary environment of an electronic device providing a CGR experience according to some embodiments is shown.

[0020] 7A to 7D Examples of electronic devices that facilitate cursor interaction in different areas of a three-dimensional environment are shown according to some embodiments.

[0021] Figures 8A to 8E is a flow chart illustrating a method of facilitating cursor interaction in different areas of a three-dimensional environment, according to some embodiments.

[0022] Figures 9A to 9E Examples of electronic devices that facilitate cursor interaction within content are shown according to some embodiments.

[0023] Figures 10A to 10K is a flowchart illustrating a method of facilitating cursor interaction within content according to some embodiments.

[0024] Figures 11A to 11G Examples of electronic devices that facilitate cursor movement according to some embodiments are shown.

[0025] 12A to 12O is a flow chart illustrating a method of facilitating cursor movement according to some embodiments.

[0026] 13A to 13E Examples of electronic devices that facilitate interaction with multiple input devices are shown according to some embodiments.

[0027] 14A to 14E is a flowchart illustrating a method of facilitating interaction with multiple input devices according to some embodiments.

[0028] Figures 15A to 15H An example of a computer system that facilitates cursor movement according to some embodiments is shown.

[0029] Figures 16A to 16L is a flowchart illustrating a method of facilitating interaction with multiple input devices according to some embodiments.

[0030] 17A to 17E An example of a computer system that facilitates content selection and scrolling according to some embodiments is shown.

[0031] Figures 18A to 18Gis a flow chart illustrating a method of facilitating content selection and scrolling according to some embodiments. DETAILED DESCRIPTION

[0032] According to some embodiments, the present disclosure relates to a user interface for providing a computer-generated (CGR) experience to a user.

[0033] The systems, methods, and GUIs described herein provide improved ways for electronic devices to facilitate interaction with and manipulation of objects in a three-dimensional environment.

[0034] In some embodiments, the computer system allows cursor interaction in a first area of ​​the three-dimensional environment. In some embodiments, after the cursor interaction, the computer system detects interaction with a second area of ​​the three-dimensional environment. In response to detecting cursor movement input directed again toward the first area, the computer system optionally moves the cursor from its last position in the first area in accordance with the cursor movement input.

[0035] In some embodiments, the computer system displays content (e.g., text content) and a cursor. In some embodiments, depending on the type of input detected by the computer system and whether the user's gaze is directed at the cursor when the input is detected, the computer system performs different operations (e.g., a text selection operation, a cursor movement operation, etc.). In some embodiments, the cursor moves continuously in response to movement input directed at the cursor, and in some embodiments, the cursor jumps to a new position in the content in response to different inputs directed at the cursor.

[0036] In some embodiments, the computer system displays a cursor. In some embodiments, movement of the cursor toward the user's gaze location is accelerated relative to movement of the cursor away from the user's gaze location. In some embodiments, the computer system does not apply this variable acceleration of cursor movement to the cursor if the cursor is currently engaged with the underlying environment or user interface (e.g., selecting content, creating a marker, etc.).

[0037] In some embodiments, the computer system is configured to receive input from multiple input devices. In some embodiments, in response to detecting input from a user's hand, if the user's hand is within a threshold distance of a first input device in the input devices, the computer system does not respond to the input from the hand detected via a second input device in the input devices. However, if the hand is outside the threshold distance of the first input device, the computer system optionally responds to the input from the hand detected via the second input device. In some embodiments, the first input device detects input based on contact of the user's hand with the first input device (e.g., a touchpad). In some embodiments, the second input device detects input based on gestures and / or movements of the hand in the physical environment of the computer system.

[0038] In some embodiments, the computer system displays a cursor in a three-dimensional environment. In some embodiments, the movement of the cursor in the three-dimensional environment is based on the movement of the hand of the user of the computer system, but the movement is constrained by the user's gaze position in the three-dimensional environment. In some embodiments, in response to detecting the user's hand with a corresponding magnitude corresponding to the movement of the cursor within a threshold distance of the gaze position and / or in a corresponding direction, the computer system moves the cursor according to the hand movement. In some embodiments, in response to detecting the user's hand with a corresponding magnitude corresponding to the movement of the cursor exceeding a threshold distance of the gaze position and / or in a corresponding direction, the computer system moves the cursor to a corresponding position within the threshold distance of the gaze position in the three-dimensional environment. In some embodiments, the movement of the cursor in the three-dimensional environment is based on the movement of the user's gaze, while the user's hand remains substantially stationary.

[0039] In some embodiments, the computer system displays content in a three-dimensional environment. In some embodiments, the content is selectable and / or scrollable in the three-dimensional environment based on input provided by a hand of a user of the computer system. In some embodiments, in response to detecting a long mid-air pinch and drag gesture provided by a hand of the user, if a cursor is displayed in the three-dimensional environment with the content, the computer system selects a portion of the content according to the direction and / or magnitude of the user's hand movement. In some embodiments, in response to detecting a long mid-air pinch and drag gesture provided by a hand of the user, if a cursor is not displayed in the three-dimensional environment with the content, the computer system scrolls the content according to the direction and / or magnitude of the user's hand movement.

[0040] Figure 1 6 provide a description of an exemplary computer system for providing an XR experience to a user (such as described below with respect to methods 800 , 1000 , 1200 , 1400 , and 1600 and / or 1800 ). 7A to 7D Example techniques for facilitating cursor interaction in different areas of a three-dimensional environment are shown, according to some embodiments. Figures 8A to 8E is a flow chart illustrating a method of facilitating cursor interaction in different areas of a three-dimensional environment, according to various embodiments. 7A to 7D The user interface in Figures 8A to 8E in the process. Figures 9A to 9E Example techniques for facilitating cursor interaction within content according to some embodiments are shown according to some embodiments. Figures 10A to 10K is a flow diagram illustrating a method of facilitating cursor interaction within content according to various embodiments. Figures 9A to 9E The user interface in Figures 10A to 10K in the process. Figures 11A to 11GExample techniques for facilitating cursor movement according to some embodiments are shown. 12A to 12O is a flow chart of a method of facilitating cursor movement according to some embodiments. Figures 11A to 11G The user interface in 12A to 12O in the process. 13A to 13E Example techniques for facilitating interaction with multiple input devices according to some embodiments are shown. 14A to 14E is a flowchart of a method of facilitating interaction with multiple input devices according to some embodiments. 13A to 13E The user interface in 14A to 14E in the process. Figures 15A to 15H Example techniques for facilitating cursor movement according to some embodiments are shown. Figures 16A to 16L is a flow chart illustrating a method of facilitating cursor movement according to some embodiments. Figures 15A to 15H The user interface in Figures 16A to 16L in the process. 17A to 17E Example techniques for facilitating content selection and scrolling according to some embodiments are shown. Figures 18A to 18G is a flow diagram of a method of facilitating content selection and scrolling, according to some embodiments. Figures 17A to 17E The user interface in Figures 18A to 18G in the process.

[0041] The processes described below enhance the operability of the device and make the user-device interface more efficient (e.g., by helping the user provide appropriate input and reducing user errors when operating / interacting with the device) through various techniques, including by providing improved visual feedback to the user, reducing the number of inputs required to perform an operation, providing additional control options without cluttering the user interface with additional display controls, performing an operation without further user input when a set of conditions have been met, improving privacy and / or security, and / or additional techniques. These techniques also reduce power usage and extend the battery life of the device by enabling the user to use the device more quickly and efficiently.

[0042] In addition, in the method described herein where one or more steps depend on having met one or more conditions, it should be understood that the method can be repeated in multiple repetitions so that in the process of repetition, all conditions of the steps in the method of determining the method have been met in different repetitions of the method. For example, if the method needs to perform the first step (if the condition is met), and perform the second step (if the condition is not met), then those of ordinary skill will know that the steps stated are repeated until both the condition is met and the condition is not met (in no particular order). Therefore, the method described as having one or more steps depending on having met one or more conditions can be rewritten as a method of repeating until each condition described in the method is met. However, this does not require a system or computer-readable medium to declare that the system or computer-readable medium includes instructions for performing a contingent operation based on the satisfaction of the corresponding one or more conditions, and is therefore able to determine whether a possible situation has been met without explicitly repeating the steps of the method until all conditions of the steps in the method of determining the method have been met. Those of ordinary skill in the art will also understand that, similar to the method with a contingent step, a system or computer-readable storage medium can repeat the steps of the method as needed multiple times to ensure that all contingent steps have been performed.

[0043] In some embodiments, as Figure 1 As shown in FIG, an XR experience is provided to a user via an operating environment 100 including a computer system 101. The computer system 101 includes a controller 110 (e.g., a processor of a portable electronic device or a remote server), a display generation component 120 (e.g., a head-mounted device (HMD), a display, a projector, a touch screen, etc.), one or more input devices 125 (e.g., an eye tracking device 130, a hand tracking device 140, other input devices 150), one or more output devices 155 (e.g., a speaker 160, a tactile output generator 170, and other output devices 180), one or more sensors 190 (e.g., an image sensor, a light sensor, a depth sensor, a tactile sensor, an orientation sensor, a proximity sensor, a temperature sensor, a position sensor, a motion sensor, a speed sensor, etc.), and optionally one or more peripheral devices 195 (e.g., a home appliance, a wearable device, etc.). In some embodiments, one or more of the input device 125, the output device 155, the sensor 190, and the peripheral device 195 are integrated with the display generation component 120 (e.g., in a head-mounted device or a handheld device).

[0044] When describing an XR experience, various terms are used to distinctly refer to several related but distinct environments that a user can sense and / or with which the user can interact (e.g., using inputs detected by the computer system 101 generating the XR experience, which inputs cause the computer system generating the XR experience to generate audio, visual, and / or haptic feedback corresponding to the various inputs provided to the computer system 101). The following is a subset of these terms:

[0045] Physical Environment: The physical environment refers to the physical world that people can sense and / or interact with without the aid of electronic systems. A physical environment, such as a physical park, includes physical objects, such as physical trees, physical buildings, and physical people. People can directly sense and / or interact with the physical environment, such as through sight, touch, hearing, taste, and smell.

[0046] Extended Reality: In contrast, an extended reality (XR) environment refers to a fully or partially simulated environment that people sense and / or interact with via electronic systems. In XR, a subset of a person's physical movements, or representations thereof, is tracked, and in response, one or more features of one or more virtual objects simulated in the XR environment are adjusted in a manner that conforms to at least one law of physics. For example, an XR system can detect a person's head rotation and, in response, adjust the graphical content and sound field presented to the person in a manner similar to how such views and sounds change in a physical environment. In some cases (e.g., for accessibility reasons), adjustments to features of virtual objects in an XR environment can be made in response to representations of physical movement (e.g., voice commands). People can sense and / or interact with XR objects using any of their senses, including vision, hearing, touch, taste, and smell. For example, people can sense and / or interact with audio objects, which create a 3D or spatial audio environment that provides the perception of a point audio source in 3D space. As another example, audio objects can enable audio transparency, which selectively introduces ambient sounds from the physical environment with or without computer-generated audio. In some XR environments, people can sense and / or interact only with audio objects.

[0047] Examples of XR include virtual reality and mixed reality.

[0048] Virtual Reality: A virtual reality (VR) environment is a simulated environment designed to be based entirely on computer-generated sensory input to one or more senses. A VR environment includes multiple virtual objects that a person can sense and / or interact with. For example, trees, buildings, and computer-generated images representing human avatars are examples of virtual objects. A person can sense and / or interact with virtual objects in a VR environment through the simulation of the person's presence within the computer-generated environment and / or through the simulation of a subset of the person's physical movement within the computer-generated environment.

[0049] Mixed Reality: In contrast to VR environments, which are designed to be based entirely on computer-generated sensory input, a mixed reality (MR) environment refers to a simulated environment that is designed to include sensory input from the physical environment, or representations thereof, in addition to computer-generated sensory input (e.g., virtual objects). On the virtuality continuum, a mixed reality environment is anything between, but not including, a fully physical environment at one end and a virtual reality environment at the other. In some MR environments, computer-generated sensory input can respond to changes in sensory input from the physical environment. In addition, some electronic systems used to render MR environments can track position and / or orientation relative to the physical environment to enable virtual objects to interact with real objects (i.e., physical items from the physical environment, or representations thereof). For example, the system can cause motion so that virtual trees appear stationary relative to the physical ground.

[0050] Examples of mixed reality include augmented reality and augmented virtuality.

[0051] Augmented Reality: An augmented reality (AR) environment refers to a simulated environment in which one or more virtual objects are superimposed on a physical environment or a representation of a physical environment. For example, an electronic system for presenting an AR environment may have a transparent or translucent display through which a person can directly view the physical environment. The system can be configured to present virtual objects on a transparent or translucent display so that a person uses the system to perceive the virtual objects superimposed on the physical environment. Alternatively, the system may have an opaque display and one or more imaging sensors that capture images or videos of the physical environment, which are representations of the physical environment. The system combines the images or videos with the virtual objects and presents the combination on the opaque display. A person uses the system to indirectly view the physical environment via the images or videos of the physical environment and perceives the virtual objects superimposed on the physical environment. As used herein, a video of the physical environment displayed on an opaque display is referred to as "transparent video," meaning that the system uses one or more image sensors to capture images of the physical environment and uses those images when presenting the AR environment on the opaque display. Further alternatively, the system may have a projection system that projects virtual objects into a physical environment, such as as holograms or on a physical surface, so that a person using the system perceives virtual objects superimposed on the physical environment. An augmented reality environment also refers to a simulated environment in which a representation of a physical environment is transformed by computer-generated sensory information. For example, in providing a pass-through video, the system may transform one or more sensor images to apply a selected perspective (e.g., a viewpoint) that is different from the perspective captured by the imaging sensor. For another example, the representation of the physical environment may be transformed by graphically modifying (e.g., enlarging) a portion thereof so that the modified portion may be a representative but not real version of the original captured image. For another example, the representation of the physical environment may be transformed by graphically eliminating a portion thereof or blurring a portion thereof.

[0052] Augmented Virtual: An augmented virtual (AV) environment is a simulated environment in which a virtual or computer-generated environment incorporates one or more sensory inputs from the physical environment. The sensory input can be a representation of one or more characteristics of the physical environment. For example, an AV park can have virtual trees and virtual buildings, but people's faces are realistically reproduced from images taken of physical people. In another example, a virtual object can adopt the shape or color of a physical object imaged by one or more imaging sensors. In another example, a virtual object can adopt a shadow that conforms to the position of the sun in the physical environment.

[0053] Viewpoint-locked virtual objects: When a computer system displays a virtual object at the same position and / or location in a user's viewpoint, even if the user's viewpoint shifts (e.g., changes), the virtual object is viewpoint-locked. In embodiments where the computer system is a head-mounted device, the user's viewpoint is locked to the forward direction of the user's head (e.g., when the user is looking straight ahead, the user's viewpoint is at least a portion of the user's field of view); thus, without moving the user's head, the user's viewpoint remains fixed even when the user's gaze shifts. In embodiments where the computer system has a display generation component (e.g., a display screen) that is repositionable relative to the user's head, the user's viewpoint is the augmented reality view presented to the user on the display generation component of the computer system. For example, a viewpoint-locked virtual object that is displayed in the upper left corner of the user's viewpoint when the user's viewpoint is in a first orientation (e.g., the user's head is facing north) continues to be displayed in the upper left corner of the user's viewpoint even when the user's viewpoint changes to a second orientation (e.g., the user's head is facing west). In other words, the position and / or location of the viewpoint-locked virtual object displayed in the user's viewpoint is independent of the user's position and / or orientation in the physical environment. In embodiments where the computer system is a head-mounted device, the user's viewpoint is locked to the orientation of the user's head, such that the virtual object is also referred to as a "head-locked virtual object."

[0054] Environment-locked visual objects: A virtual object is environment-locked (alternatively, "world-locked") when a computer system displays it at a location and / or position in a user's viewpoint that is based on (e.g., selected with reference to and / or anchored to) a location and / or object in a three-dimensional environment (e.g., a physical environment or a virtual environment). As the user's viewpoint moves, the location and / or objects in the environment change relative to the user's viewpoint, which causes the environment-locked virtual object to be displayed at a different location and / or position in the user's viewpoint. For example, an environment-locked virtual object locked to a tree immediately in front of the user is displayed at the center of the user's viewpoint. When the user's viewpoint shifts to the right (e.g., the user's head turns to the right) such that the tree is now to the left of center in the user's viewpoint (e.g., the tree's position in the user's viewpoint shifts), the environment-locked virtual object locked to the tree is displayed to the left of center in the user's viewpoint. In other words, the position and / or orientation at which an environment-locked virtual object is displayed in the user's viewpoint depends on the position and / or orientation of the object in the environment to which the virtual object is locked. In some embodiments, the computer system uses a stationary reference frame (e.g., a coordinate system anchored to fixed locations and / or objects in the physical environment) to determine the positioning at which an environment-locked virtual object is displayed in the user's viewpoint. An environment-locked virtual object can be locked to a stationary portion of the environment (e.g., a floor, wall, table, or other stationary object), or can be locked to a movable portion of the environment (e.g., a vehicle, animal, person, or even a representation of a part of the user's body that moves independently of the user's viewpoint, such as a hand, wrist, arm, or foot of the user) so that the virtual object moves as the viewpoint or that portion of the environment moves to maintain a fixed relationship between the virtual object and that portion of the environment.

[0055] In some embodiments, an environment-locked or viewpoint-locked virtual object exhibits an inertial following behavior that reduces or delays the movement of the environment-locked or viewpoint-locked virtual object relative to the movement of a reference point that the virtual object follows. In some embodiments, when exhibiting inertial following behavior, the computer system intentionally delays the movement of the virtual object when movement of a reference point that the virtual object is following (e.g., a portion of the environment, a viewpoint, or a point fixed relative to the viewpoint, such as a point between 5 cm and 300 cm from the viewpoint) is detected. For example, when the reference point (e.g., the portion of the environment or the viewpoint) moves at a first speed, the virtual object is moved by the device to remain locked to the reference point, but at a second speed that is slower than the first speed (e.g., until the reference point stops moving or slows down, at which point the virtual object begins to catch up with the reference point). In some embodiments, when the virtual object exhibits inertial following behavior, the device ignores small amounts of movement of the reference point (e.g., ignoring movements of the reference point below a threshold movement amount, such as movement of 0 to 5 degrees or movement of 0 to 50 cm). For example, when the reference point (e.g., the portion of the environment or viewpoint to which the virtual object is locked) moves a first amount, the distance between the reference point and the virtual object increases (e.g., because the virtual object is being displayed so as to maintain a fixed or substantially fixed position relative to a viewpoint or portion of the environment that is different from the reference point to which the virtual object is locked), and when the reference point (e.g., the portion of the environment or viewpoint to which the virtual object is locked) moves a second amount greater than the first amount, the distance between the reference point and the virtual object initially increases (e.g., because the virtual object is being displayed so as to maintain a fixed or substantially fixed position relative to a viewpoint or portion of the environment that is different from the reference point to which the virtual object is locked), and then decreases as the amount of movement of the reference point increases above a threshold (e.g., a “lazy follow” threshold) because the virtual object is moved by the computer system to maintain a fixed or substantially fixed position relative to the reference point. In some embodiments, maintaining a substantially fixed position of the virtual object relative to the reference point includes displaying the virtual object within a threshold distance (e.g., 1 cm, 2 cm, 3 cm, 5 cm, 15 cm, 20 cm, 50 cm) of the reference point in one or more dimensions (e.g., up / down, left / right, and / or forward / backward relative to the position of the reference point).

[0056] Hardware: There are many different types of electronic systems that enable people to sense and / or interact with various XR environments. Examples include head-mounted systems, projection-based systems, heads-up displays (HUDs), vehicle windshields with integrated display capabilities, windows with integrated display capabilities, displays formed as lenses designed to be placed on a person's eyes (e.g., similar to contact lenses), headphones / earpieces, speaker arrays, input systems (e.g., wearable or handheld controllers with or without haptic feedback), smartphones, tablets, and desktop / laptop computers. A head-mounted system can have one or more speakers and an integrated opaque display. Alternatively, a head-mounted system can be configured to accept an external opaque display (e.g., a smartphone). A head-mounted system can incorporate one or more imaging sensors for capturing images or video of the physical environment and / or one or more microphones for capturing audio of the physical environment. Instead of an opaque display, a head-mounted system can have a transparent or translucent display. A transparent or translucent display can have a medium through which light representing the image is directed to the person's eyes. The display can utilize digital light projection, OLED, LED, uLED, liquid crystal on silicon, laser scanning light source, or any combination of these technologies. The medium can be an optical waveguide, a holographic medium, an optical combiner, an optical reflector, or any combination thereof. In one embodiment, the transparent or translucent display can be configured to become selectively opaque. The projection-based system can employ retinal projection technology that projects graphic images onto a person's retina. The projection system can also be configured to project virtual objects into the physical environment, for example as a hologram or on a physical surface. In some embodiments, the controller 110 is configured to manage and coordinate the user's XR experience. In some embodiments, the controller 110 includes a suitable combination of software, firmware, and / or hardware. Reference is made below to Figure 2Controller 110 is described in more detail. In some embodiments, controller 110 is a computing device that is located locally or remotely relative to scene 105 (e.g., physical environment). For example, controller 110 is a local server located within scene 105. In another example, controller 110 is a remote server located outside of scene 105 (e.g., a cloud server, a central server, etc.). In some embodiments, controller 110 is communicatively coupled to display generation component 120 (e.g., HMD, display, projector, touch screen, etc.) via one or more wired or wireless communication channels 144 (e.g., Bluetooth, IEEE 802.11x, IEEE 802.16x, IEEE 802.3x, etc.). In another example, the controller 110 is included within a housing (e.g., a physical housing) of the display generating component 120 (e.g., an HMD or a portable electronic device including a display and one or more processors, etc.), one or more input devices of the input devices 125, one or more output devices of the output devices 155, one or more sensors of the sensors 190, and / or one or more peripheral devices 195, or shares the same physical housing or support structure with one or more of the above devices.

[0057] In some embodiments, the display generation component 120 is configured to provide an XR experience (e.g., at least the visual component of the XR experience) to the user. In some embodiments, the display generation component 120 includes a suitable combination of software, firmware, and / or hardware. Figure 3 Display generation component 120 is described in further detail. In some embodiments, the functionality of controller 110 is provided by and / or combined with display generation component 120.

[0058] According to some embodiments, display generation component 120 provides an XR experience to the user when the user is virtually and / or physically present within scene 105.

[0059] In some embodiments, the display generation component is worn on a part of the user's body (e.g., on his / her head, on his / her hand, etc.). In this way, the display generation component 120 includes one or more XR displays provided for displaying XR content. For example, in various embodiments, the display generation component 120 surrounds the user's field of view. In some embodiments, the display generation component 120 is a handheld device (such as a smartphone or tablet) configured to present XR content, and the user holds a device with a display facing the user's field of view and a camera facing the scene 105. In some embodiments, the handheld device is optionally placed in a housing worn on the user's head. In some embodiments, the handheld device is optionally placed on a support (e.g., a tripod) in front of the user. In some embodiments, the display generation component 120 is an XR room, housing, or room configured to present XR content, wherein the user does not wear or hold the display generation component 120. Many user interfaces described with reference to one type of hardware for displaying XR content (e.g., a handheld device or a device on a tripod) can be implemented on another type of hardware for displaying XR content (e.g., an HMD or other wearable computing device). For example, a user interface that shows interactions with XR content triggered based on interactions occurring in the space in front of a handheld device or a tripod-mounted device can similarly be implemented with an HMD, where the interactions occur in the space in front of the HMD and the responses to the XR content are displayed via the HMD. Similarly, a user interface that shows interactions with XR content triggered based on movement of a handheld device or a tripod-mounted device relative to a physical environment (e.g., scene 105 or a part of a user's body (e.g., the user's eyes, head, or hands)) can similarly be implemented with an HMD, where the movement is caused by movement of the HMD relative to the physical environment (e.g., scene 105 or a part of a user's body (e.g., the user's eyes, head, or hands)).

[0060] Despite Figure 1 Relevant features of the operating environment 100 are shown, but those skilled in the art will recognize from this disclosure that various other features are not shown for the sake of brevity and so as not to obscure more relevant aspects of the exemplary embodiments disclosed herein.

[0061] Figure 2is a block diagram of an example of a controller 110 according to some embodiments. While some specific features are shown, those skilled in the art will recognize from this disclosure that various other features are not shown for the sake of brevity and so as not to obscure more relevant aspects of the embodiments disclosed herein. To this end, as a non-limiting example, in some embodiments, the controller 110 includes one or more processing units 202 (e.g., a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a graphics processing unit (GPU), a central processing unit (CPU), a processing core, etc.), one or more input / output (I / O) devices 206, one or more communication interfaces 208 (e.g., a universal serial bus (USB), IEEE802.3x, IEEE 802.11x, IEEE 802.16x, Global System for Mobile Communications (GSM), code division multiple access (CDMA), time division multiple access (TDMA), global positioning system (GPS), infrared (IR), Bluetooth, ZIGBEE, and / or similar types of interfaces), one or more programming (e.g., I / O) interfaces 210, a memory 220, and one or more communication buses 204 for interconnecting these components and various other components.

[0062] In some embodiments, the one or more communication buses 204 include circuits that interconnect and control communications between system components. In some embodiments, the one or more I / O devices 206 include at least one of a keyboard, a mouse, a touchpad, a joystick, one or more microphones, one or more speakers, one or more image sensors, one or more displays, and the like.

[0063] Memory 220 includes high-speed random access memory, such as dynamic random access memory (DRAM), static random access memory (SRAM), double data rate random access memory (DDR RAM), or other random access solid-state memory devices. In some embodiments, memory 220 includes non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. Memory 220 optionally includes one or more storage devices located away from the one or more processing units 202. Memory 220 includes non-transitory computer-readable storage media. In some embodiments, memory 220 or a non-transitory computer-readable storage medium of memory 220 stores the following programs, modules, and data structures, or a subset thereof, including an optional operating system 230 and an XR experience module 240.

[0064] The operating system 230 includes instructions for handling various basic system services and for performing hardware-related tasks. In some embodiments, the XR experience module 240 is configured to manage and coordinate single or multiple XR experiences for one or more users (e.g., a single XR experience for one or more users, or multiple XR experiences for corresponding groups of one or more users). To this end, in various embodiments, the XR experience module 240 includes a data acquisition unit 241, a tracking unit 242, a coordination unit 246, and a data transmission unit 248.

[0065] In some embodiments, the data acquisition unit 241 is configured to Figure 1 1 and / or peripherals 195. The data acquisition unit 241 may be configured to acquire data (e.g., presentation data, interaction data, sensor data, position data, etc.) from at least the display generation component 120 of the display generation component 120, and optionally from one or more of the input device 125, the output device 155, the sensor 190, and / or the peripheral device 195. To this end, in various embodiments, the data acquisition unit 241 includes instructions and / or logic for instructions, as well as heuristics and metadata for the heuristics.

[0066] In some embodiments, the tracking unit 242 is configured to map the scene 105 and track at least the display generation component 120 relative to the scene 105. Figure 1 105, and optionally relative to the position / location of one or more of the tracked input device 125, the output device 155, the sensor 190, and / or the peripheral device 195. To this end, in various embodiments, the tracking unit 242 includes instructions and / or logic for the instructions and heuristics and metadata for the heuristics. In some embodiments, the tracking unit 242 includes a hand tracking unit 244 and / or an eye tracking unit 243. In some embodiments, the hand tracking unit 244 is configured to track the position / location of one or more parts of the user's hand and / or the position / location of one or more parts of the user's hand relative to the user's Figure 1 The movement of the scene 105 relative to the display generation component 120 and / or relative to the coordinate system (the coordinate system is defined relative to the user's hand). Figure 4 The hand tracking unit 244 is described in more detail. In some embodiments, the eye tracking unit 243 is configured to track the position or movement of the user's gaze (or more broadly, the user's eyes, face, or head) relative to the scene 105 (e.g., relative to the physical environment and / or relative to the user (e.g., the user's hands)) or relative to the XR content displayed via the display generation component 120. Figure 5 The eye tracking unit 243 is described in more detail.

[0067] In some embodiments, the coordination unit 246 is configured to manage and coordinate the XR experience presented to the user by the display generation component 120, and optionally by one or more of the output device 155 and / or peripheral devices 195. To this end, in various embodiments, the coordination unit 246 includes instructions and / or logic for the instructions, as well as heuristics and metadata for the heuristics.

[0068] In some embodiments, data transmission unit 248 is configured to transmit data (e.g., presentation data, position data, etc.) to at least display generation component 120, and optionally to one or more of input device 125, output device 155, sensor 190, and / or peripheral device 195. To this end, in various embodiments, data transmission unit 248 includes instructions and / or logic for the instructions, as well as heuristics and metadata for the heuristics.

[0069] Although the data acquisition unit 241, the tracking unit 242 (e.g., including the eye tracking unit 243 and the hand tracking unit 244), the coordination unit 246, and the data transmission unit 248 are shown as residing on a single device (e.g., the controller 110), it should be understood that in other embodiments, any combination of the data acquisition unit 241, the tracking unit 242 (e.g., including the eye tracking unit 243 and the hand tracking unit 244), the coordination unit 246, and the data transmission unit 248 may be located in separate computing devices.

[0070] also, Figure 2 It serves more as a functional description of various features that may be present in a particular implementation, rather than as a structural diagram of the embodiments described herein. As one of ordinary skill in the art will recognize, items shown separately may be combined, and some items may be separated. For example, Figure 2 Some functional modules shown separately in the figure may be implemented in a single module, and the various functions of a single functional block may be implemented by one or more functional blocks in various embodiments. The actual number of modules and the division of specific functions and how features are distributed among them will vary depending on the specific implementation and, in some embodiments, will depend in part on the specific combination of hardware, software, and / or firmware selected for a particular implementation.

[0071] Figure 3is a block diagram of an example of a display generation component 120 according to some embodiments. While some specific features are shown, those skilled in the art will recognize from this disclosure that various other features are not shown for the sake of brevity and so as not to obscure more relevant aspects of the embodiments disclosed herein. For this purpose, as a non-limiting example, in some embodiments, the display generation component 120 (e.g., an HMD) includes one or more processing units 302 (e.g., a microprocessor, an ASIC, an FPGA, a GPU, a CPU, a processing core, etc.), one or more input / output (I / O) devices and sensors 306, one or more communication interfaces 308 (e.g., USB, FIREWIRE, THUNDERBOLT, IEEE 802.3x, IEEE802.11x, IEEE 802.16x, GSM, CDMA, TDMA, GPS, IR, BLUETOOTH, ZIGBEE, and / or similar types of interfaces), one or more programming (e.g., I / O) interfaces 310, one or more XR displays 312, one or more optional internal-facing and / or external-facing image sensors 314, memory 320, and one or more communication buses 304 for interconnecting these and various other components.

[0072] In some embodiments, the one or more communication buses 304 include circuits for interconnecting and controlling communications between various system components. In some embodiments, the one or more I / O devices and sensors 306 include an inertial measurement unit (IMU), an accelerometer, a gyroscope, a thermometer, one or more physiological sensors (e.g., a blood pressure monitor, a heart rate monitor, a blood oxygen sensor, a blood glucose sensor, etc.), one or more microphones, one or more speakers, a haptic engine, and / or one or more depth sensors (e.g., structured light, time of flight, etc.), etc.

[0073] In some embodiments, one or more XR displays 312 are configured to provide an XR experience to the user. In some embodiments, one or more XR displays 312 correspond to holographic, digital light processing (DLP), liquid crystal display (LCD), liquid crystal on silicon (LCoS), organic light-emitting field effect transistor (OLET), organic light-emitting diode (OLED), surface conduction electron emission display (SED), field emission display (FED), quantum dot light-emitting diode (QD-LED), microelectromechanical system (MEMS) and / or similar display types. In some embodiments, one or more XR displays 312 correspond to diffraction, reflection, polarization, holographic and other waveguide displays. For example, the display generation component 120 (e.g., HMD) includes a single XR display. In another example, the display generation component 120 includes an XR display for each eye of the user. In some embodiments, one or more XR displays 312 are capable of presenting MR and VR content. In some embodiments, one or more XR displays 312 are capable of presenting MR or VR content.

[0074] In some embodiments, the one or more image sensors 314 are configured to acquire image data corresponding to at least a portion of the user's face, including the user's eyes (and may be referred to as an eye-tracking camera). In some embodiments, the one or more image sensors 314 are configured to acquire image data corresponding to the user's hands and, optionally, at least a portion of the user's arms (and may be referred to as a hand-tracking camera). In some embodiments, the one or more image sensors 314 are configured to face forward so as to acquire image data corresponding to the scene that the user would see in the absence of the display generation component 120 (e.g., an HMD) (and may be referred to as a scene camera). The one or more optional image sensors 314 may include one or more RGB cameras (e.g., having a complementary metal oxide semiconductor (CMOS) image sensor or a charge coupled device (CCD) image sensor), one or more infrared (IR) cameras, and / or one or more event-based cameras, among others.

[0075] Memory 320 includes high-speed random access memory, such as DRAM, SRAM, DDR RAM, or other random access solid-state memory devices. In some embodiments, memory 320 includes non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. Memory 320 optionally includes one or more storage devices located away from one or more processing units 302. Memory 320 includes non-transitory computer-readable storage media. In some embodiments, memory 320 or a non-transitory computer-readable storage medium of memory 320 stores the following programs, modules, and data structures, or a subset thereof, including an optional operating system 330 and an XR rendering module 340.

[0076] The operating system 330 includes processes for handling various basic system services and for performing hardware-related tasks. In some embodiments, the XR rendering module 340 is configured to present XR content to the user via one or more XR displays 312. To this end, in various embodiments, the XR rendering module 340 includes a data acquisition unit 342, an XR rendering unit 344, an XR map generation unit 346, and a data transmission unit 348.

[0077] In some embodiments, the data acquisition unit 342 is configured to at least Figure 1 The controller 110 acquires data (e.g., presentation data, interaction data, sensor data, location data, etc.). For this purpose, in various embodiments, the data acquisition unit 342 includes instructions and / or logic for instructions and heuristics and metadata for the heuristics.

[0078] In some embodiments, the XR rendering unit 344 is configured to render XR content via one or more XR displays 312. For such purposes, in various embodiments, the XR rendering unit 344 includes instructions and / or logic for the instructions and heuristics and metadata for the heuristics.

[0079] In some embodiments, the XR map generation unit 346 is configured to generate an XR map (e.g., a 3D map of a mixed reality scene or a map of a physical environment in which computer-generated objects can be placed to generate an extended reality) based on the media content data. For this purpose, in various embodiments, the XR map generation unit 346 includes instructions and / or logic for the instructions and heuristics and metadata for the heuristics.

[0080] In some embodiments, the data transmission unit 348 is configured to transmit data (e.g., presentation data, position data, etc.) to at least the controller 110, and optionally one or more of the input device 125, the output device 155, the sensor 190, and / or the peripheral device 195. For such purposes, in various embodiments, the data transmission unit 348 includes instructions and / or logic for the instructions and heuristics and metadata for the heuristics.

[0081] Although the data acquisition unit 342, the XR rendering unit 344, the XR map generation unit 346, and the data transmission unit 348 are shown as residing on a single device (e.g., Figure 1 , but it should be understood that in other embodiments, any combination of the data acquisition unit 342, the XR rendering unit 344, the XR map generation unit 346, and the data transmission unit 348 may be located in a separate computing device.

[0082] also, Figure 3 It serves more as a functional description of various features that may be present in a particular embodiment, rather than as a structural schematic diagram of the embodiments described herein. As one of ordinary skill in the art will recognize, items shown separately may be combined, and some items may be separated. For example, Figure 3 Some functional modules shown separately in the figure may be implemented in a single module, and the various functions of a single functional block may be implemented by one or more functional blocks in various embodiments. The actual number of modules and the division of specific functions and how features are distributed among them will vary depending on the specific implementation and, in some embodiments, will depend in part on the specific combination of hardware, software, and / or firmware selected for a particular implementation.

[0083] Figure 4 is a schematic illustration of an exemplary embodiment of the hand tracking device 140. In some embodiments, the hand tracking device 140 ( Figure 1 ) is controlled by the hand tracking unit 244 ( Figure 2 ) to track the position / location of one or more parts of the user's hand and / or one or more parts of the user's hand relative to Figure 1The hand tracking device 140 is configured to monitor movement of the scene 105 relative to the user's surroundings (e.g., relative to a portion of the physical environment surrounding the user, relative to the display generation component 120, or relative to a portion of the user (e.g., the user's face, eyes, or head), and / or relative to a coordinate system defined relative to the user's hands). In some embodiments, the hand tracking device 140 is part of the display generation component 120 (e.g., embedded in or attached to a head-mounted device). In some embodiments, the hand tracking device 140 is separate from the display generation component 120 (e.g., located in a separate housing or attached to a separate physical support structure).

[0084] In some embodiments, the hand tracking device 140 includes an image sensor 404 (e.g., one or more IR cameras, 3D cameras, depth cameras, and / or color cameras, etc.) that captures three-dimensional scene information, including at least a human user's hand 406. The image sensor 404 captures images of the hand at a sufficient resolution to enable the fingers and their respective positions to be distinguished. The image sensor 404 typically captures images of other parts of the user's body, or may also capture images of all parts of the body, and may have zoom capabilities or specialized sensors with increased magnification to capture images of the hand at a desired resolution. In some embodiments, the image sensor 404 also captures 2D color video images of the hand 406 and other elements of the scene. In some embodiments, the image sensor 404 is used in conjunction with other image sensors to capture the physical environment of the scene 105, or serves as an image sensor for capturing the physical environment of the scene 105. In some embodiments, the image sensor 404 is positioned relative to the user or the user's environment in such a way that the field of view of the image sensor 404, or a portion thereof, is used to define an interaction space in which hand movements captured by the image sensor are treated as input to the controller 110.

[0085] In some embodiments, the image sensor 404 outputs a sequence of frames containing 3D mapping data (and possibly color image data in addition) to the controller 110, which extracts high-level information from the mapping data. This high-level information is typically provided via an application program interface (API) to an application running on the controller, which in turn drives the display generation component 120. For example, a user can interact with the software running on the controller 110 by moving his hand 406 and changing his hand posture.

[0086] In some embodiments, the image sensor 404 projects a speckled pattern onto a scene containing the hand 406 and captures an image of the projected pattern. In some embodiments, the controller 110 calculates the 3D coordinates of points in the scene (including points on the surface of the user's hand) by triangulation based on the lateral offsets of the spots in the pattern. This approach is advantageous because it does not require the user to hold or wear any kind of beacon, sensor, or other marker. The method gives the depth coordinates of a point in the scene relative to a predetermined reference plane at a specific distance from the image sensor 404. In the present disclosure, it is assumed that the image sensor 404 defines an orthogonal set of x-axis, y-axis, and z-axis such that the depth coordinates of a point in the scene correspond to the z component measured by the image sensor. Alternatively, the image sensor 404 (e.g., a hand tracking device) may use other 3D mapping methods, such as stereo imaging or time-of-flight measurement, based on a single or multiple cameras or other types of sensors.

[0087] In some embodiments, the hand tracking device 140 captures and processes a time series of depth maps containing the user's hand as the user moves his hand (e.g., the entire hand or one or more fingers). Software running on the image sensor 404 and / or the processor in the controller 110 processes the 3D mapping data to extract image patch descriptors of the hand from these depth maps. The software can match these descriptors with image patch descriptors stored in the database 408 based on a previous learning process to estimate the pose of the hand in each frame. The pose typically includes the 3D positions of the user's hand joints and fingertips.

[0088] The software can also analyze the trajectory of the hand and / or finger over multiple frames in the sequence to recognize gestures. The pose estimation function described herein can be alternated with the motion tracking function so that the image block-based pose estimation is performed only once every two (or more) frames, and tracking is used to find the changes in pose that occur on the remaining frames. The pose, motion, and gesture information is provided to the application running on the controller 110 via the above-mentioned API. The program can, for example, move and modify the image presented on the display generation component 120 in response to the pose and / or gesture information, or perform other functions.

[0089] In some embodiments, gestures include air gestures. An air gesture is a gesture that is detected without the user touching an input element that is part of a device (e.g., computer system 101, one or more input devices 125, and / or hand tracking device 140) (or independent of an input element that is part of the device) and is based on detected movement of a part of the user's body (e.g., head, one or more arms, one or more hands, one or more fingers, and / or one or more legs) through air (including movement of the user's body relative to an absolute reference (e.g., the angle of the user's arm relative to the ground or the distance of the user's hand relative to the ground), movement relative to another part of the user's body (e.g., movement of the user's hand relative to the user's shoulder, movement of one of the user's hands relative to the user's other hand, and / or movement of a user's finger relative to another finger or part of the user's hand), and / or absolute movement of a part of the user's body (e.g., a tap gesture comprising moving a hand in a predetermined posture by a predetermined amount and / or speed, or a shake gesture comprising a predetermined speed or amount of rotation of a part of the user's body).

[0090] In some embodiments, according to some embodiments, the input gestures used in the various examples and embodiments described herein include air gestures for interacting with an XR environment (e.g., a virtual or mixed reality environment) performed by movement of a user's fingers relative to other fingers or parts of the user's hand. In some embodiments, an air gesture is a gesture that is detected without the user touching an input element that is part of the device (or independent of an input element that is part of the device) and is based on detected movement of a part of the user's body through the air (including movement of the user's body relative to an absolute reference (e.g., the angle of the user's arm relative to the ground or the distance of the user's hand relative to the ground), movement relative to another part of the user's body (e.g., movement of the user's hand relative to the user's shoulder, movement of one of the user's hands relative to the user's other hand, and / or movement of the user's fingers relative to another finger or part of the user's hand), and / or absolute movement of a part of the user's body (e.g., a tap gesture that includes moving the hand in a predetermined posture by a predetermined amount and / or speed, or a shake gesture that includes a predetermined speed or amount of rotation of a part of the user's body)).

[0091] In some embodiments where the input gesture is an in-air gesture (e.g., in the absence of physical contact with an input device that provides information to the computer system about which user interface element is the target of the user input, such as contact with a user interface element displayed on a touch screen, or contact with a mouse or trackpad to move a cursor to a user interface element), the gesture takes into account the user's attention (e.g., gaze) to determine the target of the user input (e.g., for direct input, as described below). Thus, in embodiments involving in-air gestures, for example, the input gesture is combined (e.g., simultaneously) with movement of the user's fingers and / or hand to detect attention (e.g., gaze) toward a user interface element to perform a pinch and / or tap input, as described below.

[0092] In some embodiments, an input gesture directed to a user interface object is performed directly or indirectly with reference to the user interface object. For example, user input is performed directly on the user interface object based on performing input with the user's hand at a location corresponding to the location of the user interface object in the three-dimensional environment (e.g., as determined based on the user's current viewpoint). In some embodiments, upon detecting the user's attention (e.g., gaze) to the user interface object, an input gesture is performed indirectly on the user interface object based on the user's hand not being at a location corresponding to the location of the user interface object in the three-dimensional environment while the user performs the input gesture. For example, for a direct input gesture, the user can direct the user's input to the user interface object by initiating a gesture at or near a location corresponding to the displayed location of the user interface object (e.g., within 0.5 cm, 1 cm, 5 cm, or a distance between 0 and 5 cm measured from the outer edge of the option or the center portion of the option). For an indirect input gesture, the user can direct the user's input to the user interface object by focusing on the user interface object (e.g., by gazing at the user interface object), and while focusing on the option, the user initiates an input gesture (e.g., at any location detectable by the computer system) (e.g., at a location that does not correspond to the displayed location of the user interface object).

[0093] In some embodiments, according to some embodiments, input gestures (e.g., air gestures) used in various examples and embodiments described herein include pinch input and tap input for interacting with a virtual or mixed reality environment. For example, the pinch input and tap input described below are performed as air gestures.

[0094] In some embodiments, a pinch input is part of an air gesture that includes one or more of: a pinch gesture, a long pinch gesture, a pinch and drag gesture, or a double pinch gesture. For example, a pinch gesture as an air gesture includes movement of two or more fingers of a hand to make contact with each other, i.e., optionally followed by an immediate (e.g., within 0 to 1 second) interruption of contact with each other. A long pinch gesture as an air gesture includes movement of two or more fingers of a hand in contact with each other for at least a threshold amount of time (e.g., at least 1 second) before an interruption of contact with each other is detected. For example, a long pinch gesture includes the user maintaining a pinch gesture (e.g., in which the two or more fingers are in contact), and the long pinch gesture continues until an interruption of contact between the two or more fingers is detected. In some embodiments, a double pinch gesture as an air gesture includes two (e.g., more) pinch inputs (e.g., performed by the same hand) that are detected consecutively with each other immediately (e.g., within a predefined time period). For example, the user performs a first pinch input (e.g., a pinch input or a long pinch input), releases the first pinch input (e.g., interrupts contact between two or more fingers), and performs a second pinch input within a predefined time period (e.g., within 1 second or within 2 seconds) after releasing the first pinch input.

[0095] In some embodiments, the pinch and drag gesture as an air gesture includes a pinch gesture (e.g., a pinch gesture or a long pinch gesture) performed in conjunction with (e.g., following) a drag input that changes the position of the user's hand from a first position (e.g., the start position of the drag) to a second position (e.g., the end position of the drag). In some embodiments, the user maintains the pinch gesture while performing the drag input, and releases the pinch gesture (e.g., spreads their two or more fingers apart) to end the drag gesture (e.g., at the second position). In some embodiments, the pinch input and the drag input are performed by the same hand (e.g., the user pinches two or more fingers to make contact with each other and moves the same hand to the second position in the air using the drag gesture). In some embodiments, a pinch input is performed by a first hand of a user, and a drag input is performed by a second hand of the user (e.g., the user's second hand moves in the air from a first position to a second position while the user continues the pinch input with the user's first hand. In some embodiments, the input gesture as an air gesture includes input performed using both hands of the user (e.g., pinch and / or tap input). For example, the input gesture includes two (e.g., or more) pinch inputs performed in conjunction with each other (e.g., simultaneously or within a predefined time period). For example, a first pinch gesture (e.g., a pinch input, a long pinch input, or a pinch and drag input) is performed using the first hand of the user, and a second pinch input is performed using another hand (e.g., the second of the user's two hands) in conjunction with the pinch input performed using the first hand. In some embodiments, movement between the two hands of the user (e.g., increasing and / or decreasing the distance or relative orientation between the two hands of the user).

[0096] In some embodiments, a tap input performed as an air gesture (e.g., pointing to a user interface element) includes movement of a user's finger toward the user interface element, movement of the user's hand toward the user interface element (optionally, extension of the user's finger toward the user interface element), a downward motion of the user's finger (e.g., mimicking a mouse click motion or a tap on a touch screen), or other predefined movement of the user's hand. In some embodiments, a tap input performed as an air gesture is detected based on movement characteristics of the finger or hand performing the tap gesture movement of the finger or hand, which is a movement of the finger or hand away from the user's viewpoint and / or toward an object that is the target of the tap input, followed by an end of the movement. In some embodiments, the end of the movement is detected based on a change in movement characteristics of the finger or hand performing the tap gesture (e.g., an end of movement away from the user's viewpoint and / or toward an object that is the target of the tap input, a reversal of the direction of movement of the finger or hand, and / or a reversal of the acceleration direction of the movement of the finger or hand).

[0097] In some embodiments, the user's attention is determined to be directed toward a portion of the three-dimensional environment based on detection of a gaze directed toward the portion of the three-dimensional environment (optionally, no other conditions are required). In some embodiments, the user's attention is determined to be directed toward a portion of the three-dimensional environment based on detection of a gaze directed toward the portion of the three-dimensional environment using one or more additional conditions, such as requiring the gaze to be directed toward the portion of the three-dimensional environment for at least a threshold duration (e.g., a dwell duration) and / or requiring the gaze to be directed toward the portion of the three-dimensional environment when the user's viewpoint is within a distance threshold from the portion of the three-dimensional environment, so that the device determines that the user's attention is directed toward the portion of the three-dimensional environment, wherein if one of these additional conditions is not met, the device determines that the attention is not directed toward the portion of the three-dimensional environment to which the gaze is directed (e.g., until the one or more additional conditions are met).

[0098] In some embodiments, the detection of a ready state configuration of a user or a portion of a user is detected by a computer system. The detection of the ready state configuration of a hand is used by the computer system as an indication that the user may be preparing to interact with the computer system using one or more air gesture inputs performed by the hand (e.g., a pinch, tap, pinch and drag, double pinch, long pinch, or other air gestures described herein). For example, the ready state of the hand is determined based on whether the hand has a predetermined hand shape (e.g., a pre-pinch shape with the thumb and one or more fingers extended and spaced apart in preparation for a pinch or grab gesture, or a pre-tap with one or more fingers extended and the palm facing away from the user), based on whether the hand is in a predetermined position relative to the user's viewpoint (e.g., below the user's head and above the user's waist and extending at least 15 cm, 20 cm, 25 cm, 30 cm, or 50 cm from the body), and / or based on whether the hand has moved in a particular manner (e.g., toward an area in front of the user above the user's waist and below the user's head, or away from the user's body or legs). In some embodiments, the ready state is used to determine whether an interactive element of a user interface responds to attention (e.g., gaze) input.

[0099] In some embodiments, the software may be downloaded to the controller 110 in electronic form, for example, over a network, or may alternatively be provided on tangible, non-transitory media such as optical, magnetic, or electronic memory media. In some embodiments, the database 408 is also stored in memory associated with the controller 110. Alternatively or additionally, some or all of the described functions of the computer may be implemented in dedicated hardware, such as a custom or semi-custom integrated circuit or a programmable digital signal processor (DSP). Although in Figure 4, but some or all of the processing functions of the controller may be performed by a suitable microprocessor and software or by dedicated circuitry within the housing of the image sensor 404 (e.g., a hand tracking device) or other device associated with the image sensor 404. In some embodiments, at least some of these processing functions may be performed by a suitable processor integrated with the display generation component 120 (e.g., in a television receiver, handheld device, or head-mounted device) or integrated with any other suitable computerized device (such as a game console or media player). The sensing functions of the image sensor 404 may also be integrated into a computer or other computerized device to be controlled by the sensor output.

[0100] Figure 4 Also included is a schematic diagram of a depth map 410 captured by the image sensor 404 according to some embodiments. As described above, the depth map includes a matrix of pixels with corresponding depth values. Pixels 412 corresponding to the hand 406 have been segmented from the background and wrist in the map. The brightness of each pixel within the depth map 410 is inversely proportional to its depth value (i.e., the measured z distance from the image sensor 404), where shades of gray become darker with increasing depth. The controller 110 processes these depth values ​​in order to identify and segment components of the image (i.e., a group of adjacent pixels) that have characteristics of a human hand. These characteristics may include, for example, overall size, shape, and motion from frame to frame in the depth map sequence.

[0101] Figure 4 Also schematically shown is a hand skeleton 414 that the controller 110 ultimately extracts from the depth map 410 of the hand 406 according to some embodiments. Figure 4 , a hand skeleton 414 is superimposed on a hand background 416 that has been segmented from the original depth map. In some embodiments, key feature points of the hand and, optionally, on the wrist or arm connected to the hand (e.g., points corresponding to knuckles, finger tips, the center of the palm, the end of the hand connected to the wrist, etc.) are identified and located on the hand skeleton 414. In some embodiments, the controller 110 uses the position and movement of these key feature points over multiple image frames to determine a gesture performed by the hand or the current state of the hand according to some embodiments.

[0102] Figure 5 An eye tracking device 130 ( Figure 1 ). In some embodiments, the eye tracking device 130 is composed of an eye tracking unit 243 ( Figure 2) controls to track the position and movement of the user's gaze relative to the scene 105 or relative to the XR content displayed via the display generation component 120. In some embodiments, the eye tracking device 130 is integrated with the display generation component 120. For example, in some embodiments, when the display generation component 120 is a head-mounted device (such as a headset, helmet, goggles, or glasses) or a handheld device placed in a wearable frame, the head-mounted device includes both components for generating XR content for the user to view and components for tracking the user's gaze relative to the XR content. In some embodiments, the eye tracking device 130 is separate from the display generation component 120. For example, when the display generation component is a handheld device or an XR room, the eye tracking device 130 is optionally a device separate from the handheld device or the XR room. In some embodiments, the eye tracking device 130 is a head-mounted device or a part of the head-mounted device. In some embodiments, the head-mounted eye tracking device 130 is optionally used in conjunction with a display generation component that is also head-mounted or a display generation component that is not head-mounted. In some embodiments, the eye tracking device 130 is not a head-mounted device and is optionally used in conjunction with a head-mounted display generation component. In some embodiments, the eye tracking device 130 is not a head-mounted device and is optionally part of a non-head-mounted display generation component.

[0103] In some embodiments, the display generation component 120 uses a display mechanism (e.g., a left near-eye display panel and a right near-eye display panel) to display a frame including a left image and a right image in front of the user's eyes, thereby providing the user with a 3D virtual view. For example, the head-mounted display generation component may include a left optical lens and a right optical lens (referred to herein as eye lenses) located between the display and the user's eyes. In some embodiments, the display generation component may include or be coupled to one or more external cameras that capture video of the user's environment for display. In some embodiments, the head-mounted display generation component may have a transparent or translucent display and display virtual objects on the transparent or translucent display, through which the user can directly view the physical environment. In some embodiments, the display generation component projects the virtual objects into the physical environment. The virtual objects may, for example, be projected onto a physical surface or projected as a hologram, so that the individual using the system observes the virtual objects superimposed on the physical environment. In this case, separate display panels and image frames for the left and right eyes may not be required.

[0104] like Figure 5As shown in , in some embodiments, the eye tracking device 130 (e.g., a gaze tracking device) includes at least one eye tracking camera (e.g., an infrared (IR) or near infrared (NIR) camera), and an illumination source (e.g., an IR or NIR light source, such as an array or ring of LEDs) that emits light (e.g., IR or NIR light) toward the user's eyes. The eye tracking camera can be pointed at the user's eyes to receive IR or NIR light that the light source reflects directly from the eyes, or alternatively can be pointed at "hot" mirrors located between the user's eyes and the display panel, which reflect IR or NIR light from the eyes toward the eye tracking camera while allowing visible light to pass through. The eye tracking device 130 optionally captures images of the user's eyes (e.g., as a video stream captured at 60-120 frames per second (fps)), analyzes these images to generate gaze tracking information, and transmits the gaze tracking information to the controller 110. In some embodiments, both eyes of the user are tracked separately by corresponding eye tracking cameras and illumination sources. In some embodiments, only one eye of the user is tracked by corresponding eye tracking camera and illumination source.

[0105] In some embodiments, the eye tracking device 130 is calibrated using a device-specific calibration process to determine the parameters of the eye tracking device for a specific operating environment 100, such as the 3D geometry and parameters of the LED, camera, thermal mirror (if present), eye lens, and display screen. The device-specific calibration process can be performed at a factory or another facility before the AR / VR equipment is delivered to the end user. The device-specific calibration process can be an automatic calibration process or a manual calibration process. According to some embodiments, the user-specific calibration process can include an estimation of eye parameters of a specific user, such as pupil position, fovea position, optical axis, visual axis, eye spacing, etc. According to some embodiments, once the device-specific parameters and user-specific parameters are determined for the eye tracking device 130, a flash-assisted method can be used to process the images captured by the eye tracking camera to determine the current visual axis and the user's gaze point relative to the display.

[0106] like Figure 5As shown in FIG, an eye tracking device 130 (e.g., 130A or 130B) includes an eye lens 520 and a gaze tracking system that includes at least one eye tracking camera 540 (e.g., an infrared (IR) or near infrared (NIR) camera) positioned on the side of the user's face on which eye tracking is performed, and an illumination source 530 (e.g., an IR or NIR light source, such as an array or ring of NIR light emitting diodes (LEDs)) that emits light (e.g., IR or NIR light) toward the user's eye 592. The eye tracking camera 540 may be directed toward a mirror 550 (which reflects the IR or NIR light from the eye 592 while allowing visible light to pass) located between the user's eye 592 and a display 510 (e.g., a left display panel or a right display panel of a head-mounted display, or a display of a handheld device, a projector, etc.). Figure 5 ), or alternatively may be directed toward the user's eye 592 to receive reflected IR or NIR light from the eye 592 (e.g., as shown in the top portion of Figure 5 (as shown in the bottom portion of the ).

[0107] In some embodiments, the controller 110 renders AR or VR frames 562 (e.g., left and right frames for left and right display panels) and provides the frames 562 to the display 510. The controller 110 uses the gaze tracking input 542 from the eye tracking camera 540 for various purposes, such as for processing the frames 562 for display. The controller 110 optionally estimates the user's gaze point on the display 510 based on the gaze tracking input 542 obtained from the eye tracking camera 540 using a flash-assisted method or other suitable method. The gaze point estimated from the gaze tracking input 542 is optionally used to determine the direction the user is currently looking.

[0108] The following describes several possible use cases for the user's current gaze direction and is not intended to be limiting. As an example use case, the controller 110 may render virtual content differently based on the determined direction of the user's gaze. For example, the controller 110 may generate virtual content at a higher resolution in the foveal region determined based on the user's current gaze direction than in the peripheral region. As another example, the controller may position or move virtual content within the view based at least in part on the user's current gaze direction. As another example, the controller may display specific virtual content within the view based at least in part on the user's current gaze direction. As another example use case in an AR application, the controller 110 may direct an external camera used to capture the physical environment of an XR experience to focus in the determined direction. The external camera's autofocus mechanism may then focus on an object or surface in the environment on the display 510 that the user is currently looking at. As another example use case, the eye lens 520 may be a focusable lens, and the controller may use gaze tracking information to adjust the focus of the eye lens 520 so that the virtual object the user is currently looking at has the appropriate vergence to match the convergence of the user's eye 592. The controller 110 can use the gaze tracking information to guide the eye lens 520 to adjust the focus so that nearby objects that the user is looking at appear at the correct distance.

[0109] In some embodiments, the eye tracking device is part of a head-mounted device that includes a display (e.g., display 510), two eye lenses (e.g., eye lenses 520), an eye tracking camera (e.g., eye tracking camera 540), and a light source (e.g., light source 530 (e.g., IR or NIR LED)). The light source emits light (e.g., IR or NIR light) toward the user's eyes 592. In some embodiments, the light sources may be arranged in a ring or circle around each of the lenses, such as Figure 5 In some embodiments, for example, eight light sources 530 (e.g., LEDs) are arranged around each lens 520. However, more or fewer light sources 530 can be used, and other arrangements and positions of the light sources 530 can be used.

[0110] In some embodiments, the display 510 emits light in the visible range and does not emit light in the IR or NIR range, and therefore does not introduce noise into the gaze tracking system. It should be noted that the positions and angles of the eye tracking cameras 540 are given by way of example and are not intended to be limiting. In some embodiments, a single eye tracking camera 540 is located on each side of the user's face. In some embodiments, two or more NIR cameras 540 may be used on each side of the user's face. In some embodiments, a camera 540 with a wider field of view (FOV) and a camera 540 with a narrower FOV may be used on each side of the user's face. In some embodiments, a camera 540 operating at one wavelength (e.g., 850 nm) and a camera 540 operating at a different wavelength (e.g., 940 nm) may be used on each side of the user's face.

[0111] like Figure 5 Embodiments of the gaze tracking system shown in can, for example, be used in computer-generated reality, virtual reality, and / or mixed reality applications to provide a computer-generated reality, virtual reality, augmented reality, and / or augmented virtual experience to a user.

[0112] Figure 6A FIGURE 1 illustrates a flash-assisted gaze tracking pipeline according to some embodiments. In some embodiments, the gaze tracking pipeline is implemented by a flash-assisted gaze tracking system (e.g., Figure 1 and Figure 5 The flash-assisted gaze tracking system can maintain a tracking state. Initially, the tracking state is off or "no." When in the tracking state, the flash-assisted gaze tracking system uses previous information from previous frames when analyzing the current frame to track the pupil outline and glint in the current frame. When not in the tracking state, the flash-assisted gaze tracking system attempts to detect the pupil and glint in the current frame, and if successful, initializes the tracking state to "yes" and continues to the next frame in the tracking state.

[0113] like Figure 6A As shown in , the gaze tracking camera can capture left and right images of the user's left and right eyes. The captured images are then input to the gaze tracking pipeline for processing starting at 610. As indicated by the arrow returning to element 600, the gaze tracking system can continue to capture images of the user's eyes at a rate of, for example, 60 to 120 frames per second. In some embodiments, each set of captured images can be input to the pipeline for processing. However, in some embodiments or under some conditions, not all captured frames are processed by the pipeline.

[0114] At 610, for the currently captured image, if the tracking status is yes, the method proceeds to element 640. At 610, if the tracking status is no, the image is analyzed to detect the user's pupil and glint in the image, as indicated at 620. At 630, if the pupil and glint are successfully detected, the method proceeds to element 640. Otherwise, the method returns to element 610 to process the next image of the user's eye.

[0115] At 640, if proceeding from element 610, the current frame is analyzed to track the pupil and glint based in part on previous information from the previous frame. At 640, if proceeding from element 630, the tracking state is initialized based on the pupil and glint detected in the current frame. The processing result at element 640 is checked to verify that the tracking or detection result can be trusted. For example, the result can be checked to determine whether the pupil and a sufficient number of glints were successfully tracked or detected in the current frame to perform gaze estimation. At 650, if the result is not likely to be trusted, at element 660, the tracking state is set to no, and the method returns to element 610 to process the next image of the user's eye. At 650, if the result is trustworthy, the method proceeds to element 670. At 670, the tracking state is set to YES (if not already yes), and the pupil and glint information is passed to element 680 to estimate the user's gaze point.

[0116] Figure 6A This is intended to be used as an example of an eye tracking technology that may be used for a particular implementation. As one of ordinary skill in the art will appreciate, according to various embodiments, other eye tracking technologies currently existing or developed in the future may be used in place of or in combination with the flash-assisted eye tracking technology described herein in the computer system 101 for providing an XR experience to a user.

[0117] In some embodiments, the captured portion of the real-world environment 602 is used to provide an XR experience to the user, such as a mixed reality environment in which one or more virtual objects are superimposed on top of the representation of the real-world environment 602.

[0118] Figure 6B An exemplary environment of an electronic device 101 providing an XR experience according to some embodiments is shown. Figure 6B In FIG, the real world environment 602 includes the electronic device 101, the user 608 and the real world objects (e.g., table 604). Figure 6BAs shown, the electronic device 101 is optionally mounted on a tripod or otherwise fixed in the real-world environment 602 so that one or more hands of the user 608 are free (e.g., the user 608 is optionally not holding the device 101 with one or more hands). As described above, the device 101 optionally has one or more sets of sensors positioned on different sides of the device 101. For example, the device 101 optionally includes a sensor group 612-1 and a sensor group 612-2, which are respectively located on the "back" side and the "front" side of the device 101 (e.g., they are capable of capturing information from the corresponding sides of the device 101). As used herein, the front side of the device 101 is the side facing the user 608, and the back side of the device 101 is the side facing away from the user 608.

[0119] In some embodiments, sensor group 612-2 includes an eye tracking unit (e.g., Figure 2 The eye tracking unit 245 of device 101 includes one or more sensors for tracking the eyes and / or gaze of the user, such that the eye tracking unit can "look" at user 608 and track the eyes of user 608 in the manner previously described. In some embodiments, the eye tracking unit of device 101 can capture the movement, orientation, and / or gaze of the eyes of user 608 and treat the movement, orientation, and / or gaze as input.

[0120] In some embodiments, sensor group 612-1 includes a hand tracking unit (e.g., as described above with reference to Figure 2 The hand tracking unit 243) can track one or more hands of the user 608 held on the "back" side of the device 101, such as Figure 6B In some embodiments, a hand tracking unit is optionally included in sensor group 612-2, so that user 608 can additionally or alternatively hold one or more hands on the "front" side of device 101 while device 101 tracks the position of one or more hands. As described above, the hand tracking unit of device 101 can capture the movement, position, and / or gestures of one or more hands of user 608 and treat the movement, position, and / or gestures as input.

[0121] In some embodiments, sensor group 612-1 optionally includes one or more sensors configured to capture images of the real-world environment 602 including table 604 (e.g., such as described above with reference to FIG. Figure 4As described above, device 101 is capable of capturing an image of a portion (e.g., some or all) of real-world environment 602 and presenting the captured portion of real-world environment 602 to a user via one or more display generation components of device 101 (e.g., a display of device 101, which is optionally located on a user-facing side of device 101, opposite the side of device 101 that faces the captured portion of real-world environment 602).

[0122] In some embodiments, the captured portion of the real-world environment 602 is used to provide an XR experience to the user, such as a mixed reality environment in which one or more virtual objects are superimposed on top of the representation of the real-world environment 602.

[0123] Thus, the description herein describes some embodiments of a three-dimensional environment (e.g., an XR environment) that includes representations of real-world objects and representations of virtual objects. For example, the three-dimensional environment optionally includes a representation of a table present in a physical environment, which is captured and displayed in the three-dimensional environment (e.g., actively displayed via a camera and display of a computer system or passively displayed via a transparent or translucent display of the computer system). As previously described, the three-dimensional environment is optionally a mixed reality system, wherein the three-dimensional environment is based on a physical environment captured by one or more sensors of the computer system and displayed via a display generation component. As a mixed reality system, the computer system is optionally capable of selectively displaying portions and / or objects of the physical environment so that the corresponding portions and / or objects of the physical environment appear as if they exist in the three-dimensional environment displayed by the computer system. Similarly, the computer system is optionally capable of displaying virtual objects in the three-dimensional environment so that it appears as if the virtual objects exist in the real world (e.g., a physical environment) by placing the virtual objects at corresponding locations in the three-dimensional environment that have corresponding locations in the real world. For example, the computer system optionally displays a vase so that the vase appears as if a real vase is placed on top of a table in the physical environment. In some embodiments, a corresponding location in the three-dimensional environment has a corresponding location in the physical environment. Thus, when a computer system is described as displaying a virtual object at a corresponding location relative to a physical object (e.g., such as at a location at or near a user's hand or at a location at or near a physical table), the computer system displays the virtual object at a particular location in the three-dimensional environment such that it appears as if the virtual object is at or near the physical object in the physical environment (e.g., the virtual object is displayed at a location in the three-dimensional environment that corresponds to the location in the physical environment where the virtual object would be displayed if it were the real object at that particular location).

[0124] In some embodiments, real-world objects present in the physical environment that are displayed in the three-dimensional environment (e.g., and / or visible via a display generation component) can interact with virtual objects that exist only in the three-dimensional environment. For example, the three-dimensional environment may include a table and a vase placed on top of the table, where the table is a view (or representation) of a physical table in the physical environment and the vase is a virtual object.

[0125] Similarly, the user can optionally use one or both hands to interact with virtual objects in the three-dimensional environment as if the virtual objects were real objects in the physical environment. For example, as described above, one or more sensors of the computer system can optionally capture one or more of the user's hands and display representations of the user's hands in the three-dimensional environment (e.g., in a manner similar to displaying real-world objects in the three-dimensional environment described above), or in some embodiments, the user's hands can be visible via the display generation component due to the transparency / translucency of a portion of the user interface being displayed by the display generation component, or due to the projection of the user interface onto a transparent / translucent surface or onto the user's eyes or into the field of view of the user's eyes, via the ability to see the physical environment through the user interface. Thus, in some embodiments, the user's hands are displayed at corresponding locations in the three-dimensional environment and are viewed as if they were objects in the three-dimensional environment, and these objects can interact with virtual objects in the three-dimensional environment as if these virtual objects were physical objects in the physical environment. In some embodiments, the computer system can update the display of the representations of the user's hands in the three-dimensional environment in conjunction with the movement of the user's hands in the physical environment.

[0126] In some embodiments described below, the computer system is optionally capable of determining an "effective" distance between a physical object in the physical world and a virtual object in a three-dimensional environment, for example, to determine whether the physical object is directly interacting with the virtual object (e.g., whether the hand is touching, grabbing, holding, etc., or is within a threshold distance of the virtual object). For example, a hand directly interacting with a virtual object optionally includes one or more of the following: a finger of a hand pressing a virtual button, a user's hand grabbing a virtual vase, two fingers of a user's hand coming together and pinching / holding the user interface of an application, and performing any other type of interaction described herein. For example, when determining whether a user is interacting with a virtual object and / or how the user is interacting with the virtual object, the computer system optionally determines the distance between the user's hand and the virtual object. In some embodiments, the computer system determines the distance between the user's hand and the virtual object by determining the distance between the position of the hand in the three-dimensional environment and the position of the virtual object of interest in the three-dimensional environment. For example, the user's hand(s) are positioned at a specific location in the physical world, and the computer system optionally captures the hand(s) and displays the hand(s) at a specific corresponding location in the three-dimensional environment (e.g., the location at which the hand(s) would be displayed in the three-dimensional environment if the hand(s) were virtual hands rather than physical hands). The location of the hand(s) in the three-dimensional environment is optionally compared to the location of the virtual object(s) of interest in the three-dimensional environment to determine the distance between the user's hand(s) and the virtual object(s). In some embodiments, the computer system optionally determines the distance between the physical object(s) and the virtual object(s) by comparing the locations in the physical world (e.g., rather than comparing the locations in the three-dimensional environment). For example, when determining the distance between the user's hand(s) and the virtual object(s), the computer system optionally determines the corresponding location of the virtual object(s) in the physical world (e.g., the location at which the virtual object(s) would be located in the physical world if the virtual object(s) were physical objects rather than virtual objects), and then determines the distance between the corresponding physical location and the user's hand(s). In some embodiments, the same technique is optionally used to determine the distance between any physical object and any virtual object. Thus, as described herein, when determining whether a physical object is in contact with a virtual object or whether a physical object is within a threshold distance of a virtual object, the computer system optionally executes any of the techniques described above to map the position of the physical object to a three-dimensional environment and / or map the position of the virtual object to the physical environment.

[0127] In some embodiments, the same or similar techniques are used to determine where and what the user's gaze is directed to, and / or where and what the physical stylus held by the user is pointed to. For example, if the user's gaze is directed to a particular location in the physical environment, the computer system optionally determines a corresponding location in the three-dimensional environment (e.g., a virtual location of the gaze), and if a virtual object is located at the corresponding virtual location, the computer system optionally determines that the user's gaze is directed to the virtual object. Similarly, the computer system is optionally able to determine the direction in which the stylus is pointing in the physical environment based on the orientation of the physical stylus. In some embodiments, based on this determination, the computer system determines a corresponding virtual location in the three-dimensional environment that corresponds to the location in the physical environment that the stylus is pointing to, and optionally determines that the stylus is pointing to the corresponding virtual location in the three-dimensional environment.

[0128] Similarly, the embodiments described herein may refer to the position of a user (e.g., a user of a computer system) in a three-dimensional environment and / or the position of a computer system in a three-dimensional environment. In some embodiments, the user of the computer system is holding, wearing, or otherwise located at or near the computer system. Thus, in some embodiments, the position of the computer system is used as a proxy for the position of the user. In some embodiments, the position of the computer system and / or the user in the physical environment corresponds to a corresponding position in the three-dimensional environment. For example, the position of the computer system will be a position in the physical environment (and its corresponding position in the three-dimensional environment) that, if the user were standing at that position, facing the corresponding portion of the physical environment visible via the display generation component, would be visible to the user from that position in the physical environment in the same position, orientation, and / or size (e.g., in absolute terms and / or relative to each other) as the objects displayed in the three-dimensional environment by the display generation component of the computer system or visible in the three-dimensional environment via the display generation component. Similarly, if the virtual objects displayed in the three-dimensional environment are physical objects in the physical environment (e.g., physical objects placed at the same location in the physical environment as the virtual objects are located in the three-dimensional environment, and physical objects that have the same size and orientation in the physical environment as they do in the three-dimensional environment), then the position of the computer system and / or user is the position from which the user would see the virtual objects in the physical environment at the same location, orientation, and / or size (e.g., in an absolute sense and / or relative to each other and real-world objects) as the virtual objects displayed in the three-dimensional environment by the display generation components of the computer system.

[0129] In this disclosure, various input methods are described with respect to interaction with a computer system. When one input device or input method is used to provide an example, and another input device or input method is used to provide another example, it should be understood that each example is compatible with and optionally utilizes the input device or input method described with respect to the other example. Similarly, various output methods are described with respect to interaction with a computer system. When one output device or output method is used to provide an example, and another output device or output method is used to provide another example, it should be understood that each example is compatible with and optionally utilizes the output device or output method described with respect to the other example. Similarly, various methods are described with respect to interaction with a virtual environment or a mixed reality environment through a computer system. When an example is provided using interaction with a virtual environment, and another example is provided using a mixed reality environment, it should be understood that each example is compatible with and optionally utilizes the methods described with respect to the other example. Therefore, the present disclosure discloses embodiments that are combinations of features of multiple examples, without exhaustively listing all features of the embodiments in the description of each exemplary embodiment.

[0130] User interface and associated processes

[0131] Attention is now directed to embodiments of a user interface ("UI") and associated processes that may be implemented on a computer system (such as a portable multifunction device or a head-mounted device) having display generating components, one or more input devices, and (optionally) one or more cameras.

[0132] 7A to 7D Examples of electronic devices that facilitate cursor interaction in different areas of a three-dimensional environment are shown according to some embodiments.

[0133] Figure 7A The electronic device 101 is shown via a display generation component (eg, Figure 1 The display generation component 120) displays the three-dimensional environment 702 from the viewpoint of the user of the electronic device 101. Figure 1 As described in FIG6 , the electronic device 101 optionally includes a display generation component (eg, a touch screen) and a plurality of image sensors (eg, Figure 3The image sensor 314 optionally includes one or more of the following: a visible light camera; an infrared camera; a depth sensor; or any other sensor that the electronic device 101 can use to capture one or more images of the user or a portion of the user (e.g., one or more hands of the user) when the user interacts with the electronic device 101. In some embodiments, the user interface shown and described below may also be implemented on a head-mounted display that includes a display generation component that displays the user interface or three-dimensional environment to the user, as well as sensors that detect movement of the physical environment and / or the user's hands (e.g., external sensors facing outward from the user) and / or sensors that detect the user's gaze (e.g., internal sensors facing inward toward the user's face).

[0134] like Figure 7A As shown, device 101 captures one or more images of the physical environment (e.g., operating environment 100) surrounding device 101 (including one or more objects in the physical environment surrounding device 101). In some embodiments, device 101 displays a representation of the physical environment in a three-dimensional environment 702. For example, three-dimensional environment 702 includes a representation 724 of a sofa, which is optionally a representation of a physical sofa in the physical environment; three-dimensional environment 702 also includes a representation 722 of a table, which is optionally a representation of a physical table in the physical environment. Three-dimensional environment 702 also includes representations of the physical floor, ceiling, and back and side walls of the room in which device 101 is located.

[0135] exist Figure 7A , the three-dimensional environment 702 also includes virtual objects 704a and 704b in different areas of the three-dimensional environment 702. The virtual objects 704a and 704b are, optionally, one or more of user interfaces of applications (e.g., a messaging user interface, a content browsing user interface, etc.), three-dimensional objects (e.g., a virtual clock, a virtual ball, a virtual car, etc.), content representations (e.g., representations of photos, videos, movies, music, etc.), or any other elements displayed by the device 101 that are not included in the physical environment of the device 101. Figure 7A In FIG, virtual object 704a is a two-dimensional object, but the examples described herein are similarly applicable to three-dimensional objects.

[0136] In some embodiments, the device 101 provides cursor input and / or interaction with the three-dimensional environment 702 (e.g., selecting content or selectable options to perform an action, creating a marker in the three-dimensional environment 702, etc.). The device 101 is optionally capable of detecting input for controlling the cursor in the three-dimensional environment 702 in various ways. For example, the device 101 optionally communicates with a physical trackpad or touch-sensitive surface 710 in the physical environment of the device 101. Contacts detected on the trackpad 710 (e.g., from one or more fingers) and movement of these contacts on the trackpad 710 optionally cause a cursor displayed by the device 101 to move in the three-dimensional environment 702 based on such input, as will be described in more detail later. Additionally or alternatively, gestures, shapes, and / or movements of the user's hand of the device 101 in empty space in the physical environment are optionally detected by the device 101 (e.g., using the sensor 314) and optionally cause a cursor displayed by the device 101 to move in the three-dimensional environment 702 based on such input, as will be described in more detail later.

[0137] exist Figure 7A , hands 703a, 703b, and 703c are shown as providing input to device 101. It should be understood that although 7A to 7D Multiple hands and multiple corresponding inputs are shown, but such hands and inputs need not be detected simultaneously by device 101; rather, in some embodiments, device 101 independently responds to such hands and / or inputs in response to independently detecting the hands and / or inputs shown and described.

[0138] For example, in Figure 7A , the device 101 detects the user's gaze 708 directed toward the object 704a and the finger of the hand 703a in contact with the touchpad 710. In response, the device 101 displays a cursor 706a within the object 704a. The cursor 706a within the object 704a is optionally used to interact with content, elements, etc. within the object 704a. In some embodiments, the cursor 706a is confined to the object 704a and cannot be moved outside of the object 704a, even if movement input from the hand 703a is detected that corresponds to movement of the cursor 706a outside of the object 704a. Figure 7A , the device 101 has detected movement of the finger of the hand 703a in contact with the touchpad 710 in an upward direction and a rightward direction; in response, the device 101 has moved the cursor 706a upward and to the right according to the movement of the finger of the hand 703a in contact with the touchpad 710.

[0139] Figure 7AAlso shown is device 101 detecting a user's gaze 708 directed toward object 704a when hand 703b is within a threshold distance (e.g., 0.1, 0.3, 0.5, 1, 3, 5, 10, 20, 30, or 50 cm) of object 704a and hand 703b is in a predefined posture. For example, the predefined posture is a posture in which the index finger of hand 703b extends away from the palm of hand 703b while the other fingers of hand 703b curl inward toward the palm of hand 703b (e.g., hand 703b is in a pointing hand shape). In response to detecting the above, device 101 displays cursor 706a within object 704a. In some embodiments, cursor 706a is confined to object 704a and cannot be moved outside of object 704a, even if movement input is detected from hand 703b that corresponds to movement of cursor 706a outside of object 704a. Figure 7A , device 101 has detected movement of hand 703b in an upward and rightward direction while in a pointing hand shape; in response, device 101 moves cursor 706a upward and rightward according to the movement of hand 703b. In addition, the placement of cursor 706a relative to hand 703b optionally causes device 101 to display cursor 706a at a location corresponding to the tip of the index finger of hand 703b (e.g., the finger extending away from the palm of hand 703b), as shown in FIG. Figure 7A As hand 703b moves in space, cursor 706a optionally follows the position of the index fingertip of hand 703b.

[0140] Figure 7A Also shown is device 101 detecting a user's gaze 708 directed toward object 704a while hand 703c is further than a threshold distance from object 704a and hand 703b is in a predefined pose. For example, the predefined pose is a pinch front hand shape in which the index finger of hand 703c and the thumb of hand 703c are curled toward each other, and the tips of the index fingers and thumbs are within a threshold distance of touch (e.g., 0.1, 0.3, 0.5, 1, 2, 3, 5, 10, or 20 cm), but not touching. In response to detecting the foregoing, device 101 displays a cursor 706a within object 704a. In some embodiments, cursor 706a is confined to object 704a and cannot be moved outside of object 704a, even if movement input is detected from hand 703c corresponding to movement of cursor 706a outside of object 704a. Figure 7A, device 101 has detected movement of hand 703c in an upward and rightward direction while in a pre-pinch hand shape; in response, device 101 moves cursor 706a upward and rightward according to the movement of hand 703c. In addition, the placement of cursor 706a relative to hand 703c optionally causes device 101 to display cursor 706a at a position corresponding to position 712 between the tip of the index finger of hand 703c and the tip of the thumb of hand 703c, as shown in FIG. Figure 7A . Position 712 is optionally the pinch position of the index fingertips and thumbtips (e.g., the position where the index finger and thumb will come together and touch once hand 703c performs the pinch gesture). Cursor 706a is optionally displayed in object 704a as a perpendicular projection 714 of position 712 on the surface of object 704a. As hand 703c moves in space, cursor 706a optionally follows position 712.

[0141] When pointing to Figure 7A After one or more inputs to object 704a in Figure 7B In the figure, device 101 detects input directed to a different area of ​​3D environment 702, other than the area including object 704a. For example, device 101 detects input directed to the area including object 704b. For example, in figure 704b, the device detects a user's gaze 708 directed at object 704b and / or input from hands 703a and / or 703c directed at object 704b. In response, device 101 stops displaying cursor 706a within object 704a. Instead, device 101 displays an indication 707a at the last location of cursor 706a within object 704a. Indication 707a may optionally be an artifact version of cursor 706a and / or an outline of cursor 706a or other indication. Indication 707a optionally indicates the location at which cursor 706a will be redisplayed within object 704a when device 101 again detects input directed to object 704a and / or the area including object 704a, as will be described in more detail later.

[0142] The input pointing to object 704b is optionally a different kind of input. For example, hand 703c optionally provides cursor input to object 704b (e.g., such as a reference Figure 7A 703a, 703b, and / or 703c in the object 704b), which optionally causes the device 101 to display a cursor 706b in the object 704b, which is optionally a different cursor from the cursor 706a. The cursor 706b within the object 704b is optionally used to interact with content, elements, etc. within the object 704b. In some embodiments, the cursor 706b is constrained to the object 704b and cannot be moved outside the object 704b, even if movement input is detected from the hand 703c corresponding to movement of the cursor 706b outside the object 704b. Figure 7B , device 101 is detecting movement of hand 703c in a rightward direction (eg, in a pre-pinch hand shape, a pointing hand shape, etc.); in response, device 101 moves cursor 706b to the right according to the movement of hand 703c.

[0143] For example, hand 703a may be moved Figure 7B The object 704b in the provides a button selection input. For example, the element 716 in the object 704b is optionally a button element that is selected when the button element is pushed away from the object 704b sufficiently to make contact with the object 704b. Figure 7A , button 716 is optionally flush with (e.g., not visually separated from) object 704b. Figure 7B , in response to detecting the user's gaze 708 directed toward button 716 (or object 704b) and hand 703a being in the previously described pre-pinch hand shape (e.g., if hand 703a is farther from button 716 than the threshold distance described above) or the previously described pointing hand shape (e.g., if hand 703a is closer to button 716 than the threshold distance described above), device 101 visually separates button 716 from object 704b. Optionally, while gaze 708 remains directed toward button 716, in response to detecting movement of hand 703a toward button 716 and / or object 704b, button 716 is optionally pushed away from object 704b. For example, sufficient movement of hand 703a in the pointing hand shape to move button 716 into contact with object 704b optionally causes button 716 to become selected. For another example, when the user's gaze 708 is directed at the button 716, the hand 703a is detected to change from the pre-pinch hand shape to the pinch hand shape (for example, the index finger tip and the thumb finger tip of the hand 703a are detected to be together and touching), and then the hand 703 in the pinch hand shape is fully moved to move the button 716 into contact with the object 704b, optionally causing the button 716 to become selected.

[0144] When pointing to Figure 7B After one or more inputs to object 704b in Figure 7C , device 101 detects cursor input directed to an area including object 704a; for example, device 101 detects user gaze 708 directed to object 704a and / or a finger of hand 703a in contact with touchpad 710. Figure 7C Cursor input of a touch pad 710 is shown, but it should be understood that Figure 7C The cursor input is optionally referenced Figure 7A In response to the cursor input pointing to object 704a, device 101 redisplays cursor 706a in object 704a and stops displaying indication 707a in object 704a, as shown in FIG. Figure 7CIn addition, in some embodiments, the device 101 stops displaying the cursor 706b in the object 704b and displays an indication 707b of the cursor 706b in the object 704b at the last position of the cursor 706b in the object 704b. The indication 707b optionally has one or more of the characteristics of the indication 707a described previously.

[0145] In some embodiments, the device 101 redisplays the cursor 706a at the last position of the cursor 706a in the object 704a (e.g., the position of the display indicator 707a), as shown. Figure 7C If the last cursor input (e.g., reference Figure 7A The end of the cursor input described) Figure 7C If the time elapsed between the start of the cursor input pointing to the object 704a and the start of the cursor input pointing to the object 704a is less than a time threshold (e.g., 1, 5, 10, 30, or 60 seconds, or 3, 5, 10, 20, or 30 minutes), the device 101 optionally redisplays the cursor 706a only at the last position of the cursor 706a in the object 704a. Otherwise, the device 101 optionally redisplays the cursor 706a at the current position of the user's gaze 708 in the object 704a, as shown in FIG. Figure 7D As shown in . Figure 7C and Figure 7D In both, in response to subsequent cursor movement input detected by device 101 (eg, movement of a finger of hand 703a in contact with trackpad 710), device 101 optionally moves cursor 706a from the location where cursor 706a was redisplayed.

[0146] Figures 8A to 8E is a flow chart illustrating a method 800 for facilitating cursor interaction in different areas of a three-dimensional environment according to some embodiments. In some embodiments, the method 800 is performed on a computer system (e.g., Figure 1 The computer system 101 in the embodiment of the present invention is executed at a computer system 101 in the embodiment of the present invention, such as a tablet computer, a smart phone, a wearable computer, or a head-mounted device, which includes a display generation component (e.g., Figure 1 、 Figure 3 and Figure 4 In some embodiments, the method 800 is performed by one or more processors of a computer system, such as one or more processors 202 of the computer system 101 (e.g., a computer readable medium or computer program product). Figure 1Some operations in method 800 may be optionally combined, and / or the order of some operations may be optionally changed.

[0147] In some embodiments, method 800 is performed at an electronic device (e.g., 101) that communicates with a display generation component (e.g., 120) and one or more input devices (e.g., 314). For example, a mobile device (e.g., a tablet, a smart phone, a media player, or a wearable device) or a computer. In some embodiments, the display generation component is a display (optionally a touch screen display) integrated with the electronic device, an external display such as a monitor, a projector, a television, or a hardware component (optionally integrated or external) for projecting a user interface or making the user interface visible to one or more users. In some embodiments, the one or more input devices include a computer capable of receiving user input (e.g., capturing user input, detecting user input, etc.) and transmitting information associated with the user input to the electronic device. Examples of input devices include a touch screen, a mouse (e.g., external), a trackpad (optionally integrated or external), a touchpad (optionally integrated or external), a remote control device (e.g., external), another mobile device (e.g., separate from the electronic device), a handheld device (e.g., external), a controller (e.g., external), a camera, a depth sensor, an eye tracking device, and / or a motion sensor (e.g., a hand tracking device, a hand motion sensor), etc. In some embodiments, the electronic device communicates with a hand tracking device (e.g., one or more cameras, depth sensors, proximity sensors, touch sensors (e.g., a touch screen, a trackpad)). In some embodiments, the hand tracking device is a wearable device, such as a smart glove. In some embodiments, the hand tracking device is a handheld input device, such as a remote control or a stylus.

[0148] In some embodiments, when displayed via the display generation component, a user interface including a first area (such as including object 704a) and a second area (such as including object 704b) (e.g., the user interface includes a first user interface for a first application (such as a drawing application to which user input is provided to draw content) and a second user interface for a second application (such as a content browsing or collection application that includes representations of multiple objects or content items contained in the content browsing or collection application). In some embodiments, the user interface and / or area are displayed in a three-dimensional environment generated by the device, displayed by the device, or otherwise made viewable by the device (e.g., a computer generated reality (CGR) environment, such as a virtual reality) In some embodiments, the user interface is in a three-dimensional (VR) environment, a mixed reality (MR) environment, an augmented reality (AR) environment, or the like (e.g., the user interface is a three-dimensional environment and / or is displayed within a three-dimensional environment), wherein the first area includes a cursor (e.g., a pointer or other visual indicator controlled by user input). In some embodiments, a selection input detected when the cursor is over an object or content causes the object or content to be selected. In some embodiments, the cursor may move within the first area in response to movement-based input provided to the electronic device, as described below. In some embodiments, the cursor is within the content (such as described with reference to method 1000), and the electronic device detects (802a) via one or more input devices a first input including a first cursor movement input, such as pointing to Figure 7A706a in the user interface. For example, the input includes at least one component for moving the cursor. For example, the input at the virtual touchpad object displayed in the user interface includes the user's finger of the electronic device touching the virtual touchpad surface or being within a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 2, 4, or 10 cm) of the virtual touchpad surface, and the movement of the finger while touching the virtual touchpad surface or being within a threshold distance of the virtual touchpad surface. In some embodiments, the input is at a physical touchpad (or other cursor input device, such as a mouse) that communicates with the electronic device and has one or more of the characteristics described above for the virtual touchpad input. In some embodiments, the first input and / or one or more inputs described with reference to method 800 are air gesture inputs. In some embodiments, an air gesture is a gesture that is detected without the user touching an input element that is part of the device (or independent of an input element that is part of the device) and is based on detected movement of a part of the user's body through the air, including movement of the user's body relative to an absolute reference (for example, the angle of the user's arm relative to the ground or the distance of the user's hand relative to the ground), movement relative to another part of the user's body (for example, movement of the user's hand relative to the user's shoulder, movement of one of the user's hands relative to the user's other hand, and / or movement of the user's fingers relative to another finger or part of the user's hand), and / or absolute movement of a part of the user's body (for example, a tap gesture involving moving the hand in a predetermined posture by a predetermined amount and / or speed, or a shake gesture involving a predetermined speed or amount of rotation of a part of the user's body).

[0149] In some embodiments, in response to detecting the first input, the electronic device moves (802b) the cursor in the first area to a first position in the first area according to the first input, such as Figure 7A . For example, when the first input is detected, the cursor is located at a second position in the first area that is different from the first position, and the first cursor movement input (e.g., included in the first input) corresponds to movement of the cursor from the second position to the first position in the first area. In some embodiments, when the cursor is located in the first area, a cursor movement input directed to the cursor can only move the cursor within the first area and cannot cause the cursor to move from the first area to the second area (e.g., the cursor movement input is mapped to the area and / or volume of the first area).

[0150] In some embodiments, when the cursor is at the first position in the first area according to the first input (e.g., (just) after the first input that moves the cursor to the first position in the first area, and there is no further (e.g., cursor movement) input directed to the cursor in the first area), the electronic device detects (802c) a second input via one or more input devices, the second input comprising a gaze (802d) of a user of the electronic device directed to a second area in the user interface, such as Figure 7B In some embodiments, the first input is detected when a user of the electronic device is looking at the first area in the user interface and not the second area (e.g., the user's gaze is directed toward the first area).

[0151] In some embodiments, the second input includes a first interaction input (802e) directed to a first user interface element included in a second area of ​​the user interface, such as with Figure 7B 706b or element 716 in the first area. For example, the electronic device detects a selection of a selectable option (e.g., a button) in the second area, such as via the user's gaze pointing to the selectable option when the electronic device detects a pinch gesture of the user's hand (e.g., the thumb and index finger of the hand begin to separate and come together to touch the fingertips). In some embodiments, the hand performing the pinch gesture is the same hand that provides the cursor movement input in the first input. In some embodiments, the hand performing the pinch gesture is a different hand from the hand that provides the cursor movement input in the first input. In some embodiments, the first interaction input is a cursor movement input for controlling a cursor in the second area (in some embodiments, a different cursor from the cursor in the first area).

[0152] In some embodiments, in response to detecting the second input, the electronic device performs (802f) an interaction with the first user interface element according to the first interaction input, such as referring to Figure 7B For example, moving a cursor in the second area according to a cursor control input in the first interaction input, or performing an operation or action according to a button selection input in the first interaction input, such as causing a user interface of an application to be displayed if an application icon is selected in the second area.

[0153] In some embodiments, after performing an interaction with the first user interface element according to the first interaction input (e.g., and without detecting any cursor movement input directed to a cursor in the first area after the first input), the electronic device detects a third input (802g) via one or more input devices, the third input comprising a gaze (802h) of a user of the electronic device directed to the first area in the user interface, such as Figure 7CAs shown in gaze 708 in (optionally, regardless of whether the user's gaze is directed to the first location) (for example, the electronic device detects that the user is looking at the first area in the user interface but not the second area in the user interface).

[0154] In some embodiments, the third input includes a second cursor movement input (802i), such as from Figure 7C An input by hand 703a in (eg, an input having one or more of the characteristics of the first cursor movement input).

[0155] In some embodiments, in response to detecting the third input, the electronic device moves the cursor in the first area starting from the first position in the first area and moving away from the first position in the first area according to the second cursor movement input (802j), such as Figure 7C As shown in . For example, when the third input is detected, the cursor is at a first position in the first area, and the second cursor movement input (e.g., included in the third input) corresponds to the movement of the cursor from the first position in the first area to the third position. In some embodiments, when the electronic device detects the user's gaze directed to the second area (e.g., as part of the second input), the electronic device stops displaying the cursor in the first area, and when the electronic device detects the user's gaze directed to the first area (e.g., as part of the third input), the electronic device redisplays the cursor in the first area at the first position (e.g., the position to which the cursor was moved or the position to which the cursor was located when the user's gaze was last directed to the first area). In some embodiments, the electronic device redisplays the cursor only when a touchpad input is detected (e.g., a touch on a virtual or physical touchpad before or in response to a subsequent movement of a finger on the touchpad). In some embodiments, the electronic device maintains display of the cursor (or a representation of the cursor, such as a faded or minimized cursor representation) at the first position in the first area, even if the user's gaze moves to the second area and then to the first area. Thus, in the manner described above, the electronic device optionally maintains the position of the cursor in the first area even if an intervening input is directed to the second area, such that subsequent cursor interactions with the first area begin from the last position of the cursor in the first area. Maintaining the last position of the cursor in a given area of ​​the user interface facilitates interaction with multiple different areas of the user interface while maintaining consistency in the cursor position, thereby simplifying interaction between the user and the electronic device and reducing errors in use (e.g., errors that may occur if the cursor appears in different, unexpected locations in a given area after intervening interactions with different areas of the user interface).

[0156] In some embodiments, the first area includes a drawing user interface (e.g., a drawing sketchpad into which content, such as a drawing, is input via input from a cursor. For example, the cursor is optionally a drawing cursor that draws lines / curves / etc. into the drawing sketchpad based on movement of the cursor, and moving the cursor within the first area according to the first input includes creating content within the drawing user interface based on the movement of the cursor (804), such as if cursor 706a creates content within object 704a as it moves within object 704a (e.g., if the cursor moves in a circle, a circular drawing corresponding to the cursor movement is displayed in the drawing user interface). Providing cursor-based drawing input makes it easy for a user to input content into the user interface, thereby improving user-device interaction.

[0157] In some embodiments, the gaze of the electronic device user directed to the first area as part of the third input is directed to a location in the first area other than the first location in the first area (806), such as gaze 708 not being in the same location as the first location in the first area. Figure 7C In some embodiments, cursor movement in the first area is restored from the last position of the cursor in the first area even if the user's gaze is not directed to the last position of the cursor in the first area. In some embodiments, the user's gaze is directed to the last position of the cursor in the first area, and cursor movement in the first area is still restored from the last position of the cursor in the first area. Restoring cursor movement from the last position of the cursor in the first area allows the user to direct attention to other parts of the first area (e.g., parts that the user will interact with next) even if the user's gaze is not directed to the last position, without having to first direct attention to the position of the cursor, thereby facilitating efficient interaction with the user interface.

[0158] In some embodiments, when a first input is detected (808a), based on determining that the gaze of the user of the electronic device is directed to a second position in the first area, an input cursor is started at the second position and moved away from the second position to the first position in the first area (808b) based on the first cursor movement, such as Figure 7D As shown by the cursor 706a in FIG.

[0159] In some embodiments, based on determining that the gaze of the user of the electronic device is directed to a third position in the first area that is different from the second position, the input cursor starts at the third position and moves away from the third position to the first position in the first area (808c) based on the first cursor movement, such as if the gaze 708 is directed to Figure 7Ddifferent positions of object 704a in . In some embodiments, the position of the cursor for initial interaction with the first area (e.g., before interaction with the second area and / or subsequent interaction with the first area) is based on the user's gaze position. For example, the initial position of the cursor in the first area is optionally the position at which the user's gaze is directed when the start of a first cursor movement input is detected, such as: a predefined gesture performed by the user's hand, such as a pinch gesture (e.g., followed by movement of the pinched hand, optionally corresponding to movement of the cursor); or a touch of the user's finger on a virtual or physical touch surface (e.g., followed by movement of the touched finger, optionally corresponding to movement of the cursor). Thus, in some embodiments, when initially interacting with the first area, cursor movement begins from the user's gaze position in the first area, and when subsequently interacting with the first area, cursor movement begins from the user's last position in the first area, which last position is optionally different from the user's gaze position in the first area. Starting cursor movement from the user's gaze position allows the user to place the cursor where the user is looking without having to provide a separate input to move the cursor to that position, thereby facilitating efficient interaction with the user interface.

[0160] In some embodiments, after performing an interaction with the first user interface element according to the first interaction input (e.g., and without detecting any cursor movement input directed to a cursor in the first area after the first input), the electronic device detects a fourth input (810a) via one or more input devices, the fourth input comprising a gaze (810b) of a user of the electronic device directed to the first area in the user interface, such as Figure 7C as shown in (optionally, without regard to whether the user's gaze is directed to the first location) (e.g., the electronic device detects that the user is looking at the first area in the user interface but not the second area in the user interface).

[0161] In some embodiments, the fourth input includes a third cursor movement input (810c), such as from Figure 7C or Figure 7D An input by hand 703a in (eg, an input having one or more of the characteristics of the first cursor movement input).

[0162] In some embodiments, in response to detecting a third input, based on determining that a fourth input is detected after a time threshold (e.g., 1, 5, 10, 30, or 60 seconds, or 3, 5, 10, 20, or 30 minutes) after the end of the first input (e.g., the fourth input pointing to the first area is detected after a time threshold (e.g., the first input pointing to the first area ends. In some embodiments, the end of the first input is the time when the electronic device detects that the user's finger leaves the physical or virtual touch surface, or the time when the electronic device detects the release of a pinch gesture made by the user's hand (e.g., using the thumb and index finger)), the electronic device moves the cursor (810d) within the first area, starting from a second position in the first area that is different from the first position (e.g., the position in the first area to which the user's gaze is directed when the start of the third cursor movement input is detected, the default (e.g., center) position in the first area, etc.), and moves away from the second position in the first area according to the third cursor movement input, such as a reference position. Figure 7D As shown and described. In some embodiments, if the third input has not been detected within a time threshold from the end of the first input, the cursor movement in response to the third input will optionally start from the second position. In some embodiments, when the electronic device does not detect interaction with the first area (e.g., a cursor) for a time longer than the time threshold, the cursor movement in the first area for subsequent cursor movement inputs directed to the first area is automatically reset (e.g., no longer starting from the last position of the cursor in the first area). Automatically resetting the cursor position in the first area in response to not interacting with the first area within the time threshold allows the user to initiate cursor movement in the first area from a position that is not constrained to the previous position of the cursor in the first area (when such cursor movement is unlikely to be related to the previous cursor position), thereby facilitating efficient interaction with the user interface.

[0163] In some embodiments, upon detecting the second input, the electronic device displays (812) a visual indication of the first position associated with the cursor in the first area, such as Figure 7B Indication 707a in. In some embodiments, before detecting the second cursor movement and when (e.g., and / or in response to) detecting the user's gaze directed to the first area after detecting the second input, the electronic device displays a visual indication of the first position associated with the cursor. In some embodiments, the visual indication of the first position associated with the cursor is a visual cue, shadow, etc., of the cursor displayed at the last position of the cursor in the first area, indicating the location where the cursor movement will begin when a subsequent cursor movement input is detected. Indicating the last position of the cursor in the first area clearly indicates the location where the cursor movement will begin when a subsequent cursor movement input is detected, thereby facilitating efficient interaction with the user interface.

[0164] In some embodiments, a first interactive input directed to a first user interface element included in the second area is a first interactive input that controls a second cursor (such as a cursor in the second area) that is different from the cursor. Figure 7B Thus, in some embodiments, the gaze of the user of the electronic device directed to the first area when the cursor movement input is detected causes the electronic device to display and / or control the first cursor in the first area according to the cursor movement input, and the gaze of the user of the electronic device directed to the second area when the cursor movement input is detected causes the electronic device to display and / or control the second cursor in the second area according to the cursor movement input. Thus, in some embodiments, the first area and the second area have their own cursors that can be controlled separately in response to the cursor movement input. Providing different cursors in different areas of the user interface allows the user to interact with different areas of the user interface independently without affecting the cursor positions in those different areas of the user interface, thereby facilitating efficient interaction with the user interface.

[0165] In some embodiments, the first cursor movement input is provided by a predefined portion of the electronic device user (such as Figure 7A 703b or 703c) in the hand (for example, cursor movement input is provided by the hand of the electronic device user) (816a).

[0166] In some embodiments, based on determining that the user predefined portion is close to a threshold distance (e.g., 1, 3, 5, 10, 12, 24, 36, 72, 108, or 216 cm) from the position corresponding to the first area when the first cursor movement input is detected (e.g., the user's hand is relatively close to the surface in the first area where the cursor is located during the first cursor movement input), the cursor is displayed in the first area at a corresponding portion relative to the user predefined portion (such as relative to the first area). Figure 7A 703b in the first area). For example, when the user's hand is providing relatively close input (e.g., direct input) to the first area, such as when the index finger of the hand is extended toward the first area while the other fingers of the hand are curled inward toward the palm of the hand (e.g., not extended toward the first area), the cursor is displayed on the surface in the first area that coincides with the index fingertip of the hand, and the cursor moves according to the movement of the index fingertip. If the index finger of the hand is not in contact with the surface (e.g., separated from the surface in the first area), the cursor is optionally displayed at a location where the normal on the surface intersects the index fingertip, and the cursor moves according to the movement of the index fingertip (e.g., moves to a location where the normal on the surface continues to intersect the updated position of the index fingertip).

[0167] In some embodiments, based on determining that the user predefined portion is farther than a threshold distance (e.g., 1, 3, 5, 10, 12, 24, 36, 72, 108, or 216 cm) from the position corresponding to the first area when the first cursor movement input is detected (e.g., the user's hand is relatively far away from the surface in the first area where the cursor is located during the first cursor movement input), the cursor is displayed in the first area relative to the corresponding portion of the user predefined portion (such as relative to the Figure 7A For example, when the user's hand is providing relatively far input (e.g., indirect input, such as described with reference to method 1000) to the first area, such as with the index finger and thumb of the hand touching (or nearly touching) each other in a pinch gesture, or even before the index finger and thumb touch (or nearly touching) each other, the cursor is displayed at a location where a normal on the surface in the first area intersects a (e.g., midway) point between the thumb and index finger tips of the user's hand (e.g., a "pinch point" or a "potential pinch point"), and the cursor moves according to movement of the "pinch point" or the "potential pinch point" (e.g., to a location where the normal on the surface continues to intersect the updated location of the "pinch point" or the "potential pinch point"). Placing the cursor at different relative positions relative to the user's hand depending on whether cursor movement input is detected when the user's hand is relatively close to or far away from the first area ensures that the cursor placement corresponds to the user's expectations of the type of interaction provided by the user, thereby promoting efficient interaction with the user interface and reducing errors in use.

[0168] In some embodiments, when a first cursor movement input is detected (818a) (e.g., when the cursor is moved in the first area according to movement of the user's hand, and before the end of the first cursor movement input is detected, such as the user's fingers leaving the virtual or physical touch surface, or the release of a pinch performed by the thumb and index finger of the user's hand), when the user predefined part is farther than a threshold distance (e.g., 1, 3, 5, 10, 12, 24, 36, 72, 108, or 216 cm) from the position corresponding to the first area and the cursor is displayed at a second relative position relative to the corresponding part of the user predefined part in the first area (e.g., the cursor is displayed at a position corresponding to a "pinch point" or "potential pinch point" of the user's hand and does not correspond to the tip of the index finger of the user's hand), the electronic device detects (818b) movement of the user predefined part to a distance closer than the threshold distance from the first area, such as if Figure 7A The hand 703c in the first area moves closer than a threshold distance to the object 704a (eg, the user's hand gradually moves toward the surface including the cursor in the first area).

[0169] In some embodiments, upon detecting movement of the user-predefined portion to a distance closer than a threshold distance from the first area (e.g., as the user's hand moves closer to the surface in the first area including the cursor), the electronic device moves (818c) the display of the cursor in the first area from a second relative position relative to the corresponding portion of the user-predefined portion to a first relative position relative to the corresponding portion of the user-predefined portion in accordance with the movement of the user-predefined portion to a distance closer than the threshold distance from the first area (e.g., gradually changing the display position of the cursor from a "pinch point" or "potential pinch point" corresponding to the user's hand to a fingertip corresponding to the index finger of the user's hand). Thus, in some embodiments, as the user's hand moves closer to the first area, the cursor moves closer to be displayed at a position corresponding to the fingertip of the user's hand, and as the user's hand moves further away from the first area, the cursor moves closer to be displayed at a position corresponding to the "pinch point" or "potential pinch point" of the user's hand. The cursor optionally remains located in the first area (e.g., on the surface) throughout the movement of the hand closer to or further away from the first area (e.g., the cursor does not move based on the movement of the user's hand toward or away from the first area). Gradually transitioning the displayed position of the cursor in response to movement of the user's hand provides smooth and predictable transitions in the position of the displayed cursor, thereby facilitating efficient interaction with the user interface and reducing errors in use.

[0170] In some embodiments, the first cursor movement input directed to the first area and the first interaction input directed to the second area are provided by a predefined portion of the user (e.g., the same hand of the user), and performing the interaction with the first user interface element based on the first interaction input is based on determining that the predefined portion of the user is not engaged with the first area (820a), for example, based on determining that the hand 703a, 703b, or 703c is no longer interacting with the object 704a when the user's gaze moves to the object 704b (e.g., the user's hand is no longer interacting with the first area, such as no longer providing input for selecting text, refining a selection, drawing, scrolling, etc. in the first area). Thus, in some embodiments, the first interaction input is detected after the interaction between the user's hand and the first area in the user interface is completed.

[0171] In some embodiments, the electronic device detects a fourth input (820b) via one or more input devices, which fourth input includes the user's gaze of the electronic device directed to the second area (e.g., the electronic device detects that the user is looking at the second area in the user interface instead of the first area in the user interface) and a second interaction input provided by a predefined portion of the user (e.g., such as an interaction input described with reference to the first interaction input, such as gestures, shapes and / or movements corresponding to various direct or indirect inputs).

[0172] In some embodiments, in response to detecting a fourth input (820c), based on determining that a predefined portion of the user is engaged with the first area when the fourth input is detected (e.g., the detected gesture, shape, and / or movement is a continuation of the interaction between the user's hand and the first area, such as a hand performing a gesture, shape, and / or movement in the first area for selecting text, refining a selection, drawing, scrolling, etc.). In some embodiments, in the middle of the interaction between the user's hand and the first area (e.g., before it ends), the user's gaze switches from the first area to the second area, and the electronic device performs an interaction (820d) in the first area (e.g., continues the interaction that occurred between the user's hand and the first area) based on the second interaction input, but does not perform an interaction in the second area based on the second interaction input, such as if in Figure 7B Middle hand 703a is still interacting with object 704a, not object 704b. Thus, in some embodiments, even if the user's gaze switches to be directed at the second area, input detected from the user's hand is not directed at the second area unless (and / or until) the interaction with the first area is completed when the user's gaze switches. Forgoing switching input to a new area while a previous interaction with the previous area is still occurring allows the user to view various areas of the user interface without losing the ability to continue interacting with the previous area, thereby facilitating user interface exploration while maintaining efficient user-device interaction.

[0173] Figures 9A to 9E Examples of electronic devices that facilitate cursor interaction within content are shown according to some embodiments.

[0174] Figure 9A The electronic device 101 is shown via a display generation component (eg, Figure 1 The display generation component 120) displays the three-dimensional environment 902 from the viewpoint of the user of the electronic device 101. Figure 1 As described in FIG6 , the electronic device 101 optionally includes a display generation component (eg, a touch screen) and a plurality of image sensors (eg, Figure 3 The image sensor 314 optionally includes one or more of the following: a visible light camera; an infrared camera; a depth sensor; or any other sensor that the electronic device 101 can use to capture one or more images of the user or a portion of the user (e.g., one or more hands of the user) when the user interacts with the electronic device 101. In some embodiments, the user interface shown and described below may also be implemented on a head-mounted display that includes a display generation component that displays the user interface or three-dimensional environment to the user, as well as sensors that detect movement of the physical environment and / or the user's hands (e.g., external sensors facing outward from the user) and / or sensors that detect the user's gaze (e.g., internal sensors facing inward toward the user's face).

[0175] like Figure 9A As shown, device 101 captures one or more images of the physical environment (e.g., operating environment 100) surrounding device 101 (including one or more objects in the physical environment surrounding device 101). In some embodiments, device 101 displays a representation of the physical environment in a three-dimensional environment 902. For example, three-dimensional environment 902 includes a representation 924 of a sofa, which is optionally a representation of a physical sofa in the physical environment; three-dimensional environment 902 includes a representation of a table (partially obscured by object 904a), which is optionally a representation of a physical table in the physical environment. Three-dimensional environment 902 also includes representations of the physical floor, ceiling, and back and side walls of the room in which device 101 is located.

[0176] exist Figure 9A , the three-dimensional environment 902 also includes a virtual object 904a. The virtual object 904a is optionally one or more of a user interface of an application (e.g., a messaging user interface, a content browsing user interface, etc.), a three-dimensional object (e.g., a virtual clock, a virtual ball, a virtual car, etc.), a representation of content (e.g., a representation of a photo, video, film, music, etc.), or any other element displayed by the device 101 that is not included in the physical environment of the device 101. Figure 9A In FIG. 9 , the virtual object 904 a is a two-dimensional object, but the examples described herein are similarly applicable to three-dimensional objects.

[0177] Figure 9A The object 904a in includes text content (e.g., "Lorem ipsum dolor..."), and the text content includes a cursor 906a at a location within the content (e.g., at the beginning of the word "interdum"). The cursor 906a is, optionally, an object selection and / or interaction cursor that interacts with the displayed object or selectable option in response to a selection input detected when the cursor coincides with the object or selectable option. In some embodiments, the cursor 906a is a text selection cursor that controls selection of text or other content in response to a selection input detected by the device 101. In some embodiments, the cursor 906a is a text insertion cursor that defines the location within the content where the text or content input will cause the text or content to be inserted. The device 101 optionally facilitates different operations with respect to the content in the object 904a in response to input directed to the object 904a, depending on whether the user's gaze is directed to the cursor 906a when the input is detected, as will be described below. It should be understood that while in Figures 9A to 9EMultiple hands of a user, multiple gaze positions of a user, and corresponding inputs are shown, but such hands, gaze positions, and inputs need not be detected simultaneously by device 101; rather, in some embodiments, device 101 independently responds to such hands, gaze positions, and / or inputs in response to independently detecting the hands, gaze positions, and / or inputs shown and described.

[0178] For example, in Figure 9A , when hand 903c performs a pinch gesture, device 101 detects a user's gaze (e.g., gaze 908a, 908b, or 908c) directed toward object 904a, in which the thumb and index fingertips of hand 903c are brought together and touching, while hand 903c is farther than a threshold distance (e.g., 1, 2, 5, 10, 20, 50, 100, 500, or 1000 cm) from object 904a and / or the content included in object 904a. If hand 903c subsequently moves vertically while maintaining the pinch hand shape (e.g., the thumb and index fingertips of hand 903c remain in contact with each other) within a time threshold (e.g., 0.1, 0.3, 0.5, 1, 2, 3, 5, or 10 seconds) for detecting the pinch gesture, device 101 optionally scrolls the content within object 904a vertically according to the movement of hand 903c. For example, Figure 9A Hand 903c in has provided such an upward input, and in response, device 101 scrolls the content within object 904a upward, as shown. Figure 9D In some embodiments, if a portion of the content is highlighted / selected (e.g., as shown in FIG. 1 ) when receiving input from hand 903c, Figure 9A ), that portion of the content remains highlighted / selected during and / or in response to the scrolling input from hand 903c (e.g., as indicated by highlight 910a in FIG. 1 ). Figure 9D In response to such scrolling input from hand 903c, cursor 906a optionally also remains at its position in the content, as also shown. Figure 9D As shown in .

[0179] Other inputs and resulting operations are also possible. For example, a long pinch gesture (e.g., a gesture in which the user's thumb and index finger tips come together and touch each other and remain in contact for longer than a time threshold such as 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds) optionally results in different operations depending on whether the user's gaze is directed toward cursor 906a when the long pinch gesture is detected. For example, in Figure 9A, hand 903a is performing a long pinch gesture while hand 903a is farther than a threshold distance from object 904a and / or content included in object 904a and / or cursor 906a. In the event that the user's gaze 908a is directed at cursor 906a when the long pinch gesture is detected, device 101 optionally performs a cursor movement operation in accordance with the long pinch gesture. For example, hand 903a performs a long pinch gesture while gaze 908a is directed at cursor 906a, and then moves hand 903a to the right while maintaining the pinch hand shape, device 101 moves cursor 906a within the content in accordance with the movement of hand 903a. Subsequent detection of a release gesture by hand 903a (e.g., the thumb and index finger tips of hand 903a move away from each other) optionally causes device 101 to place cursor 906a at its new position in the content based on the movement of hand 903a. For example, in Figure 9B In the above Figure 9A 906c has been placed within a word in the content (e.g., "vulputate") because the movement of hand 903a corresponds to movement of the cursor within the word (e.g., between the letters "a" and "t" in the word). In some embodiments, if a portion of the content is highlighted / selected (e.g., as shown in FIG. 1 ) when the input from hand 903a is received, the cursor 906c may be positioned within the word (e.g., "vulputate") in the content. Figure 9A ), then that portion of the content becomes unhighlighted / unselected in response to input from hand 903a (e.g., as indicated by highlight 910a in FIG). Figure 9B Thus, in some embodiments, when cursor movement input is generated from a long pinch gesture detected when the user's gaze is directed toward the cursor, the device 101 freely moves the cursor within the content according to the movement of the hand 903a. It should be understood that although Figures 9B to 9C Multiple cursors are displayed, but these cursors optionally correspond to Figure 9A Cursor 906a in responsive to alternative resulting positions of various inputs described herein.

[0180] Return to Figure 9A , if a long pinch gesture of hand 903a has instead been detected while gaze 908c is not directed at cursor 906a but at another part of the content (e.g., at the word "dignissim"), then instead of performing a cursor movement operation, device 101 optionally performs a content selection operation based on the movement of hand 903a while maintaining the pinch hand shape. For example, in response to such input from hand 903a, device 101 has highlighted / selected content starting from the word that gaze 908c was directed at when the long pinch gesture was detected and extending therefrom based on the movement of hand 903a, as shown in FIG. Figure 9BAs shown in . Figure 9B , a new portion of the content has been highlighted / selected, as indicated by highlight 910b. The portion of the highlighted content includes the word "dignissim" and extends to the right (e.g., corresponding to the rightward movement of hand 903a) past the word "elit." In some embodiments, as Figures 9A to 9B , the entire word that gaze 908c is pointing to when the long pinch is detected is included in the selection, regardless of the specific location of gaze 908c within the word. In contrast, the ending position of highlight 910b is optionally controllable by hand 903a on a character-by-character basis based on the movement of hand 903a (e.g., similar to the cursor movement operation described above). Cursor 906a optionally remains in its position throughout the content selection operation. Additionally, if a portion of the content is highlighted / selected when input from hand 903a is received (e.g., as Figure 9A ), then that portion of the content optionally becomes unhighlighted / unselected in response to input from hand 903a (e.g., as indicated by highlight 910a in FIG). Figure 9B 910a which is no longer shown).

[0181] Return to Figure 9A , a short pinch gesture (e.g., a gesture in which the user's thumb and index finger tips come together and touch each other and remain in contact for less than a time threshold, such as 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds) optionally results in different operations depending on whether the user's gaze is directed toward cursor 906a when the short pinch gesture is detected. For example, in Figure 9A , hand 903b is performing a short pinch gesture while hand 903b is further than a threshold distance from object 904a and / or content included in object 904a and / or cursor 906a. In the event that the user's gaze 908a is directed toward cursor 906a when the short pinch gesture is detected, device 101 optionally displays content modification menu 924 at the location of cursor 906a (e.g., the cursor position optionally does not change in response to the short pinch gesture of hand 903b), e.g. Figure 9B. The content modification menu 924 optionally includes one or more selectable options for modifying the content (e.g., a word, a sentence, a paragraph, etc.) at the location of the cursor 906a. For example, the content modification menu 924 optionally includes one or more of the following options: an option to cut the content at the location of the cursor 906a (e.g., for subsequently pasting the content at a future location of the cursor 906a), an option to copy the content at the location of the cursor 906a (e.g., for subsequently pasting the content at a future location of the cursor 906a), and an option to paste the previously copied content at the location of the cursor 906a. Additionally or alternatively, in some embodiments, the content modification menu 924 includes one or more selectable options for performing one or more operations involving the content text. For example, the content modification menu 924 optionally includes one or more of the following options: an option to define a specific word or phrase in the content (e.g., a highlighted word or phrase, a word or phrase within the cursor placement location, and / or a word or phrase to which the user's gaze is directed) (e.g., display its definition), and an option to translate a specific word, phrase, sentence, or paragraph in the content (e.g., a highlighted word, phrase, sentence, or paragraph, a word, phrase, sentence, or paragraph within the cursor placement location, and / or a word, phrase, sentence, or paragraph to which the user's gaze is directed) (e.g., display its translation).

[0182] Return to Figure 9A , if a short pinch gesture of hand 903b has instead been detected while gaze 908b is not directed at cursor 906a but at another portion of the content (e.g., at the word "ornare"), device 101 optionally performs a cursor movement operation that is not based on the movement of hand 903b, rather than performing a content modification operation. For example, in response to a Figure 9A Such input of hand 903b in the device 101 has moved the cursor to Figure 9B The end of the word "ornare" indicated by cursor 906b in Figure 9A When a short pinch gesture is detected in , cursor 906b is optionally placed at the end of the word "ornare", regardless of the exact location within the word pointed to by gaze 908b. In some embodiments, the cursor movement operation is based on whether the word pointed to by the user's gaze is editable. For example, in Figure 9B In the example, the word "ornare" is optionally a text editable word, which causes the electronic device 101 to move the cursor to the end of the word "ornare". If the word "ornare" is alternatively a read-only word (e.g., a word that cannot currently be edited), the electronic device 101 optionally moves the cursor to the beginning of the word "ornare". Additionally, if a portion of the content is highlighted / selected (e.g., as shown in FIG. 1 ) when receiving input from the hand 903b, the electronic device 101 may move the cursor to the end of the word "ornare". Figure 9A), then that portion of the content optionally becomes unhighlighted / unselected in response to input from hand 903b (e.g., as indicated by highlight 910a in FIG. 1 ). Figure 9B 910a which is no longer shown).

[0183] The selected / highlighted content is optionally displayed by device 101 using highlight 910. For example, Figure 9A In the example, highlight 910a indicates the selected / highlighted content, and in the example Figure 9B , highlight 910b indicates the selected / highlighted content. Optionally, highlight 910 is displayed with an indication of the start and end of the highlight. For example, in Figure 9B , highlight 910b is displayed together with an indication 912a located at the start position of highlight 910b and an indication 912b located at the end position of highlight 910b. Indications 912a and 912b optionally have two different visual appearances: one appearance when the indication is not targeted by the user's gaze 908d, and a different appearance when the indication is targeted by the user's gaze 908d. For example, when targeted, the circular portion of indication 912 becomes filled, and when not targeted, the circular portion of indication 912 becomes unfilled. Other modifications (e.g., color, size, transparency, etc.) are also contemplated, such as any visual changes that emphasize the targeted indication 912 (e.g., relative to the content, relative to other indications, relative to object 904a, and / or relative to the three-dimensional environment 902).

[0184] When the device 101 detects the user's hand performing a pinch gesture while the indication 912 is aimed at the user's gaze 908d, and then detects movement of the user's hand while the pinching hand shape is maintained, the selection of changing (e.g., expanding, contracting) the content is optionally performed. Figure 9B , gaze 908d is aimed at indication 912a at the beginning of highlight 910b. When gaze 908d is directed at indication 912a, or when gaze 908d is directed at a first (e.g., a quarter, a third, or a half) portion of highlight 910b, gaze 908d is optionally aimed at indication 912a, and when gaze 908d is directed at indication 912b, or when gaze 908d is directed at a last (e.g., a quarter, a third, or a half) portion of highlight 910b, gaze 908d is optionally aimed at indication 912b. Figure 9B , when gaze 908d is aimed at indicator 912a, hand 903a performs a pinch gesture while hand 903a is farther than a threshold distance from object 904a and / or content included in object 904a and / or highlight 910b, and then hand 903a moves to the left while maintaining the pinch hand shape. In response, as Figure 9CAs shown in , device 101 expands highlight 910b to the left based on the movement of hand 903a. The updated position of the start of highlight 910b, indicated by indicator 912a, is optionally controllable by hand 903a on a character-by-character basis based on the movement of hand 903a (e.g., similar to the cursor movement operation described above). The expansion or contraction of highlight 910b as described optionally does not change the position of the cursor in the content (e.g., whether the cursor is cursor 906a, 906b, or 906c), as shown in FIG. Figure 9C As shown in .

[0185] As previously mentioned, in some embodiments, the cursor (e.g., cursor 906a, 906b, and / or 906c) is a content (e.g., text) insertion cursor, and if the device 101 receives content (e.g., text) input, the content will be inserted at the content insertion cursor. Figure 9B , when cursor 906b is located at the end of the word "ornare", device 101 receives text input for inserting the content "dastan" into object 904a. In response, as Figure 9C As shown in FIG, device 101 has inserted the content “dastan” 926 at the end of the word “ornare” and has updated the position of cursor 906b to be at the end of the newly added content “dastan” 926.

[0186] In some embodiments, the electronic device 101 changes the appearance of the cursor in response to detecting the user's gaze directed at the cursor. Figure 9E In the embodiment, the gaze 908e is directed to the cursor 906a in the object 904a in the three-dimensional environment 902 (e.g., at least a portion thereof or within a threshold distance thereof (e.g., 0.1, 0.2, 0.5, 1, 1.5, 2, or 3 cm)). In response to detecting the gaze 908e directed to the cursor 906a, the electronic device 101 optionally changes the appearance of the cursor 906a from Figure 9D becomes Figure 9E For example, in Figure 9E In, with Figure 9DIn some embodiments, the electronic device 101 displays the cursor 906a in the three-dimensional environment 902 at a different size (e.g., a larger size) than the size of the cursor 906a in the object 904a. Additionally or alternatively, in some embodiments, in response to detecting the gaze 908e pointing to the cursor 906a, the electronic device 101 changes the color of the cursor 906a. For example, the electronic device 101 changes the color of the cursor 906a from black to blue in the three-dimensional environment 902. In some embodiments, in response to detecting the gaze 908e pointing to the cursor 906a, the electronic device 101 changes the animation of the cursor 906a in the three-dimensional environment 902. For example, before detecting the gaze 908e pointing to the cursor 906a, the electronic device 101 optionally animates the cursor 906a in the object 904a. For example, the electronic device 101 causes the cursor 906a to periodically flash in the object 904a. In response to detecting the gaze 908e pointing to the cursor 906a, the electronic device 101 optionally stops the cursor 906a from flashing in the object 904a.

[0187] Figures 10A to 10G is a flow chart illustrating a method 1000 for facilitating cursor interaction in content according to some embodiments. In some embodiments, the method 1000 is performed on a computer system (e.g., Figure 1 The computer system 101 in the embodiment of the present invention is executed at a computer system 101 in the embodiment of the present invention, such as a tablet computer, a smart phone, a wearable computer, or a head-mounted device, which includes a display generation component (e.g., Figure 1 、 Figure 3 and Figure 4 In some embodiments, the method 1000 is performed by one or more processors of a computer system, such as one or more processors 202 of the computer system 101 (e.g., a computer readable medium, a display generating component 120 in the computer system 100) (e.g., a heads-up display, a display, a touch screen, a projector, etc.) and one or more cameras (e.g., a camera pointing downward toward the user's hand (e.g., a color sensor, an infrared sensor, and other depth sensing cameras) or a camera pointing forward from the user's head). Figure 1 Some operations in method 1000 may be optionally combined, and / or the order of some operations may be optionally changed.

[0188] In some embodiments, method 1000 is performed at an electronic device (e.g., 101) that communicates with a display generation component (e.g., 120) and one or more input devices (e.g., 314). For example, a mobile device (e.g., a tablet, a smartphone, a media player, or a wearable device) or a computer. In some embodiments, the display generation component is a display (optionally a touch screen display) integrated with the electronic device, an external display such as a monitor, a projector, a television, or a hardware component (optionally integrated or external) for projecting a user interface or making the user interface visible to one or more users. In some embodiments, the one or more input devices include a computer capable of receiving user input (e.g., capturing user input, detecting user input, etc.) and transmitting information associated with the user input to the electronic device. Examples of input devices include a touch screen, a mouse (e.g., external), a trackpad (optionally integrated or external), a touchpad (optionally integrated or external), a remote control device (e.g., external), another mobile device (e.g., separate from the electronic device), a handheld device (e.g., external), a controller (e.g., external), a camera, a depth sensor, an eye tracking device, and / or a motion sensor (e.g., a hand tracking device, a hand motion sensor), etc. In some embodiments, the electronic device communicates with a hand tracking device (e.g., one or more cameras, depth sensors, proximity sensors, touch sensors (e.g., a touch screen, a trackpad)). In some embodiments, the hand tracking device is a wearable device, such as a smart glove. In some embodiments, the hand tracking device is a handheld input device, such as a remote control or a stylus.

[0189] In some embodiments, when a three-dimensional environment including content is displayed via a display generation component (e.g., text content is displayed within a text input and / or editing user interface in the three-dimensional environment. In some embodiments, the content includes non-text content, such as images, videos, etc. displayed in the three-dimensional environment), the content includes a cursor (e.g., an object selection and / or interaction cursor that interacts with the displayed object or selectable option in response to a selection input detected when the cursor coincides with the object or selectable option). In some embodiments, the cursor is a text insertion cursor that controls the selection of text or other content in response to a selection input detected by the device. In some embodiments, the cursor is a text insertion cursor that defines the location within the content where text or content input will cause the text or content to be inserted. In some embodiments, the cursor is a cursor displayed in an area of ​​the three-dimensional environment that includes the content, such as described with reference to method 800. In some embodiments, the content and the cursor are displayed in a three-dimensional environment that is generated, displayed, or otherwise made viewable by the device (e.g., a computer-generated reality (CGR) environment, such as a virtual reality (VR) environment, a mixed reality (MR) environment, or an augmented reality (AR) environment, etc.). The electronic device detects (1002a) via one or more input devices a first input of a first type provided by a predefined portion (e.g., a hand) of a user of the electronic device, such as from Figure 9AInput from hand 903a, 903b, or 903c in the embodiment of the present invention is an input from hand 903a, 903b, or 903c in the embodiment of the present invention (e.g., a pinch gesture performed by the hand of a user of the electronic device, such as the thumb and index finger of the user's hand start to separate by more than a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 2, or 5 cm) and come together at the fingertips, which is detected by a hand tracking device in communication with the electronic device). In some embodiments, the pinch gesture is of the first type when the duration of the pinch (e.g., the duration for which the hand maintains a pinch hand shape with the thumb tip touching the fingertips) meets one or more criteria (e.g., longer than a time threshold (e.g., 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds)), and the pinch is released after the time threshold (e.g., the thumb tip and index finger tip move more than a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 2, or 5 cm) from each other). In some embodiments, the pinch gesture is of the second type if the duration of the pinch does not meet one or more criteria. In some embodiments, when a user predefined portion is farther than a threshold distance (e.g., 1, 2, 5, 10, 20, 50, 100, 500, or 1000 cm) from a location corresponding to content in a three-dimensional environment (e.g., the user's hand is far away from the content and / or cursor in the three-dimensional environment), the pinch gesture is of the first type when another characteristic of the pinch gesture (e.g., hand movement, pinch speed, number of pinches (e.g., two, three, etc.)) meets one or more criteria, and the pinch gesture is of the second type when other characteristics of the pinch gesture do not meet one or more criteria. When the user's hand is far away from the content and / or cursor in the three-dimensional environment, the user's hand may optionally provide input to the content and / or cursor without contacting the content and / or cursor or entering a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 2, or 5 cm) of the content and / or cursor (e.g., corresponding to "indirect input"). In some embodiments, if the user's hand is close to the content and / or cursor (e.g., within 1, 2, 5, 10, 20, 50, 100, 500, or 1000 cm), the user's hand provides input to the content and / or cursor by touching the content and / or cursor or entering a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 2, or 5 cm) of the content and / or cursor (e.g., corresponding to "direct input"). In some embodiments, the first input and / or one or more inputs described with reference to method 1000 are air gesture inputs, such as those described with reference to method 800.

[0190] In some embodiments, in response to detecting a first input of a first type provided by a user predefined portion (1002b), the user's gaze is directed to the cursor based on determining when the first input is detected, such as Figure 9AThe device detects the gaze of the user pointing to the cursor or pointing to a threshold distance such as 0.1, 0.2, 0.5, 1, 2 or 5 cm when the first input is detected (for example, the device detects via the eye tracking device that the user's gaze is pointing to the cursor, or pointing to a threshold distance such as 0.1, 0.2, 0.5, 1, 2 or 5 cm), and the electronic device performs a first operation of the first type (1002c) according to the first input, such as according to Figures 9A to 9B In some embodiments, the cursor moves downwardly back into the content at a new position within the content in response to detecting the release of the pinch hand. In some embodiments, the second operation of the second type described below is not performed.

[0191] In some embodiments, based on determining that the user's gaze is not directed toward the cursor when the first input is detected, such as Figure 9A In some embodiments, the device detects that the user's gaze is directed to content, such as a word or letter within a text (e.g., a letter within a word) and the electronic device performs a second operation of a second type different from the first type according to the first input (1002d), such as performing an operation according to the first input. Figures 9A to 9B In some embodiments, the second type of operation is a content or text selection operation, rather than a cursor movement operation (e.g., the first type of operation). In some embodiments, the amount of content or text selected is based on the amount of movement of the user's hand included in the first input (e.g., while the hand shape is maintained). In some embodiments, the amount of content or text selected is not based on the amount of movement of the user's hand in the first input (e.g., while the hand shape is maintained). Selecting the first type or the second type of operation based on gaze allows the user to quickly and efficiently select the operation to be performed in response to a given type of input, thereby making user-device interaction more efficient.

[0192] In some embodiments, the content includes textual content (1004a), such as in Figure 9A (e.g., the content is or includes font-based text and / or handwritten text; in some embodiments, the content also includes non-text content, but the cursor is displayed within the text content portion of the content). In some embodiments, the cursor is a text cursor displayed within the text content (1004b), such as in Figure 9AFor example, the cursor is an I-beam cursor that controls a position in the content at which text entered, such as via a physical or virtual keyboard, will be entered. For example, text input (if detected) will optionally be entered into the content at the position of the text cursor.

[0193] In some embodiments, the first input of the first type includes a pinching hand shape (1004c) held by the electronic device user's hand for longer than a time threshold, such as reference Figure 9A , 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds). For example, the pinch hand shape corresponds to the user's index finger and thumb finger tips being placed together (or within a threshold distance of each other, such as 0.1, 0.2, 0.5, 1, 2, or 5 cm). When the pinch hand shape is held longer than the time threshold, the input is optionally of the first type. When the pinch hand shape is released (for example, the index finger and thumb finger tips move away from each other (for example, greater than a threshold distance, such as 0.1, 0.2, 0.5, 1, 2, or 5 cm) before the time threshold from the detection of the pinch hand shape), the input is optionally not of the first type (for example, of the second type).

[0194] In some embodiments, the first operation of the first type includes initiating a cursor movement mode in which a text cursor (1004d) is moved within the text content according to (e.g., subsequent) movements of the user's hand, such as initiating a movement Figure 9A , 0.1, 0.2, 0.5, 1, 2, 5, or 10 cm from the text content). Subsequent movement of the hand while the pinching hand shape is maintained optionally causes the device to move the text cursor and / or the text content within the content in accordance with the movement of the hand. In response to detecting the release of the pinching hand shape, the electronic device optionally places the text cursor in the text content at its current position (e.g., reducing the separation of the text cursor from the plane containing the text content, such as to 0 cm from the distance the text cursor was separated from the text content before the pinching and holding input was detected).

[0195] In some embodiments, the second operation of the second type includes initiating a text selection mode in which at least a portion of the text content is selected based on a (e.g., subsequent) movement of the user's hand (1004e), such as initiating a selection Figure 9AIn some embodiments, the selected content starts with the content (e.g., word) to which the user's gaze is directed when the pinch and hold input is detected, and expands from there in the subsequent movement direction of the hand while maintaining the pinch hand. In response to detecting the release of the pinch hand, the electronic device optionally exits the content selection mode, and the currently selected / highlighted content / text remains selected / highlighted for further interaction (e.g., further expansion / contraction of the selected portion of the content, copy operation for the selected portion of the content, paste operation for the selected portion of the content, cut operation for the selected portion of the content, etc.). Initiating cursor movement or content selection mode based on gaze position allows the user to effectively interact with the cursor or content in the user interface without the need for additional input, thereby providing efficient user-device interaction.

[0196] In some embodiments, after detecting a first input of a first type (e.g., once the electronic device enters a cursor movement mode or a content selection mode in response to a pinch and hold input from a user's hand), the electronic device detects a second input (1006a) via one or more input devices that includes movement of a user-predefined portion (e.g., movement of the user's hand while maintaining a pinch hand shape).

[0197] In some embodiments, in response to detecting the second input, the electronic device performs a corresponding operation (1006b) different from the first operation and the second operation according to the movement of the user predefined part, such as moving Figure 9B The cursor 906a in the Figure 9B 910b in the highlighted portion of the text. For example, while the hand shape is being pinched, the cursor is moved within the content according to the hand movement (this is optionally different from the operation of the cursor leaving the content that optionally occurs in response to detecting the first input of the first type), or while the hand shape is being pinched, a portion of the content is selected within the content according to the hand movement (this is optionally different from the operation of entering content selection mode before the content has been selected that optionally occurs in response to detecting the first input of the first type). Initiating additional (e.g., different) operations in response to the hand movement after the first input allows additional types of operations to occur without having to restart interaction with the device / input to the device, thereby providing efficient user-device interaction.

[0198] In some embodiments, based on determining that the user's gaze is directed to the cursor when the first input is detected, the corresponding operation is a third operation (1008a), such as moving Figure 9B 906a in the text content. For example, a pinch and hold input detected when the user's gaze is directed toward the text cursor causes the text cursor to leave the plane containing the text content (e.g., to be separated from the text content by 0.1, 0.2, 0.5, 1, 2, 5, or 10 cm). Subsequent movement of the hand while the pinch hand shape is maintained optionally causes the device to move the text cursor and / or the text content within the content in accordance with the movement of the hand. In response to detecting the release of the pinch hand shape, the electronic device optionally places the text cursor in the text content at its current position (e.g., reducing the separation of the text cursor from the plane containing the text content, such as to 0 cm from the distance the text cursor was separated from the text content before the pinch and hold input was detected).

[0199] In some embodiments, based on determining that the user's gaze is not directed at the cursor when the first input is detected, the corresponding operation is a fourth operation (1008b) different from the third operation, such as selecting Figure 9B 910b in the highlighted text portion indicated. For example, the pinching and holding input detected when the user's gaze is not directed to the text cursor causes the electronic device to enter content and / or text selection / highlighting mode. The subsequent movement of the hand when the pinching hand is kept optionally causes the device to select content and / or text content according to the movement of the hand. In some embodiments, the selected content begins with the content (e.g., word) to which the user's gaze is directed when the pinching and holding input is detected, and expands from there in the subsequent movement direction of the hand while keeping the pinching hand. In response to detecting the release of the pinching hand, the electronic device optionally exits content selection mode, and the currently selected / highlighted content / text remains selected / highlighted for further interaction (e.g., further expansion / contraction of the selected portion of the content, copy operation for the selected portion of the content, paste operation for the selected portion of the content, shear operation for the selected portion of the content, etc.). Initiating different operations based on the gaze position allows the user to effectively interact with the cursor or content in the user interface without the need for additional input, thereby providing efficient user-device interaction.

[0200] In some embodiments, while displaying a three-dimensional environment including content including a cursor via a display generation component, the electronic device detects (1010a) via one or more input devices a second input of a second type different from the first type, the second input being provided by a user-predefined portion that is located farther than a threshold distance (e.g., 1, 2, 5, 10, 20, 50, 100, 500, or 1000 cm) from a location corresponding to the content in the three-dimensional environment, such as from Figure 9A, 0.1, 0.2, 0.5, 1, 2, or 5 cm) and come together at the fingertips, which is detected by a hand tracking device in communication with the electronic device. In some embodiments, the pinch gesture is of the second type when the duration of the pinch (e.g., the duration that the hand maintains a pinching hand shape with the thumb tip touching the fingertips) is shorter than a time threshold (e.g., 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds), and the pinch is released after the time threshold (e.g., the thumb tip and index finger tip move more than a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 2, or 5 cm) from each other).

[0201] In some embodiments, in response to detecting a second input of a second type provided by a user predefined portion (1010b), based on determining that the user's gaze is directed to the cursor when the second input is detected (for example, when the second input is detected, the device detects via an eye tracking device that the user's gaze is directed to the cursor, or is within a threshold distance such as 0.1, 0.2, 0.5, 1, 2, or 5 cm of the cursor), the electronic device performs a third operation (1010c) different from the first operation and the second operation according to the second input, such as displaying Figure 9B 924 in the menu (for example, and the first operation, the second operation, or the fourth operation described below is not performed).

[0202] In some embodiments, based on determining that the user's gaze is not directed at the cursor when the second input is detected (for example, when the second input is detected, the device detects via the eye tracking device that the user's gaze is not directed at the cursor, or is not within a threshold distance (such as 0.1, 0.2, 0.5, 1, 2 or 5 cm) of the cursor. In some embodiments, the device detects that the user's gaze is directed at content, such as at a word or letter within the text (for example, a letter within a word)), the electronic device performs a fourth operation (1010d) different from the first operation, the second operation and the third operation according to the second input, such as Figure 9B 906a as indicated by cursor 906b in FIG (e.g., and without performing the first, second, or third operations). Selecting between different operations based on gaze and / or input type (e.g., first type or second type) allows the user to quickly and efficiently select an operation to perform in response to a given type of input, thereby making user-device interaction more efficient.

[0203] In some embodiments, the second input of the second type includes a pinch gesture performed by a hand of a user of the electronic device (e.g., the thumb and index finger of the user's hand start to separate by more than a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 2, or 5 cm) and come together at the fingertips), followed by releasing the pinch gesture (1012a) within a time threshold of the pinch gesture (e.g., 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds), such as reference Figure 9A As described in hand 903b.

[0204] In some embodiments, the third operation includes displaying a cursor position (such as in Figure 9B One or more content modification options (1012b) for a portion of the content (e.g., within a menu 924 in the display) are displayed (e.g., without performing the fourth operation described below). For example, selectable cut, copy, and / or paste options are displayed to perform those operations on the portion (e.g., word, sentence, paragraph) of the (e.g., text) content where the cursor is located. In some embodiments, when the second input is detected, the portion of the content where the cursor is located is already selected / highlighted. In some embodiments, when the second input is detected, the portion of the content where the cursor is located becomes selected / highlighted.

[0205] In some embodiments, the fourth operation includes moving the cursor to a corresponding location in the content based on the location where the user's gaze is directed when the second input is detected (1012c), such as Figure 9B 906b in the figure (e.g., the third operation described above is not performed). For example, without providing hand movement input to the device to move the cursor, when the second input is detected, the cursor is moved (e.g., jumped) to the location in the content (e.g., text content) where the user's gaze is directed. Selecting between moving the cursor and displaying content modification options based on gaze and / or input type (e.g., first type or second type) allows the user to quickly and efficiently perform those different types of operations, thereby making user-device interaction more efficient.

[0206] In some embodiments, the fourth operation includes (1014a) deselecting the portion of the content (1014b) based on determining that a portion of the content was selected when the second input was detected (e.g., some of the content (e.g., text content) under which the cursor was located when the second input was detected was already selected / highlighted), such as Figure 9A Highlight 910a is no longer included in Figure 9BIn one embodiment, the device detects a selected / highlighted portion of the content and deselects / highlights the selected / highlighted portion of the content. In another embodiment, the device detects a selected / highlighted portion of the content and deselects / highlights the selected / highlighted portion of the content. In another embodiment, the device detects a selected / highlighted portion of the content and deselects / highlights the selected / highlighted portion of the content. In another embodiment, the device detects a selected / highlighted portion of the content and deselects / highlights the selected / highlighted portion of the content. In another embodiment, the device detects a selected / highlighted portion of the content and deselects / highlights the selected / highlighted portion of the content. In another embodiment, the device detects a selected / highlighted portion of the content and deselects / highlights the selected / highlighted portion of the content.

[0207] In some embodiments, the fourth operation includes (1016a) moving the cursor to the end of the first word (1016b) based on determining that the location where the user's gaze is directed when the second input is detected is within the first word in the content, such as Figure 9B As shown by cursor 906b in .

[0208] In some embodiments, the fourth operation includes moving the cursor to the end of the second word (1016c) based on determining that the location where the user's gaze is directed when the second input is detected is within a second word in the content that is different from the first word, such as if the gaze 908b is directed to Figure 9A different words in the content in the content. For example, when the second input corresponds to an input that moves the cursor to a new position in the content based on gaze (e.g., not based on hand movement), the device optionally inserts the cursor at a predetermined relative position (e.g., regardless of the exact position within the portion of the content that the gaze is directed to) of the portion of the content (e.g., a word, sentence, paragraph, etc.) to which the user's gaze is directed when the second input is detected. In some embodiments, the predetermined relative position is immediately after the last letter of the word to which the user's gaze is directed. In some embodiments, the predetermined relative position is immediately before the first letter of the word to which the user's gaze is directed. In some embodiments, the predetermined relative position is a different position in the portion of the content to which the user's gaze is directed. In some embodiments, when the cursor moves based on hand movement (e.g., such as in response to a first input of the first type), the electronic device does not insert the cursor at such a predetermined relative position, and in such embodiments, the electronic device optionally inserts the cursor at the position in the content to which the hand movement corresponds. Thus, if the hand movement corresponds to (e.g., moves the cursor to) different parts of a given word in the content, then upon detecting the release of the movement input, the electronic device inserts the cursor into those corresponding different parts of the word. Inserting the cursor in a predetermined relative position to the portion of the content provides a consistent and predictable response to gaze-based input that may be erratic, thereby making user-device interaction more efficient.

[0209] In some embodiments, the second operation of the second type includes selecting a portion of the content (e.g., selecting / highlighting a letter, a set of letters, a word, a set of words, a sentence, etc. in the content), and the selected portion of the content is displayed with a first selection indicator located at the beginning of the selected portion of the content (e.g., a visual "handle" displayed at a leading edge of the highlight / selection indicator). The leading edge handle is optionally manipulable (e.g., selectable and subsequently movable) to expand / contract the amount of content selected / highlighted starting from the leading edge of the highlight / selection indicator and the second selection indicator is located at the end of the selected portion of the content (1018a), such as Figure 9B Indicators 912a and 912b in the highlight / selection indicator are shown (e.g., visual "handles" displayed at the trailing edge of the highlight / selection indicator). The trailing edge handles are optionally manipulable (e.g., selectable and then movable) to expand / contract the amount of content selected / highlighted from the trailing edge of the highlight / selection indicator.

[0210] In some embodiments, when a selected portion of the content is selected and displayed along with a first selection indicator and a second selection indicator, the electronic device detects (1018b) via one or more input devices a second input corresponding to a request to modify which portion of the content is selected using the first selection indicator or the second selection indicator (e.g., detecting a user's gaze toward one of the pointing handles and / or toward a portion of the selected / highlighted content, and a pinch (e.g., and hold) gesture performed by a hand of a user of the electronic device).

[0211] In some embodiments, in response to detecting the second input (1018c), based on determining that the second input includes a user's gaze pointing to a selected portion of the content corresponding to the first portion of the first selection indicator, such as Figure 9B In some embodiments, when the user's gaze is directed to the left half of the selected portion of the content, such as if a logical division divides the selected portion of the content into a left half and a right half through the horizontal center of the selected portion of the content, the user's gaze is directed to the portion of the selected portion of the content corresponding to the leading edge handle), the electronic device selects the content based on the movement of the first selection indicator according to the second input (such as Figure 9C ) to modify (1018d) which portion of the content is selected (e.g., if the user's gaze corresponds to selection of a leading edge handle, subsequent movement input (e.g., user hand movement while maintaining a pinching hand shape) optionally causes the leading edge of the selection / highlighting to change in accordance with the movement input).

[0212] In some embodiments, based on determining that the second input includes a user's gaze directed to a second portion of the selected portion of the content corresponding to the second selection indicator that is different from the first portion, such as if gaze 908d had been directed to Figure 9B Indicator 912b in (e.g., the user's gaze is directed to the trailing edge handle or to a portion of the selected content within a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 3, 5, 10, or 20 cm) of the trailing edge handle. In some embodiments, when the user's gaze is directed to the right half of the selected portion of the content, such as if a logical division divides the selected portion of the content into a left half and a right half through the horizontal center of the selected portion of the content, then the user's gaze is directed to the portion of the selected portion of the content corresponding to the trailing edge handle), the electronic device selects the content based on the movement of the second selection indicator according to the second input (such as Figure 9B 912b in the figure) to modify (1018e) which portion of the content is selected (e.g., if the user's gaze corresponds to selection of the trailing edge handle, subsequent movement input (e.g., user hand movement while maintaining a pinching hand shape) optionally causes the trailing edge of the selection / highlighting to change according to the movement input). Controlling selection expansion and contraction based on gaze allows the user to easily modify the selection without additional input, thereby making user-device interaction more efficient.

[0213] In some embodiments, when the selected portion of the content is selected and displayed with the first indicator and the second selection indicator (e.g., before or during detection of the second input) (1020a), based on determining that the user's gaze is directed to the first portion of the first selection indicator corresponding to the selected portion of the content, the electronic device changes (1020b) the visual appearance of the first selection indicator to indicate that additional input will interact with the first selection indicator, such as Figure 9B For example, the leading edge handle may be highlighted, the color of the leading edge handle may be changed, the brightness of the leading edge handle may be changed, the size of the leading edge handle may be changed, or the leading edge handle may be otherwise visually emphasized relative to the trailing edge handle (e.g., if a selection and subsequent movement input, such as the second input, is detected, the trailing edge handle does not move in response to the movement input).

[0214] In some embodiments, based on determining that the user's gaze is directed to a second portion of the content corresponding to the second selection indicator, the electronic device changes (1020c) the visual appearance of the second selection indicator to indicate that additional input will interact with the second selection indicator, such as if indicator 912b is in response to gaze 908d. Figure 9BIn one embodiment, the device may display a selection indicator with a different visual appearance than the first selection indicator (e.g., instead of the first selection indicator) when the user points to it. For example, the trailing edge handle may be highlighted, the color of the trailing edge handle may be changed, the brightness of the trailing edge handle may be changed, the size of the trailing edge handle may be changed, or the trailing edge handle may be visually emphasized in other ways relative to the leading edge handle (e.g., if a selection and subsequent movement input, such as the second input, is detected, the trailing edge handle will not move in response to the movement input). Visually indicating which handle will be activated in response to a selection input provides feedback to the user before potentially incorrect input is provided by the user and / or detected by the device, thereby making user-device interaction more efficient.

[0215] In some embodiments, while displaying a three-dimensional environment including content containing a cursor via a display generation component, the electronic device detects (1022a) a second input via one or more input devices, the second input including a pinch gesture performed by a user's hand and movement of the hand while maintaining the pinch hand shape within a time threshold of the pinch gesture (e.g., 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds), while the hand is located farther than a threshold distance (e.g., 1, 2, 5, 10, 20, 50, 100, 500, or 1000 cm) from a location corresponding to the content in the three-dimensional environment, such as a reference. Figure 9A 903c in the figure (e.g., the hand is providing indirect input to the content and / or cursor). For example, the second input includes a pinch gesture performed by the hand of the user of the electronic device, such as the thumb and index finger of the user's hand begin to separate by more than a threshold distance (e.g., 0.1, 0.2, 0.5, 1, 2, or 5 cm) and come together at the fingertips, which is detected by a hand tracking device in communication with the electronic device. In some embodiments, while the pinch hand shape is maintained and before a threshold time has passed since the pinch hand shape was formed, the electronic device detects movement of the hand while maintaining the pinch hand shape (e.g., greater than a threshold distance, such as 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, or 50 cm).

[0216] In some embodiments, in response to detecting the second input, the electronic device scrolls the content (1022b) according to the hand movement, such as Figure 9D) as shown in (e.g., without moving the cursor and / or without selecting / highlighting content). For example, if the hand moves vertically, the content is optionally scrolled vertically based on the hand movement, and if the hand moves horizontally, the content is optionally scrolled horizontally based on the hand movement. In some embodiments, in response to detecting the release of the pinching hand shape, the electronic device no longer scrolls the content based on further movement of the hand that is not in the pinching hand shape. In some embodiments, when the second input is detected, the electronic device scrolls the content as described above regardless of whether the user's gaze is directed to the cursor or not. Allowing scrolling based on hand movement (e.g., optionally in combination with the ability to provide cursor movement and / or text selection input based on hand movement) provides a consistent type of user interaction with the device (e.g., input based on hand movement), thereby making user-device interaction more efficient and reducing errors in use.

[0217] In some embodiments, the content includes text content (e.g., the content is or includes font-based text and / or handwritten text; in some embodiments, the content also includes non-text content, but the cursor is displayed within the text content portion of the content), and the cursor is a text insertion cursor (1024) within the text content, such as a reference to Figures 9A to 9C As shown and described. For example, the cursor is an I-beam cursor that controls a position in the content at which text entered, such as via a physical or virtual keyboard, will be entered. For example, text input (if detected) will optionally be entered into the content at the position of the text cursor. Providing the above-described gaze-based and / or hand-movement-based control of a text insertion cursor within text content provides efficient text content manipulation and / or editing, thereby making user-device interaction more efficient.

[0218] In some embodiments, when a text insertion cursor is displayed within the text content, the electronic device detects (1026a) text insertion input corresponding to the corresponding text via one or more input devices. For example, input from a physical keyboard in communication with the electronic device or a virtual keyboard displayed by the electronic device is detected. The corresponding text is optionally a character corresponding to a key of the physical / virtual keyboard that is detected as selected (e.g., "Hello world!").

[0219] In some embodiments, in response to detecting the text insertion input, the electronic device inserts (1026b) the corresponding text into the text content at the location of the text insertion cursor, such as Figure 9C. The detected text insertion input (e.g., corresponding to "Hello world!") is inserted into the text content at the position of the text insertion cursor. Thus, in some embodiments, the various aforementioned interactions with the cursor are interactions with the text insertion cursor within the text content. Providing the aforementioned gaze-based and / or hand-movement-based control of the text insertion cursor within the text content provides efficient control for entering text into the text content, thereby making user-device interaction more efficient.

[0220] In some embodiments, while displaying a three-dimensional environment that includes content including a cursor, wherein the cursor is displayed with a first visual appearance (e.g., the cursor is displayed in the three-dimensional environment with a first animation effect, at a first size, and / or in a first color, as described in more detail below), the computer system detects (1028a) via one or more input devices a user's attention directed toward the cursor, such as gaze 908e directed toward cursor 906a, as described in more detail below. Figure 9E , (e.g., the user's gaze is directed toward the cursor in the three-dimensional environment or is within a threshold distance of the cursor in the three-dimensional environment (e.g., the threshold distance is 0.5, 0.75, 1, 1.5, 2, 5, 7, or 10 cm, or 5, 10, 15, 20, 25, 30, 40, 50, or 90 degrees (e.g., as measured between (1) a "ray" extending from the viewpoint and / or position of the user's eyes and the cursor and (2) a ray extending from the user's gaze)). In some embodiments, in response to detecting the user's attention directed toward the cursor, the computer system displays (1028b) a cursor having a second visual appearance different from the first visual appearance within the content in the three-dimensional environment, such as at Figure 9E China, Israel and Belgium Figure 9D In some embodiments, the cursor is displayed in a second visual appearance when the user's gaze is no longer directed at the cursor in the three-dimensional environment. Changing the visual appearance of the cursor within the content in the three-dimensional environment when the user's gaze is directed at the cursor facilitates user input for performing one or more additional actions related to the content in which the cursor is positioned in the three-dimensional environment, thereby improving user-device interaction.

[0221] In some embodiments, displaying the cursor with a first visual appearance includes displaying the cursor (1030a) within the content with an animation effect (e.g., displaying the cursor with a blinking effect in a three-dimensional environment when the user's gaze is not directed toward the cursor within the content). In some embodiments, displaying the cursor with a second visual appearance includes displaying the cursor (1030b) within the content without an animation effect, as described herein with reference to Figure 9EFor example, when the user's gaze is directed at the cursor within the content, the cursor is no longer displayed with a blinking effect within the three-dimensional environment. In some embodiments, when the user's gaze is no longer directed at the cursor, the cursor begins blinking again within the three-dimensional environment. Changing the animation effect of the cursor within the content in the three-dimensional environment when the user's gaze is directed at the cursor facilitates user input for performing one or more additional actions related to the content in which the cursor is positioned within the three-dimensional environment, thereby improving user-device interaction.

[0222] In some embodiments, displaying the cursor with a first visual appearance includes displaying the cursor (1032a) at a first size within the content (e.g., displaying the cursor at a first height and / or a first width in a three-dimensional environment when the user's gaze is not directed at the cursor within the content). In some embodiments, displaying the cursor with a second visual appearance includes displaying the cursor (1032b) at a second size that is different from the first size, such as in Figure 9E China, Israel and Belgium Figure 9D In some embodiments, the cursor 906a is displayed at a larger size than the size of the cursor 906a shown in the 3D environment. For example, when the user's gaze is directed toward the cursor within the content, the cursor is displayed at a second height and / or a second width in the 3D environment. In some embodiments, when the gaze is directed toward the cursor, the cursor is displayed at a larger size (e.g., a larger height and / or a larger width) in the 3D environment. In some embodiments, when the user's gaze is no longer directed toward the cursor, the cursor is redisplayed at the first size in the 3D environment. Changing the size of the cursor within the content in the 3D environment when the user's gaze is directed toward the cursor facilitates user input for performing one or more additional actions involving the content in which the cursor is positioned in the 3D environment, thereby improving user-device interaction.

[0223] In some embodiments, displaying the cursor with a first visual appearance includes displaying the cursor (1034a) within the content in a first color (e.g., displaying the cursor in a color such as black, blue, red, green, orange, or purple in a three-dimensional environment when the user's gaze is not directed at the cursor within the content). In some embodiments, displaying the cursor with a second visual appearance includes displaying the cursor (1034b) in a second color that is different from the first color, as described herein with reference to Figure 9E For example, when the user's gaze is directed toward the cursor within the content, the cursor is displayed in a different color within the three-dimensional environment. In some embodiments, if the first color is black, the second color is blue. In some embodiments, when the user's gaze is no longer directed toward the cursor, the cursor is redisplayed in the first color within the three-dimensional environment. Changing the color of the cursor within the content in the three-dimensional environment when the user's gaze is directed toward the cursor facilitates user input for performing one or more additional actions related to the content in which the cursor is positioned within the three-dimensional environment, thereby improving user-device interaction.

[0224] In some embodiments, while displaying a three-dimensional environment including content containing a cursor via the display generation component, the computer system detects (1036a) via one or more input devices a second input including a user directing attention toward the cursor (1036b), such as pointing toward a cursor (1036b). Figure 9E , a gaze 908e of the cursor 906a shown in FIG (e.g., the user's gaze is directed toward or within a threshold distance of the cursor in the three-dimensional environment (e.g., the user's gaze is directed toward or within a threshold distance of the cursor in the three-dimensional environment (e.g., the threshold distance is 0.5, 0.75, 1, 1.5, 2, 5, 7, or 10 cm, or 5, 10, 15, 20, 25, 30, 40, 50, or 90 degrees (e.g., as measured between (1) a "ray" extending from the viewpoint and / or position of the user's eye and the cursor and (2) a ray extending from the user's gaze))) and a corresponding gesture performed by a user-predefined portion of the electronic device (1036c), such as by Figure 9A In some embodiments, the duration of the corresponding gesture (e.g., the initiation of the pinch gesture to the end of the pinch gesture, where the index finger and thumb of the hand are no longer touching (e.g., moved 0.1, 0.2, 0.5, 1, 2, or 5 cm away from each other)) is less than a time threshold (e.g., 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds).

[0225] In some embodiments, in response to detecting the second input (1036d), the computer system displays (1036e) via the display generation component one or more text information options corresponding to a portion of the content where the cursor is located (e.g., in Figure 9B ), wherein one or more text information options are selectable to cause the electronic device to perform a corresponding text information operation corresponding to the portion of the content, as described herein with reference to Figure 9B As described. For example, selectable definitions, translations, and / or dictation options are displayed to perform those operations (e.g., display definitions, display translations, and / or dictation) involving a portion (e.g., a word, sentence, paragraph) of the (e.g., text) content where the cursor is located. In some embodiments, when the second input is detected, the portion of the content where the cursor is located has already been selected / highlighted. In some embodiments, when the second input is detected, the portion of the content where the cursor is located becomes selected / highlighted. Displaying the text information option when a pinch gesture is detected when the user's gaze is directed toward text content in a three-dimensional environment reduces the number of inputs required to perform corresponding actions involving text content, thereby improving user-device interaction.

[0226] In some embodiments, the content includes textual content (1038a) (e.g., a word, sentence, and / or paragraph). In some embodiments, while displaying, via the display generation component, a three-dimensional environment including textual content, wherein the textual content does not include a cursor (e.g., the cursor is not displayed in the three-dimensional environment, or the cursor is displayed in a different portion of the three-dimensional environment than the portion including the textual content), the computer system detects (1038b) via one or more input devices a second input corresponding to a request to display a cursor in the textual content, such as by Figure 9A , a pinch input provided by hand 903b in the text content (e.g., a pinch gesture performed by a user's hand as described above, such as an air pinch gesture, followed by a release of the pinch gesture (e.g., wherein the user's index finger and thumb are no longer touching) within a time threshold (e.g., 0.1, 0.2, 0.3, 0.5, 1, 1.5, 2, 3, or 5 seconds) after the pinch gesture is first detected), including the user's attention directed to a location within a portion of the text content (e.g., Figure 9A In some embodiments, in response to detecting the second input (1038c), based on determining that the portion of the text content to which the user's attention was directed when the second input was detected contains modifiable text (e.g., the text is editable (e.g., text or portions of text can be deleted, additional text can be added to existing text, and / or text can be moved (e.g., copied and pasted) to a different location within the text content)), the computer system displays (1038d) a cursor at the end of the portion of the text content, such as Figure 9B , the cursor 906 b is shown at the end of the word “ornare” (e.g., when the second input is detected, the cursor is inserted at the end of the portion of text content to which the gaze is directed, regardless of the exact position within the portion of text content to which the gaze is directed. In some embodiments, the cursor is inserted immediately after the last letter of the word to which the user's gaze is directed.)

[0227] In some embodiments, based on determining that the portion of the text content to which the user's attention was directed when the second input was detected does not contain modifiable text (e.g., the text is read-only (e.g., text or portions of text cannot be deleted, additional text cannot be added to existing text, and / or text cannot be moved (e.g., copied and pasted) to a different location within the text content)), the computer system displays (1038e) a cursor at the beginning of the portion of text in the text content, as described herein with reference to Figure 9BAs described. For example, when the second input is detected, the cursor is inserted at the beginning of the portion of the text content pointed to by the gaze, regardless of the exact position within the portion of the text content pointed to by the gaze. In some embodiments, the cursor is inserted immediately before the first letter of the word pointed to by the user's gaze. Inserting the cursor at a predetermined relative position of the portion of the text content based on the type of text content promotes user input for interacting with the text content, thereby improving user-device interaction.

[0228] Figures 11A to 11G Examples of electronic devices that facilitate cursor movement according to some embodiments are shown.

[0229] Figure 11A The electronic device 101 is shown via a display generation component (eg, Figure 1 The display generation component 120) displays the three-dimensional environment 1102 from the viewpoint of the user of the electronic device 101. Figure 1 As described in FIG6 , the electronic device 101 optionally includes a display generation component (eg, a touch screen) and a plurality of image sensors (eg, Figure 3 The image sensor 314 optionally includes one or more of the following: a visible light camera; an infrared camera; a depth sensor; or any other sensor that the electronic device 101 can use to capture one or more images of the user or a portion of the user (e.g., one or more hands of the user) when the user interacts with the electronic device 101. In some embodiments, the user interface shown and described below may also be implemented on a head-mounted display that includes a display generation component that displays the user interface or three-dimensional environment to the user, as well as sensors that detect movement of the physical environment and / or the user's hands (e.g., external sensors facing outward from the user) and / or sensors that detect the user's gaze (e.g., internal sensors facing inward toward the user's face).

[0230] like Figure 11A As shown, device 101 captures one or more images of the physical environment (e.g., operating environment 100) surrounding device 101 (including one or more objects in the physical environment surrounding device 101). In some embodiments, device 101 displays a representation of the physical environment in a three-dimensional environment 1102. For example, three-dimensional environment 1102 includes a representation of a sofa (partially obscured by object 1104c), which is optionally a representation of a physical sofa in the physical environment; three-dimensional environment 1102 includes a representation of a table (partially obscured by object 1104b), which is optionally a representation of a physical table in the physical environment. Three-dimensional environment 1102 also includes representations of the physical floor, ceiling, and back and side walls of the room in which device 101 is located.

[0231] exist Figure 11A, the three-dimensional environment 1102 also includes virtual objects 1104a, 1104b, and 1104c. The virtual objects 1104a, 1104b, and 1104c are, optionally, one or more of user interfaces of applications (e.g., messaging user interfaces, content browsing user interfaces, etc.), three-dimensional objects (e.g., virtual clocks, virtual balls, virtual cars, etc.), content representations (e.g., representations of photos, videos, movies, music, etc.), or any other elements displayed by the device 101 that are not included in the physical environment of the device 101. Figure 11A In the embodiment, virtual objects 1104a, 1104b, and 1104c are two-dimensional objects, but the examples described herein are similarly applicable to three-dimensional objects. In addition, in some embodiments, device 101 does not display objects 1104a, 1104b, and 1104c simultaneously. In such embodiments, the interactions with objects 1104a, 1104b, and 1104c described below optionally occur independently.

[0232] exist Figure 11A 9, object 1104a includes cursors 1106a and 1106b, object 1104b includes cursor 1106c, and object 1104c includes indicator 1112b (e.g., which optionally operates as a content selection cursor, as will be described in detail below, and which is also described in the FIG9 series of figures). Just as objects 1104a, 1104b, and 1104c need not be displayed by device 101 at the same time, cursors 1106a-d also optionally are not displayed by device 101 at the same time. In such embodiments, device 101 optionally independently performs the cursor operations described below.

[0233] Device 101 optionally facilitates movement of the cursor differently depending on whether the cursor is moving toward the gaze of a user of device 101 and / or depending on the operation controlled and / or performed by the cursor during movement. Examples of this will now be described. Figure 11A In FIG, the device 101 is detecting a first cursor movement input from hand 1103a and a second cursor movement input from hand 1103b. Figures 11A to 11C, multiple hands and multiple corresponding inputs are shown in FIG, but such hands and inputs need not be detected simultaneously by device 101; rather, in some embodiments, device 101 independently responds to such hands and / or inputs in response to independently detecting the hands and / or inputs shown and described. Cursor movement input from hand 1103a optionally includes detecting hand 1103a in a pinching hand shape (e.g., with the thumb and index finger tips of hand 1103a touching), and movement of hand 1103a in a downward direction and a rightward direction while maintaining the pinching hand shape. Cursor movement input from hand 1103b optionally includes detecting hand 1103b in a pinching hand shape (e.g., with the thumb and index finger tips of hand 1103b touching), and movement of hand 1103b in an upward direction and a leftward direction while maintaining the pinching hand shape. The magnitude of the movement of hands 1103a and 1103b is optionally the same.

[0234] The response of the device 101 to the input from the hands 1103a and / or 1103b is optionally varied as previously described. Figure 11A , cursors 1106a and 1106b optionally do not perform operations in object 1104a (e.g., do not perform drawing or marking operations, do not perform content selection operations, etc.). Thus, in response to cursor movement input from hand 1103a or 1103b, device 101 optionally moves cursors 1106a and / or 1106b within object 1104a, while those cursors do not perform operations in object 1104a other than being moved. In this case, device 101 optionally accelerates the movement of the cursor toward the user's gaze more than the movement of the cursor away from the user's gaze. Furthermore, in some embodiments, the farther the cursor is from the user's gaze, the more device 101 optionally accelerates the movement of the cursor toward the user's gaze. For example, in Figure 11A In FIG. 1 , the user's gaze 1108a is directed to the lower right portion of object 1104a, and cursor 1106a is closer to gaze 1108a than cursor 1106b. Figure 11A In the example of cursor 1106a in FIG, device 101 moves cursor 1106a an intermediate distance (e.g., toward gaze 1108a) based on the movement of hand 1103a, as shown in FIG. Figure 11B However, when the same input from hand 1103a points to Figure 11B In the example of cursor 1106b in FIG, device 101 moves cursor 1106b a greater distance (e.g., toward gaze 1108a) based on the movement of hand 1103b, as shown in FIG. Figure 11BIn response to the same amount of movement of hand 1103a, device 101 optionally moves cursor 1106b further than cursor 1106a because cursor 1106b is farther from gaze 1108a than cursor 1106a. Therefore, the farther the cursor is from gaze 1108a, the more device 101 optionally accelerates the movement of the cursor toward gaze 1108a.

[0235] On the contrary, when the input from the hand 1103b points to Figure 11A In the example of the cursor 1106a in FIG, the device 101 moves the cursor 1106a a small distance (e.g., away from the gaze 1108a) according to the movement of the hand 1103b, as shown in FIG. Figure 11B . Device 101 optionally moves cursor 1106a less than the corresponding movement toward gaze 1108a because device 101 does not accelerate or decelerate the movement of the cursor away from gaze 1108a. In this way, device 101 facilitates fast and efficient movement of the cursor to the area of ​​3D environment 1102 where the user's gaze is currently directed.

[0236] As previously mentioned, in some embodiments, if the cursor performs an action (other than movement) in the three-dimensional environment 1102 while moving, the device 101 does not accelerate or decelerate the movement of the cursor based on whether the cursor is moving toward or away from the user's gaze. Figure 11A In the example, object 1104b includes cursor 1106c. Cursor 1106c optionally performs a marking operation corresponding to the movement of cursor 1106c in object 1104b (e.g., creates a mark in object 1104b), and cursor 1106c has created mark 1110a. The user's gaze 1108b is directed to the lower right corner of object 1104b. When the input from hand 1103a is directed to Figure 11A In the example of cursor 1106c in FIG, device 101 moves cursor 1106c a certain distance (e.g., toward gaze 1108b) according to the movement of hand 1103a, as shown in FIG. Figure 11B . As shown in . When moved, cursor 1106c has created a mark 1110b in object 1104b based on the movement of hand 1103a. The amount that cursor 1106c moves in response to input from hand 1103a is optionally less than the amount that cursors 1106a and / or 1106b move in response to the same input from hand 1103a because, although all three cursors move optionally toward the user's gaze, cursor 1106c performs a marking operation in object 1104b when moved, while cursors 1106a and 1106b do not perform an operation (other than moving) in object 1104a when moved. In this way, device 101 avoids potentially undesirable consequences of operations performed by the cursor when moving the cursor in three-dimensional environment 1102.

[0237] Similarly, in Figure 11A , an indication 1112b (operating at a content selection cursor) is also being performed in the three-dimensional environment 1102. Specifically, object 1104c includes (e.g., text) content. A portion of the content has been highlighted / selected, as shown by highlight 1113 (e.g., similar to reference 1114). 9A to 9D The highlight 1113 is indicated by the highlight 910a and / or 910b). The highlight 1113 is displayed together with an indication 1112a located at the beginning of the highlight 1113 and an indication 1112b located at the end of the highlight 1113. The indication 1112a is optionally selectable and movable to expand or contract the highlight 1113 of the content from the beginning of the highlight 1113, and the indication 1112b is optionally selectable and movable to expand or contract the highlight 1113 of the content from the end of the highlight 1113. The indications 1112a and 1112b optionally have reference 9A to 9D One or more of the characteristics of indications 912a and 912b. Figure 11A , indication 1112b is currently active (eg, in cursor control mode, operating like a cursor) such that cursor movement input directed to indication 1112b will expand or contract at least highlight 1113 from the end of highlight 1113 depending on the cursor movement input.

[0238] When the user's gaze 1108c is directed to the lower right corner of the object 1104c and the input from the hand 1103a is directed to Figure 11A In the example of the indication 1112b in FIG, the device 101 moves the indication 1112b a certain distance (e.g., toward the gaze 1108c) according to the movement of the hand 1103a, as shown in FIG. Figure 11B . As it moves, indication 1112b extends selection 1113 downward and to the right in accordance with the movement of hand 1103a. The amount by which indication 1112b moves in response to input from hand 1103a is optionally less than the amount by which cursor 1106a and / or 1106b moves in response to the same input from hand 1103a, and optionally the same amount as the amount by which cursor 1106c moves in response to the same input from hand 1103a, because, although all three cursors move optionally toward the user's gaze, indication 1112b performs a content selection operation in object 1104c when it moves, while cursors 1106a and 1106b do not perform an operation (other than movement) in object 1104a when they move. In this way, device 101 avoids potentially undesirable consequences of operations performed by the cursor when the cursor is moved in three-dimensional environment 1102.

[0239] It should be understood that in some embodiments, one or more of the above techniques regarding gaze location are performed relative to an attention location. In some embodiments, an attention location is a location in a three-dimensional environment that a user is noticing according to the above criteria. Figures 11C to 11G Additional exemplary techniques are described with respect to an attention location.In some embodiments, the techniques described with reference to an attention location are performed with respect to a gaze location.

[0240] Figure 11C 106a, object 1104b with drawing 1110a and cursor 1106c, and object 1104c with highlight 1113 and indicators 1112a and 1112b. As described above, in some embodiments, the computer system 101 displays one or both of objects 1104a, 1104b, and / or 1104c, rather than displaying objects 1104a, 1104b, and 1104c simultaneously. In some embodiments, the computer system 101 displays objects 1104a, 1104b, and 1104c simultaneously. For the sake of brevity, Figures 11C to 11G The computer system is shown performing operations in response to one or more inputs simultaneously relating to objects 1104a, 1104b, or 1104c. In some embodiments, in response to receiving cursor movement input, the computer system 101 manipulates one of the cursors 1106a or 1106c or the pointers 1112a or 1112b, depending on which object 1104a, 1104b, or 1104c currently has focus on the computer system 101. While displaying objects 1104a, 1104b, and 1104c, the computer system 101 receives cursor movement input, such as cursor movement input provided by hand 1103a or cursor movement input provided by hand 1103b. In some embodiments, the computer system 101 receives input provided by hands 1103a and 1103b sequentially rather than simultaneously. In some embodiments, the computer system 101 receives cursor movement input similar to the input provided by hand 1103a or the input provided by hand 1103b.

[0241] exist Figure 11C , detecting the cursor movement input provided by the hand 1103a and the hand 1103b includes detecting that the user makes a pinching hand shape with the hand 1103a or the hand 1103b and maintains the pinching hand shape. Figure 11C103a or 1103b. For example, the cursor movement input provided by hand 1103a includes movement of hand 1103a while hand 1103a is in a pinching hand shape downward and to the right with a corresponding magnitude. For another example, the cursor movement input provided by hand 1103b includes movement of hand 1103b while hand 1103b is in a pinching hand shape downward and to the right with a magnitude greater than the corresponding magnitude of the hand movement of the cursor movement input provided by hand 1103a. In some embodiments, detecting cursor movement input includes detecting movement of a finger of hand 1103a or hand 1103b. For example, the computer system 101 detects movement of a finger of hand 1103a or 1103b when hand 1103a or 1103b is in a pinching hand shape. As another example, detecting cursor movement input includes detecting a user making a pointing hand shape with hand 1103a or 1103b, wherein one or more fingers are extended and one or more fingers are curled toward the palm, and detecting movement of hand 1103a or 1103b while in the pointing hand shape. In some embodiments, in response to detecting cursor movement input in this manner, computer system 101 moves cursor 1106a or 1106c or pointer 1112a or 1112b according to the movement of the extended fingers when hand 1103a or 1103b is in the pointing hand shape. As described above with reference to Figures 11A to 11B As described above, in response to the cursor movement input provided by hand 1103a or hand 1103b, computer system 101 moves cursor 1106a or 1106c or pointer 1112a or 1112b according to the direction and magnitude of the movement of hand 1103a or hand 1103b. For example, Figure 11D Cursors 1106a and 1106c and indicator 1112b are shown in response to Figure 11C Movement of the cursor movement input provided by hand 1103a and the cursor movement input provided by hand 1103b shown in FIG.

[0242] Figure 11D Cursors 1106a and 1106c and indicator 1112b are shown in response to Figure 11C In response to the movement of the cursor movement input provided by the hand 1103a and the cursor movement input provided by the hand 1103b shown in FIG. Figure 11C The computer system 101 moves the cursor 1106a from the hand 1103a in the Figure 11C Move to the position shown in Figure 11D In response to the position of the cursor 1106a' shown in Figure 11C The computer system 101 moves the cursor 1106a from the hand 1103b in the Figure 11C Move to the position shown in Figure 11DIn some embodiments, because the amount of movement of the hand 1103b is greater than Figure 11C The amount of movement of the hand 1103a in the Figure 11C In some embodiments, the movement of hands 1103a and 1103b is toward attention location 1108a in object 1104a, so the amount of movement of cursor 1106a increases from the amount corresponding to the amount of movement of hand 1103a or 1103b if no acceleration is applied.

[0243] In response to Figure 11C The computer system 101 moves the cursor 1106c from the hand 1103a in the Figure 11C Move to the position shown in Figure 11D , and adds drawing 1110a' to object 1104b. Figure 11C The computer system 101 moves the cursor 1106c from the hand 1103b in the Figure 11C Move to the position shown in Figure 11D , and adds drawings 1110a' and 1110a" to object 1104b. In some embodiments, because the amount of movement of hand 1103b is greater than Figure 11C The amount of movement of the hand 1103a in the Figure 11C 1104b, the position of cursor 1106c in the drawing 1104b moves a distance greater than the movement of cursor 1106c', and drawing 1110a" adds length to drawing 1110a'. In some embodiments, the movement of hands 1103a and 1103b is toward attention location 1108b in object 1104b, so if no acceleration is applied, the amount of movement of cursor 1106c is increased from the amount corresponding to the amount of movement of hand 1103a or 1103b. In some embodiments, because the user draws with cursor 1106c, the computer system does not accelerate the movement of cursor 1106c toward attention location 1108b.

[0244] In response to Figure 11C The computer system 101 will indicate 1112b from Figure 11C Move to the position shown in Figure 11D In response to the position of the indication 1112b' shown in , and adding highlight 1113a' to the object 1104c. Figure 11C The computer system 101 will indicate 1112b from Figure 11C Move to the position shown in Figure 11D , and adds highlights 1113a' and 1113a" to object 1104c. In some embodiments, because the amount of movement of hand 1103b is greater than Figure 11C The amount of movement of the hand 1103a in the Figure 11C 1104c , the position of pointer 1112b in the selected text moves a distance greater than the movement of pointer 1112b', and highlight 1113a' adds content to highlight 1113a'. In some embodiments, the movement of hands 1103a and 1103b is toward attention location 1108c in object 1104b, so if no acceleration is applied, the amount of movement of cursor 1106c increases from the amount corresponding to the amount of movement of hand 1103a or 1103b. In some embodiments, when selecting text, as in object 1104c, computer system 101 does not apply acceleration to attention location 1108c and moves pointer 1112b according to the amount of movement of hand 1103a or 1103b regardless of gaze location 1108c.

[0245] Thus, in some embodiments, as described above with reference to 11A to 11D As described above, the computer system 101 accelerates movement of the cursor 1106a or 1106c or the pointer 1112a or 1112b toward the location in the user interface that the user is looking at or paying attention to. Additionally or alternatively, in some embodiments, the computer system 101 accelerates or limits movement of the cursor or pointer within an area of ​​the environment to which a part of the user's body is pointing, such as the area to which the user's forearm is pointing. For example, if the user initiates a cursor movement while the forearm is pointing toward the attention location 1108a, Figure 11C , the cursor 1106a will optionally be moved in a direction greater than that indicated by the forearm pointing to the hand 1103a or the hand 1103b. Figure 11C For example, if the user initiates a cursor movement input when the user's forearm is pointing to the position of the cursor 1106a as shown in FIG. Figure 11C If the hand 1103a or the hand 1103b is moved as shown, the computer system 101 optionally does not move the cursor 1106a outside the area of ​​the three-dimensional environment pointed to by the forearm, resulting in the cursor 1106a moving faster than moving to Figure 11D For example, if the user moves the cursor 1106a' or 1106a" to a smaller distance than the cursor 1106a' or 1106a". Figure 11CIf the user moves their forearm in a coordinated manner with hand 1103a or hand 1103b so that the forearm remains pointed at cursor 1106a when cursor movement input is received, the computer system 101 optionally moves cursor 1106a based on the movement of hand 1103a or 1103b and attention location 1108a without additional acceleration or limitation based on the user's forearm because the forearm remains pointed at cursor 1106a when the cursor moves.

[0246] In some embodiments, computer system 101 determines the position and / or area in the user interface that forearm points to by following the vector from user's elbow to user's wrist to the position and / or area in the user interface.In some embodiments, position is discrete position.In some embodiments, area is the area with predetermined size (for example, height, width, diameter), such as 10,20,30,50,100,200 or 500 centimeters or 1,2,3,5 or 10 meters.In some embodiments, the size of area depends on the distance between the area of ​​user's forearm and user interface, such as making the size of area based on the cone projection from user's wrist in the direction that user's forearm points to.In some embodiments, cone has the angle of 0.1,0.2,0.3,0.5,1,2,3,5,10,15 or 30 degree.For example, if this area is relatively close to user's forearm, then this area is smaller than if this area is relatively far away from user's forearm.

[0247] In some embodiments, the accelerated movement of the cursors 1106a', 1106a', 1106c', and 1106c' and the indicators 1112a, 1112b', and 1112b' relative to the user's gaze, attention, or the location to which the user's forearm is pointing includes simulating physical properties between the cursors 1106a', 1106a', 1106c', and 1106c" and the indicators 1112a, 1112b', and 1112b" and the user's gaze, attention, or the location to which the user's forearm is pointing. In some embodiments, the simulated physical property is gravity, magnetism, inertia, or electric potential. For example, when a cursor having simulated magnetism is moved relative to the location to which the user is paying attention, the simulated magnetism is stronger when the cursor is closer to the location to which the user is paying attention than when the cursor is further away from the location to which the user is paying attention (e.g., there is a greater cursor acceleration).

[0248] exist Figure 11DIn some embodiments, the computer system 101 receives a scrolling input that includes movement of the hand 1103a. In some embodiments, detecting the scrolling input includes detecting that one or more criteria are met to distinguish the scrolling input from the cursor movement input. For example, the computer system 101 detects the scrolling input provided by the first hand, while the cursor movement input is provided by the second hand. In another example, detecting the scrolling input includes detecting that the user maintains a pinching hand shape without moving the hand more than a threshold amount within a threshold time, while the cursor movement input includes moving the hand more than a threshold amount within a threshold time. Exemplary time thresholds are included in the description of method 1200 below. In some embodiments, in response to receiving Figure 11D In response to the scroll input shown in FIG, the computer system 101 scrolls the contents of the object 1104a, 1104b, or 1104c and stops the display of the cursors 1106a', 1106a", 1106c', and 1106c" and the indicators 1112a, 1112b', and 1112b", as shown in FIG. Figure 11E In some embodiments, stopping the display of cursors 1106a', 1106a', 1106c', and 1106c' and indications 1112a, 1112b', and 1112b' includes an animated transition in which the cursors 1106a', 1106a', 1106c', and 1106c' and indications 1112a, 1112b', and 1112b' fade out (e.g., reduce translucency, change color, and / or reduce size).

[0249] Figure 11E The computer system 101 is shown in response to Figure 11E , and scrolls the contents of objects 1104a, 1104b, and 1104c according to the scroll input shown in FIG. 1 , but cursors 1106a', 1106a", 1106c', and 1106c" and indicators 1112a, 1112b', and 1112b" are not displayed. Figure 11E As shown in Figure 11D The scroll input in the computer system 101 corresponds to Figure 11D The direction and amount (e.g., direction and amount of distance, speed, and / or duration) of the movement of hand 1103a in the scroll input scrolls the drawing 1110a in object 1104b and the text and highlight in object 1104c. If object 1104a has content, in some embodiments, the computer system 101 will respond to the scroll input in a manner similar to the following: Figure 11E The contents of object 1104a are scrolled in a manner similar to how computer system 101 scrolls the contents of objects 1104b and 1104c as shown in FIG. Figure 11E The computer system 101 stops Figure 11EThe cursors 1106a', 1106a', 1106c' and 1106c' and the indications 1112a, 1112b' and 1112b' are displayed.

[0250] Figure 11E The computer system 101 is shown continuing to detect scroll input provided by hand 1103a. In some embodiments, the computer system 101 continues to discard display of cursors 1106a', 1106a', 1106c', and 1106c' and indicators 1112a, 1112b', and 1112b', and scrolls the contents of objects 1104a, 1104b, and 1104c in accordance with further movement of hand 1103a while continuing to detect scroll input. In some embodiments, the computer system 101 detects the end of the scroll input, including detecting that hand 1103a has ceased making the pinching hand shape. In some embodiments, in response to detecting the end of the scrolling input, the computer system 101 stops scrolling the contents of objects 1104a, 1104b, and 1104c in response to further movement of the hand 1103a while the hand 1103a is not in a pinching hand shape, and restores the display of the cursors 1106a', 1106a", 1106c', and 1106c" and the indicators 1112a, 1112b', and 1112b".

[0251] In some embodiments, restoring display of the cursors 1106a', 1106a', 1106c', and 1106c" and indicators 1112a, 1112b', and 1112b" includes an animated transition in which the cursors 1106a', 1106a', 1106c', and 1106c" and indicators 1112a, 1112b', and 1112b" fade into view (e.g., by reducing translucency, increasing size, and / or changing color). In some embodiments, when the computer system 101 detects a scrolling input, in response to detecting the scrolling input ending at the same location in the three-dimensional environment, objects 1104a, 1104b, and 1104c, the content of objects 1104a, 1104b, and 1104c, or the display generating component 101 as their corresponding locations, the computer system 101 initiates display of cursors 1106a', 1106a', 1106c', and 1106c' and indicators 1112a, 1112b', and 1112b'.

[0252] Figure 11FThe computer system 101 is shown receiving cursor movement input provided by the hand 1103a, which corresponds to moving the cursor 1106a, cursor 1106c, indication 1112a, and / or indication 1112b in a horizontal direction toward the attention location 1108a, 1108b, or 1108c, respectively, and moving these cursors and indications in a vertical direction away from the attention location 1108a, 1108b, or 1108c, respectively. In some embodiments, in response to detecting the cursor movement input corresponding to movement of the cursor away from the attention location in a first dimension and toward the attention location in a second dimension, the computer system 101 accelerates the movement of the cursor toward the attention location, thereby causing the cursor to move in a direction different from the direction of movement of the hand 1103a. For example, in response to Figure 11F , the computer system 101 moves cursor 1106a, cursor 1106c, and pointer 1112b, as shown in FIG. Figure 11G In some embodiments, the computer system 101 accelerates the portion of the movement toward the attention location, but does not accelerate the portion of the movement away from the attention location.

[0253] Figure 11G Cursors 1106a and 1106c and indicator 1112b are shown in response to Figure 11F The cursor movement input shown in FIG is moved to the positions of cursors 1106a' and 1106c' and indicator 1112b'. Figure 11G As shown in FIG, the computer system 101 accelerates the movement of the cursor 1106a′ toward the attention location 1108a, the movement of the cursor 1106c′ toward the attention location 1108b, and the movement of the pointer 1112b′ toward the attention location 1108c, including increasing the speed corresponding to Figure 11F The horizontal movement amount of the middle hand 1103a in the horizontal movement direction and the reduction corresponding to Figure 11F The vertical movement amount of the middle hand 1103a in the vertical movement direction. Figure 11G , accelerating cursors 1106a' and 1106c' and indicator 1112b' toward attention locations 1108a, 1108b, and 1108c, respectively, distorts the direction of cursor movement downward and to the right. In some embodiments, computer system 101 accelerates cursor movement in a direction toward the attention locations and does not accelerate cursor movement in a direction away from the attention locations, such as moving cursors 1106a' and 1106c' and indicator 1112b' upward and to the right, more to the right than if the movement of cursors 1106a' and 1106c' and indicator 1112b' were not accelerated toward attention locations 1108a, 1108b, and 1108c.

[0254] 12A to 12Ois a flow chart illustrating a method 1200 for facilitating cursor movement according to some embodiments. In some embodiments, the method 1200 is performed on a computer system (e.g., Figure 1 The computer system 101 in the embodiment of the present invention is executed at a computer system 101 in the embodiment of the present invention, such as a tablet computer, a smart phone, a wearable computer, or a head-mounted device, which includes a display generation component (e.g., Figure 1 、 Figure 3 and Figure 4 In some embodiments, the method 1200 is performed by a display generating component 120 in the computer system (e.g., a heads-up display, a display, a touch screen, a projector, etc.) and one or more cameras (e.g., a camera pointing downward toward the user's hand (e.g., a color sensor, an infrared sensor, and other depth sensing cameras) or a camera pointing forward from the user's head). In some embodiments, the method 1200 is performed by a computer system stored in a non-transitory computer-readable storage medium and executed by one or more processors of a computer system, such as one or more processors 202 of the computer system 101 (e.g., Figure 1 Some operations in method 1200 are optionally combined, and / or the order of some operations is optionally changed.

[0255] In some embodiments, method 1200 is performed at an electronic device (e.g., 101) that communicates with a display generation component (e.g., 120) and one or more input devices (e.g., 314). For example, a mobile device (e.g., a tablet, a smart phone, a media player, or a wearable device) or a computer. In some embodiments, the display generation component is a display (optionally a touch screen display) integrated with the electronic device, an external display such as a monitor, a projector, a television, or a hardware component (optionally integrated or external) for projecting a user interface or making the user interface visible to one or more users. In some embodiments, the one or more input devices include a computer capable of receiving user input (e.g., capturing user input, detecting user input, etc.) and transmitting information associated with the user input to the electronic device. Examples of input devices include a touch screen, a mouse (e.g., external), a trackpad (optionally integrated or external), a touchpad (optionally integrated or external), a remote control device (e.g., external), another mobile device (e.g., separate from the electronic device), a handheld device (e.g., external), a controller (e.g., external), a camera, a depth sensor, an eye tracking device, and / or a motion sensor (e.g., a hand tracking device, a hand motion sensor), etc. In some embodiments, the electronic device communicates with a hand tracking device (e.g., one or more cameras, depth sensors, proximity sensors, touch sensors (e.g., a touch screen, a trackpad)). In some embodiments, the hand tracking device is a wearable device, such as a smart glove. In some embodiments, the hand tracking device is a handheld input device, such as a remote control or a stylus.

[0256] In some embodiments, a user interface including a cursor (e.g., a cursor such as described in reference methods 800 and / or 1000, displayed in a user interface such as described in reference methods 800 and / or 1000) is displayed via a display generation component. In some embodiments, the user interface is a drawing and / or content creation user interface, wherein the cursor is used to create content (e.g., a drawing or representation is created based on the movement of the cursor, such as a curve or any other line or shape corresponding to such movement of the cursor). In some embodiments, the user interface is or is displayed in a three-dimensional environment (e.g., a computer generated reality (CGR) environment, such as a virtual reality (VR) environment, a mixed reality (MR) environment, or an augmented reality (AR) environment, etc.) generated by the device, displayed by the device, or otherwise made viewable by the device. The electronic device detects (1202a) via one or more input devices, such as from a first input device, a first movement value, and / or a second movement value. Figure 11ACursor movement input of hand 1103a or 1103b in (for example, the cursor movement input is optionally the detection of a hand of a user of the electronic device performing a pinch gesture (for example, the tip of the thumb touching the tip of the index finger) while maintaining the pinch hand shape and moving the hand. In some embodiments, such input causes the cursor to be drawn into the user interface according to the hand movement). In some embodiments, if the user hand does not perform a pinch gesture and / or does not maintain the pinch hand shape when the hand movement is detected, the electronic device moves the cursor according to the hand movement without drawing content in the user interface according to the hand movement. In some embodiments, the cursor movement input is the movement of a finger on a physical touch-sensitive surface (for example, a touchpad) that communicates with the electronic device. In some embodiments, the cursor movement input is the movement of a finger on a virtual touch-sensitive surface displayed in the user interface together with the cursor (for example, when the finger is in contact with the surface of the virtual touch-sensitive surface or within a threshold distance thereof, the threshold distance being such as 0.1, 0.2, 0.5, 1, 2, 5, or 10 cm). In some embodiments, the movement value is a distance / length of movement (e.g., a longer distance results in more cursor movement), a speed of movement (e.g., a faster speed results in more cursor movement for the same distance), and / or an acceleration of movement (e.g., a faster acceleration results in more cursor movement for the same distance). In some embodiments, the cursor movement input and / or one or more inputs described with reference to method 1200 are air gesture inputs, such as those described with reference to method 800.

[0257] In some embodiments, in response to detecting a cursor movement input (1202b), based on determining that the cursor movement input includes input corresponding to movement of a cursor toward a gaze location in a user interface of a gaze of a user of the electronic device (e.g., and not away from the gaze location) (e.g., if the cursor movement input corresponds to movement of a cursor in the user interface toward a location at which the user's gaze is directed. In some embodiments, if at least one component of the cursor movement is toward the gaze location, the cursor movement input is toward the gaze location), wherein the gaze location is detected via a gaze tracking device, the electronic device moves (1202c) a cursor in the user interface by a first amount based on the cursor movement input, such as using Figure 11B The cursor 1106a' in.

[0258] In some embodiments, based on determining that the cursor movement input includes input corresponding to movement of the cursor away from (e.g., and not toward) a gaze location in the user interface (e.g., if the cursor movement input corresponds to movement of the cursor not toward (e.g., away from) a location in the user interface where the user's gaze is directed. In some embodiments, if at least one component of the cursor movement is not toward the gaze location, the cursor movement input is not toward the gaze location), the electronic device moves (1202d) the cursor in the user interface by a second amount based on the cursor movement input, where the second amount is less than the first amount, such as using Figure 11B 1106a in the user interface (e.g., moving the cursor a second amount less than the first amount in accordance with the cursor movement input, or not moving the cursor in the user interface). Thus, in some embodiments, an input for moving the cursor toward a gaze position in the user interface is accelerated (e.g., relative to the movement value or measurement of the input) compared to an input for moving the cursor away from (or neither toward nor away from) the gaze position in the user interface. For example, if the cursor movement input is not toward or away from the gaze position, a cursor movement input corresponding to a 1 cm movement of the cursor in the user interface will optionally cause the cursor to move 1.5 cm or 2 cm in the user interface if the cursor movement input is toward the gaze position, and will optionally cause the cursor to move 1 cm (e.g., no acceleration), 0.5 cm, or 0 cm in the user interface if the cursor movement input is away from the gaze position. In some embodiments, when the movement of the cursor is toward the gaze position, the entire movement of the cursor (e.g., all directional components of the cursor movement) is accelerated (or not accelerated). In some embodiments, when the movement of the cursor is toward the gaze position, only the directional component of the cursor movement toward the gaze position is accelerated (e.g., and other directional components of the cursor movement are not accelerated). Controlling cursor movement in a user interface based on gaze position ensures that the cursor quickly reaches the area of ​​the user interface where the user is looking, thereby reducing the time the cursor is in a portion of the user interface with which the user is not currently interacting and reducing errors in use (e.g., avoiding erroneous cursor interactions in areas of the user interface where the user is not looking by biasing cursor movement toward the area where the user is looking).

[0259] In some embodiments, the step of moving the cursor in the user interface by a first amount based on determining that the cursor movement input includes input corresponding to movement of the cursor toward the gaze location is further based on determining that the cursor movement input is not part of the content creation input in the user interface (1204a), such as reference Figure 11Aas described in relation to cursor 1106c in the example embodiment (e.g., the cursor is not used as a virtual pen or marker tip (e.g., coupled with finger or hand input corresponding to an activation input, such as a pinch gesture performed by a device user's hand) for entering (e.g., drawing) content into a user interface when cursor movement input is detected (e.g., the cursor movement input does not cause a corresponding line or drawing manipulation to be entered or performed in the user interface)).

[0260] In some embodiments, in response to detecting cursor movement input (1204b), based on determining that the cursor movement input is part of content creation input in the user interface (e.g., the cursor is being used as a virtual pen or marker tip (e.g., coupled with a finger or hand input corresponding to an activation input, such as a pinch gesture performed by a device user's hand) to enter (e.g., draw) content into the user interface when the cursor movement input is detected (e.g., the cursor movement input causes a corresponding line or drawing manipulation to be entered or performed in the user interface)), the electronic device moves (1204c) the cursor in the user interface by a third amount (e.g., the same as or more than the second amount, but less than the first amount; or the same as, greater than, or less than the first amount) based on the cursor movement input, regardless of whether the cursor movement input includes input corresponding to movement of the cursor toward or away from the gaze location in the user interface, as Figure 11B 106c in (e.g., when the cursor is being used for content creation, movements of the cursor toward and away from the gaze location are optionally accelerated (or not accelerated) the same amount). Thus, in some embodiments, when the cursor movement is part of content creation input, the electronic device does not accelerate the cursor movement differently depending on whether the cursor movement is toward or away from the gaze location. More generally, in some embodiments, when the cursor is involved in an input activity of the device (other than simple cursor movement), the electronic device does not accelerate the cursor movement differently depending on whether the cursor movement is toward or away from the gaze location, and when the cursor is not involved in an input activity of the device, such as when the cursor is only involved in cursor movement input, the electronic device does not accelerate the cursor movement differently depending on whether the cursor movement is toward or away from the gaze location. Abandoning differential acceleration when cursor movement is part of content creation input ensures predictable and intentional cursor movement when user input is used for content creation, thereby reducing errors in content creation input.

[0261] In some embodiments, the step of moving the cursor in the user interface by a first amount based on determining that the cursor movement input includes input corresponding to movement of the cursor toward the gaze location is further based on determining that the cursor movement input is not part of a content selection input in the user interface (1206a), such as reference Figure 11Aas described in the cursor 1112b in the user interface (e.g., when cursor movement input is detected, the cursor movement input is not used to select / highlight content (e.g., text, images, etc.) (e.g., the cursor movement input does not result in selection / highlighting of content based on the cursor movement input in the user interface)).

[0262] In some embodiments, in response to detecting cursor movement input (1206b), based on determining that the cursor movement input is part of a content selection input in the user interface (e.g., the cursor is being used to select / highlight content (e.g., text, image, etc.) when the cursor movement input is detected (e.g., based on the cursor movement input in the user interface, the cursor movement input causes content selection / highlighting)), the electronic device moves (1206c) the cursor in the user interface by a third amount (e.g., equal to or greater than the second amount, but less than the first amount; or the same as, greater than, or less than the first amount), regardless of whether the cursor movement input includes input corresponding to movement of the cursor toward or away from the gaze location in the user interface, such as Figure 11B (e.g., when the cursor is being used for content selection, cursor movement toward and away from the gaze location is optionally accelerated (or not accelerated) by the same amount). Thus, in some embodiments, when the cursor movement is part of a content selection input, the electronic device does not accelerate the cursor movement differently depending on whether the cursor movement is toward or away from the gaze location. Forgoing differential acceleration when the cursor movement is part of a content selection input ensures predictable and intentional cursor movement when the user input is for content selection, thereby reducing errors in the content selection input.

[0263] In some embodiments, such as Figure 11AIn some embodiments, the user interface (e.g., 1104c) includes text content, and the content selection input in the user interface is a text selection input in the user interface (1207a). In some embodiments, when the text content is displayed and when the cursor is overlaid on the text content, the cursor is displayed as a text insertion mark. In some embodiments, in response to detecting the selection of the cursor, the electronic device initiates the selection of text using the cursor, such as setting a boundary of the selected text at the position of the cursor when the selection is received. In some embodiments, detecting the selection of the cursor includes detecting the user making a pinching shape with their hand. In some embodiments, in response to detecting further movement of the cursor after receiving the selection, the computer system selects additional text in the direction of the cursor movement. In some embodiments, detecting the movement of the cursor includes detecting the movement of the user's hand while maintaining the pinching shape. In some embodiments, the computer system stops modifying the selected portion of the text content in response to detecting that the user no longer makes the pinching hand shape. In some embodiments, the computer system displays text whose visual characteristic is not currently selected and is a first value, and displays text whose visual characteristic is currently selected and is a second value. For example, the computer system displays the text that is not currently selected but is not highlighted, and displays the text that is currently selected and is highlighted. For another example, the computer system displays selected text in a different color than unselected text. In some embodiments, when text is selected, the electronic device receives input to perform an action on the selected text, such as copying, cutting, deleting, or reformatting the text. Selecting text using a cursor enhances user interaction with the computer system by allowing actions on the selected text to be performed quickly and efficiently using fewer required inputs.

[0264] In some embodiments, moving a cursor in a user interface by a first amount is further based on determining that the cursor movement input includes input corresponding to movement of the cursor toward a gaze location based on determining a first distance (1208a) from the gaze location in the user interface when the cursor movement input is detected (for example, the cursor is relatively far away from the gaze location in the user interface when the cursor movement input is detected).

[0265] In some embodiments, in response to detecting a cursor movement input (1208b), based on determining that the cursor movement input includes input corresponding to movement of a cursor toward a gaze location in a user interface, and based on determining that the cursor is a second distance from the gaze location in the user interface that is less than the first distance when the cursor movement input is detected (for example, the cursor is relatively close to the gaze location in the user interface when the cursor movement input is detected), the electronic device moves the cursor in the user interface (1208c) a third amount that is less than the first amount (for example, but greater than the second amount) based on the cursor movement input, such as a reference Figure 11AAs described above with respect to cursors 1106a and 1106b in . Thus, in some embodiments, the closer the cursor is to the gaze location, the less the cursor movement is accelerated toward the gaze location (e.g., the smaller the difference in cursor movement acceleration between movement toward the gaze location and movement away from the gaze location), and the further the cursor is from the gaze location, the more the cursor movement is accelerated toward the gaze location (e.g., the greater the difference in cursor movement acceleration between movement toward the gaze location and movement away from the gaze location). When the cursor is relatively close to a location in the user interface that the user is viewing, adjusting the cursor acceleration based on the cursor's distance from the gaze location ensures more direct and predictable cursor movement, thereby improving user-device interaction.

[0266] In some embodiments, the gaze location is a first location in the user interface (e.g., a location in the lower left portion of the user interface), and the cursor movement input is toward the first location and in a first direction in the user interface (1210a), such as toward Figure 11A Movement of gaze 1108a in (e.g., the cursor is initially located in the upper right portion of the user interface, and the cursor movement input is in the lower left direction (e.g., towards the gaze location)).

[0267] In some embodiments, when the gaze position is a first position in the user interface (1210b) (e.g., the gaze position has not and does not change (or changes less than an amount such that a subsequent cursor movement input in a lower-left direction would continue to move toward the gaze position unless the cursor has passed the gaze position) during the cursor movement input and subsequent cursor movement input described below), after detecting the cursor movement input in the first direction and moving the cursor in the user interface by the first amount, the electronic device detects (1210c) additional cursor movement input in the first direction via one or more input devices, such as Figure 11B Additional movement of the cursor 1106a' or 1106b in the user interface (eg, the cursor has moved toward the lower left portion of the user interface in response to cursor movement input, and additional cursor movement input in the lower left direction is detected).

[0268] In some embodiments, in response to detecting additional cursor movement in the first direction (1210d), the input is directed toward the first location based on determining that the additional cursor movement in the first direction is directed toward the first location, such as Figure 11B The cursor 1106b or 1106a' further moves toward Figure 11BIn response to an additional cursor movement input, the electronic device moves the cursor in the user interface by a third amount (e.g., the first amount; less than the first amount but greater than the second amount because the cursor is now closer to the gaze location than before; etc.) based on the gaze 1108a movement in the user interface (e.g., the first lower left movement of the cursor is not sufficient to cause the cursor to pass through the gaze location (e.g., the gaze location is still located to the lower left of the cursor), and therefore a subsequent lower left movement of the cursor is still toward the gaze location).

[0269] In some embodiments, based on determining that additional cursor movement input in the first direction is away from the first position, such as if cursor 1106b or 1106a has moved past Figure 11B In some embodiments, based on a gaze 1108a in the user interface (e.g., a first downward-left movement of the cursor is sufficient to cause the cursor to pass through the gaze location (e.g., the gaze location is no longer to the downward-left of the cursor, but is now to the upward-right of the cursor), and therefore subsequent downward-left movements of the cursor are now away from the gaze location), the electronic device moves (1210f) the cursor in the user interface by a fourth amount (e.g., the second amount; greater than or less than the second amount; etc.) that is less than the third amount based on additional cursor movement input (e.g., cursor movement input in the first direction results in a smaller cursor movement acceleration (e.g., smaller acceleration, no acceleration, or deceleration) if the cursor has passed through the gaze location, and a larger cursor movement acceleration if the cursor has not yet passed through the gaze location). Thus, in some embodiments, once the cursor has passed through the gaze location, further cursor movement input in the same direction is decelerated compared to further cursor movement input for which the cursor has not yet passed through the gaze location. Adjusting the cursor acceleration based on whether the cursor has passed through or has not yet passed through the gaze location ensures consistent cursor behavior as the cursor position changes in the user interface, thereby improving user-device interaction.

[0270] In some embodiments, the gaze location is a first location in the user interface (e.g., a location in the lower left portion of the user interface), and the cursor movement input is in a first direction (1210a) in the user interface (e.g., the cursor is initially located in the upper right portion of the user interface, and the cursor movement input is in the lower left direction (e.g., toward the gaze location)).

[0271] In some embodiments, when the gaze location is a second location in the user interface that is different from the first location (1210b), such as if the gaze 1108a changes Figure 11B After detecting the cursor movement input in the first direction and moving the cursor in the user interface by the first amount, the electronic device detects (1210c) via one or more input devices an additional cursor movement input in the first direction, such as pointing to a position in the object 1104a in the user interface (e.g., the gaze location has changed since the cursor movement input was detected, such that the gaze location is now the center of the user interface). Figure 11BAdditional cursor movement of cursor 1106a, 1106a', or 1106b in FIG. 1106 (eg, the cursor has moved toward a lower left portion of the user interface in response to cursor movement input, and additional cursor movement input in a lower left direction is detected).

[0272] In some embodiments, in response to detecting additional cursor movement in the first direction (1210d), based on determining that the additional cursor movement input in the first direction is toward a second position (for example, regardless of whether the additional cursor movement input is toward the first position), the electronic device moves (1210e) the cursor in the user interface a third amount based on the additional cursor movement input.

[0273] In some embodiments, based on determining that additional cursor movement input in the first direction is away from the second position (e.g., regardless of whether the additional cursor movement input is away from the first position), the electronic device moves the cursor in the user interface (1210f) by a fourth amount that is less than the third amount based on the additional cursor movement input (e.g., if the cursor movement input in the first direction is toward the new updated gaze position, the cursor movement input in the first direction results in a smaller cursor movement acceleration (e.g., smaller acceleration, no acceleration, or deceleration), and if the cursor movement input in the first direction is toward the new updated gaze position, the cursor movement input along the first direction results in a larger cursor movement acceleration, regardless of whether the cursor movement input is toward or away from the old, previous gaze position (e.g., the first position)). Therefore, in some embodiments, if the gaze position changes in the user interface, further cursor movement input is evaluated with respect to the updated gaze position rather than the previous gaze position. Adjusting the cursor acceleration to take into account the updated gaze position in the user interface ensures consistent cursor behavior when the gaze position changes in the user interface, thereby improving user-device interaction.

[0274] In some embodiments, while displaying a user interface including a cursor via a display generating component, the electronic device detects (1212a) a second cursor movement input (e.g., an input having one or more of the characteristics of a cursor movement input, and optionally the same as a cursor movement input) via one or more input devices.

[0275] In some embodiments, upon detecting a second cursor movement input (1212b), upon detecting a first portion of the second cursor movement input corresponding to a second movement value, wherein the gaze position is a first position in the user interface and the first portion of the second cursor movement input is toward the first position, the electronic device moves (1212c) the cursor in the user interface by a third amount, such as based on the first portion of the second cursor movement input. Figure 11B The cursor movement of the cursor 1106a' in FIG. 1106a is performed (eg, the cursor is moved with a particular acceleration during the first portion of the second cursor movement input as the cursor moves toward the gaze location).

[0276] In some embodiments, after detecting the first portion of the second cursor movement input, the electronic device detects (1212d) that the gaze position has changed to a second position in the user interface, such as if the gaze 1108a is directed toward Figure 11B A different part of the object 1104a in the user interface (e.g., the gaze location is no longer the first location in the user interface).

[0277] In some embodiments, in response to detecting that the gaze position has changed to a second position in the user interface and in response to detecting a second portion of a second cursor movement input that is subsequent to detecting a first portion of a second cursor movement input, wherein the second portion of the second cursor movement input corresponds to a second movement value (e.g., the first portion and the second portion of the second cursor movement input have the same amount of movement, such as the same amount of hand movement of the user, or the same amount of fingertip movement on a touchpad, etc.) and the second portion of the second cursor movement input is away from the second position (1212e) (e.g., the second portion of the second cursor movement is moving away from the new updated gaze position in the user interface. Thus, during the second cursor movement input (e.g., during the time period for moving the cursor movement input provided to the device During a first time period after detecting that the gaze position has changed (e.g., during the first 0.1, 0.2, 0.5, 1, 2, or 5 seconds after detecting that the updated gaze position has been updated, and thus during the first 0.1, 0.2, 0.5, 1, 2, or 5 seconds after detecting that the cursor movement has changed from toward the gaze position to away from the gaze position), the electronic device moves the cursor in the user interface (1212f) by a fourth amount that is less than the third amount (e.g., the amount of acceleration of the cursor movement gradually decreases toward no acceleration or deceleration) based on the second portion of the second cursor movement.

[0278] In some embodiments, during a second time period, after the first time, after detecting that the gaze position has changed (e.g., during the next 0.1, 0.2, 0.5, 1, 2, or 5 seconds after the first time), the electronic device moves the cursor in the user interface (1212g) by a fifth amount that is less than the fourth amount (e.g., the amount of acceleration of the cursor movement continues to gradually decrease toward no acceleration or deceleration) based on the second portion of the second cursor movement. The fourth movement amount is optionally greater than the amount the cursor would have moved in response to the same second portion of the second cursor movement input, provided that the cursor movement had been initiated at its current position when the gaze position was the second position, rather than the gaze position switching from the first position to the second position after the cursor movement had been initiated. The fifth movement amount is optionally the same as the amount the cursor would have moved in response to the same second portion of the second cursor movement input, provided that the cursor movement had been initiated at its current position when the gaze position was the second position, rather than the gaze position switching from the first position to the second position after the cursor movement had been initiated. Thus, in some embodiments, when cursor movement acceleration switches from relative acceleration to relative deceleration (or no acceleration) or vice versa in response to a change in gaze position during cursor movement input, the electronic device gradually transitions from relative acceleration of the cursor to relative deceleration of the cursor (or no acceleration) or vice versa over time, rather than performing an abrupt transition between the two. Gradually adjusting cursor acceleration to account for updated gaze position in the user interface ensures predictable cursor behavior as gaze position changes in the user interface, thereby improving user-device interaction.

[0279] In some embodiments, while displaying a user interface including a cursor via a display generating component, the electronic device detects (1214a) a second cursor movement input (e.g., an input having one or more of the characteristics of a cursor movement input, and optionally the same as a cursor movement input) via one or more input devices.

[0280] In some embodiments, when a second cursor movement input is detected (1214b) (e.g., and when the gaze location does not change in the user interface), when a first portion of the second cursor movement input corresponding to a second movement value is detected, where the cursor moves toward the gaze location in the user interface during the first portion of the second cursor movement input, the electronic device moves the cursor in the user interface a third amount (1214c) based on the first portion of the second cursor movement input (e.g., moving the cursor with a specific acceleration during the first portion of the second cursor movement input when the cursor moves toward the gaze location).

[0281] In some embodiments, after detecting a first portion of a second cursor movement input and after detecting a second portion of a second cursor movement input, where the second portion of the second cursor movement input corresponds to a second movement value (e.g., the first portion and the second portion of the second cursor movement input have the same amount of movement, such as the same amount of hand movement of the user, or the same amount of fingertip movement on a touchpad, etc.), and where the cursor moves away from the gaze position in the user interface during the second portion of the second cursor movement input (1214d), such as if during a first time period after detecting the start of the second portion of the second cursor movement input (e.g., during the first 0.1, 0.2, 0.5, 1, 2, or 5 seconds after detecting that the cursor movement changes from toward the gaze position to away from the gaze position, and thus during the first 0.1, 0.2, 0.5, 1, 2, or 5 seconds after detecting that the cursor movement changes from toward the gaze position to away from the gaze position), the cursor 1106a' or 1106b begins to move away from the gaze position. Figure 11B In the embodiment of the present invention, the electronic device moves the cursor in the user interface (1214e) by a fourth amount that is less than the third amount (e.g., the amount of acceleration of the cursor movement gradually decreases toward no acceleration or deceleration) based on the second portion of the second cursor movement input.

[0282] In some embodiments, during a second time period, after the first time, after detecting the start of the second portion of the second cursor movement input (e.g., during the next 0.1, 0.2, 0.5, 1, 2, or 5 seconds after the first time), the electronic device moves (1214f) the cursor in the user interface according to the second portion of the second cursor movement by a fifth amount that is less than the fourth amount (e.g., the amount of acceleration of the cursor movement continues to gradually decrease toward no acceleration or deceleration). The fourth movement amount is optionally greater than the amount the cursor would have moved in response to the same second portion of the second cursor movement input, provided that the cursor movement had been initiated at its current position, rather than the cursor movement switching from toward the gaze position to away from the cursor position after the cursor movement had been initiated. The fifth movement amount is optionally the same as the amount the cursor would have moved in response to the same second portion of the second cursor movement input, provided that the cursor movement had been initiated at its current position, rather than the cursor movement switching from toward the gaze position to away from the cursor position after the cursor movement had been initiated. Thus, in some embodiments, when cursor movement acceleration switches from relative acceleration to relative deceleration (or no acceleration) or vice versa in response to a change in cursor movement direction during cursor movement input, the electronic device gradually transitions from relative acceleration of the cursor to relative deceleration of the cursor (or no acceleration) or vice versa over time, rather than performing a sudden transition between the two. Gradually adjusting cursor acceleration to account for updated cursor movement direction in the user interface ensures predictable cursor behavior when the cursor movement direction changes in the user interface, thereby improving user-device interaction.

[0283] In some embodiments, such as Figure 11A In some embodiments, while displaying a user interface including a cursor (e.g., 1106a) via a display generation component, a computer system (e.g., 101) detects (1216a) a second cursor movement input corresponding to a second movement value via one or more input devices. In some embodiments, the second cursor movement input has one or more characteristics of the cursor movement inputs described above with reference to one or more of 1202a, 1202b, 1202c, and / or 1202d, and optionally has one or more differences from the cursor movement inputs described below.

[0284] In some embodiments, in response to detecting a second cursor movement input (1216b), based on determining that the second cursor movement input includes input corresponding to movement of a cursor toward a corresponding position (e.g., 1108a) in a user interface (e.g., 1104a) (e.g., and not away from the corr...

Claims

1. A method comprising: At an electronic device in communication with a display generating component and one or more input devices: detecting, via the one or more input devices, a first input including a first cursor movement input while displaying, via the display generation component, a user interface including a first area and a second area, wherein the first area includes a cursor; In response to detecting the first input, moving the cursor within the first area to a first position within the first area according to the first input; When the cursor is positioned at the first position in the first area according to the first input, detecting a second input via the one or more input devices, the second input comprising: a gaze of a user of the electronic device directed toward the second area in the user interface, and a first interaction input directed to a first user interface element included in the second area of ​​the user interface; In response to detecting the second input, performing interaction with the first user interface element according to the first interaction input; After performing said interaction with said first user interface element according to said first interaction input, detecting a third input via said one or more input devices, The third input includes: the gaze of the user of the electronic device directed toward the first area in the user interface, and Second cursor movement input; and In response to detecting the third input, the cursor within the first area is moved starting from the first position in the first area and moving away from the first position in the first area according to the second cursor movement input. 2 . The method of claim 1 , wherein the first area comprises a drawing user interface, and moving the cursor within the first area according to the first input comprises creating content within the drawing user interface based on the movement of the cursor. 3 . The method according to claim 1 , wherein the gaze of the user of the electronic device directed toward the first area as part of the third input is directed toward a location in the first area other than the first location in the first area.

4. The method of claim 3, wherein when the first input is detected: Based on determining that the gaze of the user of the electronic device is directed to a second position in the first area, based on the first cursor movement input, the cursor starts at the second position and moves away from the second position to the first position in the first area, and Based on determining that the gaze of the user of the electronic device is directed to a third position in the first area that is different from the second position, based on the first cursor movement input, the cursor starts at the third position and moves away from the third position to the first position in the first area.

5. The method according to claim 1, further comprising: After performing the interaction with the first user interface element according to the first interaction input, detecting a fourth input via the one or more input devices, the fourth input comprising: the gaze of the user of the electronic device directed toward the first area in the user interface, and A third cursor movement input; and In response to detecting the third input, based on determining that the fourth input is detected after a time threshold after the end of the first input, the cursor in the first area is moved starting from a second position different from the first position in the first area and moving away from the second position in the first area based on the third cursor movement input.

6. The method according to claim 1, further comprising: Upon detecting the second input, a visual indication of the first position associated with the cursor is displayed in the first area. 7 . The method of claim 1 , wherein the first interaction input directed to the first user interface element included in the second area is a cursor movement input for controlling a second cursor different from the cursor in the second area.

8. The method of claim 1, wherein: The first cursor movement input is provided by a predefined portion of the user of the electronic device, displaying the cursor in the first area at a first relative position relative to a corresponding portion of the predefined part of the user based on determining that the predefined part of the user is closer than a threshold distance from a position corresponding to the first area when the first cursor movement input is detected, and Based on determining that the predefined part of the user is farther than the threshold distance from the position corresponding to the first area when the first cursor movement input is detected, the cursor is displayed in the first area at a second relative position different from the first relative position relative to the corresponding part of the predefined part of the user.

9. The method according to claim 8, further comprising: While the first cursor movement input is being detected: detecting movement of the predefined part of the user to a distance closer than the threshold distance from the first area when the predefined part of the user is farther than the threshold distance from the position corresponding to the first area and when the cursor is displayed in the first area at the second relative position relative to the corresponding part of the predefined part of the user; as well as Upon detecting the movement of the predefined part of the user to the distance closer to the threshold distance from the first area, display of the cursor in the first area is moved from the second relative position relative to the corresponding part of the predefined part of the user to the first relative position relative to the corresponding part of the predefined part of the user in accordance with the movement of the predefined part of the user to the distance closer to the threshold distance from the first area.

10. The method of claim 1, wherein the first cursor movement input directed to the first area and the first interaction input directed to the second area are provided by a predefined portion of the user, and performing the interaction with the first user interface element according to the first interaction input is based on determining that the predefined portion of the user is not engaged with the first area, the method further comprising: detecting, via the one or more input devices, a fourth input, the fourth input comprising the gaze of the user of the electronic device directed toward the second area and a second interaction input provided by the predefined portion of the user; as well as In response to detecting the fourth input: Based on determining that the predefined portion of the user is engaged with the first area when the fourth input is detected, performing an interaction in the first area based on the second interaction input and not performing an interaction in the second area based on the second interaction input.

11. An electronic device, comprising: one or more processors; Memory; as well as One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for executing the method according to any one of claims 1 to 10.

12. A non-transitory computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by one or more processors of an electronic device, cause the electronic device to perform the method according to any one of claims 1 to 10.