Method and device for interaction with touch pen, equipment, medium and program product
By setting a pressure membrane structure on the outer wall of the stylus, the grip mode and accidental touch area are detected, and touch events are delayed or not responded to, which solves the problem of the single interaction method in the existing technology, and realizes diversified interaction functions and reduces space occupation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NANCHANG HUAQIN ELECTRONIC TECH CO LTD
- Filing Date
- 2025-12-31
- Publication Date
- 2026-05-12
AI Technical Summary
Existing stylus interaction methods are limited by sensor type and hardware design, making it difficult to meet users' diverse needs for interactive experience.
A pressure membrane structure is set on the outer wall of the stylus. By detecting pressure signals in different areas, the grip mode and accidental touch areas are identified, and touch events are delayed or not responded to, thus realizing a variety of pressure-based functions.
It improves the interactive flexibility of the stylus, reduces accidental operations, expands functionality while reducing internal space occupation, and enhances the user experience.
Smart Images

Figure CN122018719A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch device technology, and more particularly to an interaction method, apparatus, device, medium, and program product with a stylus. Background Technology
[0002] Most mainstream styluses currently use inductive pressure sensors to identify the user's writing pressure. The principle of this sensor is to detect the pressure change generated when the pen tip contacts the screen to achieve pressure sensing.
[0003] Existing stylus interaction methods are limited by sensor type and hardware design, making it difficult to meet users' diverse needs for interactive experience. Summary of the Invention
[0004] This application provides methods, devices, equipment, media, and program products for interacting with a stylus, in order to achieve the effect of reducing the internal space occupied by the stylus while realizing functional expansion.
[0005] In a first aspect, embodiments of this application provide a method for interacting with a stylus, wherein the outer wall of the stylus is provided with a pressure membrane structure, the pressure membrane structure being used to detect pressure signals borne by different areas of the outer wall of the stylus, the method comprising:
[0006] When the stylus enters the target grip mode, the screen accidental touch area is determined based on the touch point position of the stylus and the target grip mode; the accidental touch area refers to the screen area that is unintentionally touched by the user's non-pen-holding finger due to the natural covering or hovering of the grip posture when holding the stylus.
[0007] When a user's finger is detected touching the area of accidental touch, the stylus delays or does not respond to the touch event; when the stylus detects and determines that the pressure distribution characteristics it bears match the pressure distribution characteristics corresponding to the preset target grip mode through the pressure membrane structure, it switches to the target grip mode.
[0008] In one possible implementation, the method further includes:
[0009] Within a preset delay period, determine whether the touch event is a false touch event;
[0010] If the touch event is determined to be a false touch event, the touch event will not be responded to; otherwise, the touch event will be responded to after the preset delay period ends. The duration of the preset delay period is determined according to the communication method between the stylus and the terminal device equipped with the screen.
[0011] In one possible implementation, the method further includes:
[0012] When the stylus enters eraser mode, the screen is switched to a locked state, during which application switching and application exit operations are prohibited. When the stylus detects and determines that the pressure distribution characteristics of its tail area match the pressure distribution characteristics of the preset eraser mode through the pressure membrane structure, it switches to the eraser mode.
[0013] In one possible implementation, the method further includes:
[0014] When the stylus enters the first copy mode, the touch position of the stylus is monitored, and the content to be copied is determined based on the touch position; when the stylus is in any holding mode, it makes contact with the screen, and after contact, the relative position between the stylus and the corresponding contact area of the screen remains unchanged for a preset time period, and when the pressure is detected and determined by the pressure membrane structure to meet the preset first pressure condition, the stylus switches to the first copy mode.
[0015] In one possible implementation, the method further includes:
[0016] When the stylus is in the first copy mode, if the pressure on the stylus is detected by the pressure membrane structure to meet the preset third pressure condition, and the stylus re-makes contact with the screen from the air, then a copy buffer area is displayed on the screen, which is used to store the content to be copied.
[0017] In one possible implementation, the method further includes:
[0018] When the stylus enters the second copy mode, the selection trajectory of the stylus on the screen is detected, and the content within the area enclosed by the selection trajectory is determined as the content to be copied; when the stylus is in any holding mode, it does not contact the screen, and the pressure it bears is detected and determined by the pressure membrane structure to meet the preset second pressure condition, it switches to the second copy mode.
[0019] In one possible implementation, the method further includes:
[0020] After the stylus enters the first copy mode and selects the content to be copied, if a drag operation by the user on the screen is detected, the selected content to be copied is moved on the screen based on the trajectory of the drag operation. The drag operation includes continuous movement actions performed by the user on the screen using the stylus.
[0021] During the drag-and-drop operation, if a user's finger touches the screen and the touch location corresponds to the icon or interface element of a target application, the target application is launched, and a copy cache is displayed in a pop-up window on the screen. The copy cache is used to store the content to be copied.
[0022] Secondly, embodiments of this application provide an interaction device with a stylus, wherein the outer wall of the stylus is provided with a pressure membrane structure, the pressure membrane structure being used to detect pressure signals borne by different areas of the outer wall of the stylus, and the device includes:
[0023] The determination module is used to determine the screen mis-touch area based on the touch point position of the stylus and the target grip mode when the stylus enters the target grip mode; the mis-touch area refers to the screen area that is unintentionally touched by the user's non-pen-holding finger due to the natural covering or hovering of the grip posture when holding the stylus.
[0024] The delayed response module is used to delay or not respond to the touch event when a user's finger touches the area of accidental touch; when the stylus detects and determines that the pressure distribution characteristics it bears match the pressure distribution characteristics corresponding to the preset target grip mode through the pressure membrane structure, it switches to the target grip mode.
[0025] In one possible implementation, the interaction device with the stylus is further used for:
[0026] Within a preset delay period, determine whether the touch event is a false touch event;
[0027] If the touch event is determined to be a false touch event, the touch event will not be responded to; otherwise, the touch event will be responded to after the preset delay period ends. The duration of the preset delay period is determined according to the communication method between the stylus and the terminal device equipped with the screen.
[0028] In one possible implementation, the interaction device with the stylus is further used for:
[0029] When the stylus enters eraser mode, the screen is switched to a locked state, during which application switching and application exit operations are prohibited. When the stylus detects and determines that the pressure distribution characteristics of its tail area match the pressure distribution characteristics of the preset eraser mode through the pressure membrane structure, it switches to the eraser mode.
[0030] In one possible implementation, the interaction device with the stylus is further used for:
[0031] When the stylus enters the first copy mode, the touch position of the stylus is monitored, and the content to be copied is determined based on the touch position; when the stylus is in any holding mode, it makes contact with the screen, and after contact, the relative position between the stylus and the corresponding contact area of the screen remains unchanged for a preset time period, and when the pressure is detected and determined by the pressure membrane structure to meet the preset first pressure condition, the stylus switches to the first copy mode.
[0032] In one possible implementation, the interaction device with the stylus is further used for:
[0033] When the stylus is in the first copy mode, if the pressure on the stylus is detected by the pressure membrane structure to meet the preset third pressure condition, and the stylus re-makes contact with the screen from the air, then a copy buffer area is displayed on the screen, which is used to store the content to be copied.
[0034] In one possible implementation, the interaction device with the stylus is further used for:
[0035] When the stylus enters the second copy mode, the selection trajectory of the stylus on the screen is detected, and the content within the area enclosed by the selection trajectory is determined as the content to be copied; when the stylus is in any holding mode, it does not contact the screen, and the pressure it bears is detected and determined by the pressure membrane structure to meet the preset second pressure condition, it switches to the second copy mode.
[0036] In one possible implementation, the interaction device with the stylus is further used for:
[0037] After the stylus enters the first copy mode and selects the content to be copied, if a drag operation by the user on the screen is detected, the selected content to be copied is moved on the screen based on the trajectory of the drag operation. The drag operation includes continuous movement actions performed by the user on the screen using the stylus.
[0038] During the drag-and-drop operation, if a user's finger touches the screen and the touch location corresponds to the icon or interface element of a target application, the target application is launched, and a copy cache is displayed in a pop-up window on the screen. The copy cache is used to store the content to be copied.
[0039] Thirdly, embodiments of this application provide an interaction device with a stylus, including: a memory and a processor;
[0040] The memory stores computer-executed instructions;
[0041] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0042] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0043] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0044] The interaction method, apparatus, device, medium, and program product with a stylus provided in this application embodiment utilizes a pressure membrane structure to detect pressure signals from different areas of the stylus's outer wall, enabling the stylus to perform various pressure-based functions. By employing a pressure membrane structure, which is inherently ultra-thin, this design allows for more internal space within the stylus even after integration. By detecting pressure distribution characteristics through the pressure membrane structure, the stylus can automatically switch modes. By delaying or not responding to touch events, this time can be used for more accurate judgment of touch events. Especially during the interaction between the stylus and the screen, the user's finger may unconsciously touch the screen, leading to accidental touches. Through the above technical means, the effect of expanding functionality while reducing the internal space occupied by the stylus is achieved. Attached Figure Description
[0045] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0046] Figure 1 Flowchart of the interaction method with the stylus provided in this application Figure 1 ;
[0047] Figure 2 Flowchart of the interaction method with the stylus provided in this application Figure 2 ;
[0048] Figure 3 The stylus design concept diagram provided for this application;
[0049] Figure 4 A schematic diagram of the structure of the interaction device with the stylus provided in this application;
[0050] Figure 5A schematic diagram of the structure of the interactive device with the stylus provided in this application.
[0051] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0052] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0053] In the current stylus technology field, mainstream brands generally use inductive pressure sensors to identify the user's writing pressure. Its working principle is to accurately detect the pressure changes generated the moment the pen tip contacts the screen, converting these pressure changes into electrical signals, thereby enabling the recognition and response of writing pressure. This pressure-sensing technology is crucial for providing a natural and smooth writing experience and achieving different stroke thicknesses.
[0054] However, existing stylus interactions are relatively limited and cannot meet the diverse needs of users. To address this issue, this application proposes an innovative stylus interaction method. This method introduces a pressure membrane structure onto the stylus, which works in conjunction with existing inductive pressure sensors to provide richer and more flexible interaction methods.
[0055] The pressure diaphragm structure can detect pressure signals from different areas of the stylus's outer wall, enabling various pressure-based functions. By recognizing the user's grip strength using this structure, specific functions are triggered based on changes in grip strength, thus enhancing interaction flexibility. This improvement effectively addresses the issue of limited interaction methods in existing technologies, providing new possibilities for further optimization and innovation of styluses.
[0056] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0057] Figure 1 Flowchart of the interaction method with the stylus provided in this application Figure 1This method can be applied to electronic devices, such as tablet computers. The stylus has a pressure diaphragm structure on its outer wall, which detects pressure signals from different areas of the stylus's outer wall. The stylus is communicatively connected to an electronic device, which includes a screen, such as... Figure 1 As shown, the method includes:
[0058] S101. When the stylus enters the target holding mode, the screen accidental touch area is determined based on the stylus's touch point position and the target holding mode. The accidental touch area refers to the screen area where the user's non-pen-holding finger naturally covers or hovers due to the holding posture when holding the stylus, resulting in unintentional contact.
[0059] In this step, the stylus detects pressure signals through a pressure membrane structure on its outer wall. If the detected pressure distribution characteristics match the pressure distribution characteristics of a target grip mode among a set of preset grip modes, the stylus switches to that target grip mode. The preset grip modes include at least one of an eraser mode, a first copy mode, and a second copy mode. The preset pressure distribution characteristics are predefined through experiments and user data and are used to identify the grip state.
[0060] The stylus notifies the electronic device that it has entered a target grip mode. The electronic device then determines the accidental touch area on the screen based on the target grip mode and the stylus's touch point position. The touch point position refers to the specific location where the stylus contacts the screen. By analyzing the current grip mode and touch point position, the system can predict the area on the screen that the user's hand might touch—the accidental touch area. This process utilizes the stylus's pressure-sensitive membrane structure and the screen's touch sensors, using algorithms to calculate potential accidental touch areas and reduce the possibility of misoperations.
[0061] S102. When a user's finger is detected to be accidentally touching the area, the touch event is delayed or not responded to. When the stylus detects and determines that the pressure distribution characteristics it bears match the pressure distribution characteristics corresponding to the preset target grip mode through the pressure membrane structure, it switches to the target grip mode.
[0062] In this step, if a touch event is detected where a user's finger touches the accidental area, the response is delayed or no response is given. This delayed response mechanism provides a time window for further analysis and verification to determine whether the touch event was accidental.
[0063] The interaction method with a stylus provided in this application embodiment utilizes a pressure membrane structure to detect pressure signals from different areas of the stylus's outer wall, enabling the stylus to perform various pressure-based functions. By employing a pressure membrane structure, which is inherently ultra-thin, more internal space is retained even after integrating the pressure membrane structure into the stylus. By detecting pressure distribution characteristics through the pressure membrane structure, the stylus can automatically switch modes. By delaying or not responding to touch events, this time is used for more accurate judgment of touch events. Especially during the interaction between the stylus and the screen, the user's finger may unconsciously touch the screen, leading to accidental touches. Through the above technical means, the effect of expanding functionality while reducing the internal space occupied by the stylus is achieved.
[0064] Figure 2 Flowchart of the interaction method with the stylus provided in this application Figure 2 This method can be applied to electronic devices, such as tablet computers. The stylus has a pressure diaphragm structure on its outer wall, which detects pressure signals from different areas of the stylus's outer wall. The stylus is communicatively connected to an electronic device, which includes a screen, such as... Figure 2 As shown, in this embodiment... Figure 1 Based on the embodiments, the interaction method with the stylus is described in detail, which includes:
[0065] S201. When the stylus enters the target holding mode, the screen accidental touch area is determined based on the stylus's touch point position and the target holding mode. The accidental touch area refers to the screen area where the user's non-pen-holding finger naturally covers or hovers due to the holding posture when holding the stylus, resulting in unintentional contact.
[0066] In one possible implementation, the screen mis-touch area is determined based on the stylus touch point position and the target grip pattern, which may specifically include the following steps:
[0067] Based on the user's facial expressions, touch point location, and target grip pattern, the screen accidental touch area is determined.
[0068] In this embodiment, the user's facial expressions can be recognized using the front-facing camera of the electronic device. Combined with the current touch point position of the stylus and the target grip pattern, the range of the screen's accidental touch area can be determined. This screen includes a capacitive touchscreen.
[0069] S202. When a user's finger is detected to be accidentally touching the area, the touch event is delayed or not responded to. When the stylus detects and determines that the pressure distribution characteristics it bears match the pressure distribution characteristics corresponding to the preset target grip mode through the pressure membrane structure, it switches to the target grip mode.
[0070] The pressure membrane structure can be implemented by using a customized cylindrical thin film structure or by spraying pressure-sensitive material onto the surface of an existing stylus substrate, and is used to detect the pressure signals borne by various areas of the stylus's outer wall in real time.
[0071] S203. Within a preset delay period, determine whether the touch event is a false touch event.
[0072] In this step, the touch event is further analyzed within a preset delay period (e.g., 10 milliseconds, which is adjustable). An algorithm determines whether the touch event is a false touch. The algorithm comprehensively considers multiple factors such as the location, duration, and pressure changes of the touch input to determine if the event is a false touch.
[0073] S204. If the touch event is determined to be a false touch event, then the touch event is not responded to; otherwise, the touch event is responded to after the preset delay period ends. The duration of the preset delay period is determined according to the communication method between the stylus and the terminal device equipped with a screen.
[0074] If the touch event is determined to be a false touch, it is ignored and no response is made. If the touch event is determined to be a valid operation, the corresponding operation is executed after a preset delay period. This mechanism effectively reduces false touches and improves the user experience. The duration of the preset delay period is determined based on the communication method between the stylus and the terminal device (i.e., the electronic device) equipped with a screen. Different short-range communication methods can correspond to different delay period lengths.
[0075] In this application, when the stylus is determined to enter the target grip mode, the electronic device will delay the response to touch events acting on the accidental touch area, providing the algorithm with sufficient time to identify and filter accidental touches. This method can effectively reduce unintentional operations caused by non-pen-holding fingers naturally covering or hovering due to grip posture, thus improving the user experience.
[0076] In one possible implementation, the interaction method between this application and the stylus may further include the following steps:
[0077] When the stylus enters eraser mode, the screen is locked. In the locked state, application switching and application exit operations are prohibited. When the stylus detects and determines that the pressure distribution characteristics of its tail area match the pressure distribution characteristics of the preset eraser mode through the pressure membrane structure, it switches to eraser mode.
[0078] In this embodiment, when the stylus detects that the pressure distribution characteristics of its tail area match the pressure distribution characteristics corresponding to the preset eraser mode, a mode switching operation is triggered to switch the stylus to the eraser mode.
[0079] Once the stylus enters eraser mode, the electronic device locks the screen. The locked state is defined as follows: in this state, application switching and exiting are prohibited to prevent accidental touches caused by changes in the user's grip on the stylus. During eraser operation, users typically need to apply significant grip to stabilize the stylus, which can easily lead to accidental touches by the palm or fingers. By locking the screen, unintended interface operations caused by changes in grip force are effectively prevented, ensuring stable operation of the eraser function.
[0080] In one possible implementation, the interaction method between this application and the stylus may further include the following steps:
[0081] When the stylus enters the first copy mode, the touch position of the stylus is monitored, and the content to be copied is determined based on the touch position; when the stylus is in any holding mode, it makes contact with the screen, and after contact, the relative position between the stylus and the corresponding contact area of the screen remains unchanged for a preset time period, and when the pressure is detected and determined by the pressure membrane structure to meet the preset first pressure condition, the stylus switches to the first copy mode.
[0082] In this embodiment, when the stylus is in any holding mode and its head or tail area is detected to be in contact with the screen and maintaining a constant relative position (i.e., in a stationary state), if the pressure on the stylus is detected by the pressure membrane structure to meet a preset first pressure condition, a mode switching operation is triggered to switch the stylus to the first copy mode. The first pressure condition includes, but is not limited to, a pressure threshold range, a pressure duration, and a pressure distribution uniformity index.
[0083] In the first copy mode, when the stylus is moved, the electronic device will perform the following operations:
[0084] Activate a scrolling function similar to a mouse wheel to quickly browse screen content or scroll vertically / horizontally;
[0085] Based on the touch point position of the stylus, the content to be copied is determined; the content to be copied includes, but is not limited to, pixel color values, local image blocks, vector graphic elements, document fragments, or complete images / documents.
[0086] In one possible implementation, the interaction method between this application and the stylus may further include the following steps:
[0087] When the stylus is in the first copy mode, if the pressure on the stylus is detected by the pressure membrane structure to meet the preset third pressure condition, and the stylus re-makes contact with the screen from the air, then the copy buffer area is displayed on the screen. The copy buffer area is used to store the content to be copied.
[0088] In this embodiment, when the stylus is in the first copy mode, if the pressure exerted on the stylus in the air is detected by the pressure membrane structure to meet a preset third pressure condition, and the stylus re-contacts the screen from the air, then a copy buffer is triggered to be displayed on the screen. The copy buffer is used to store the content to be copied. The user can select any data to paste from it. The third pressure condition includes, but is not limited to, a pressure threshold range, pressure duration, and pressure distribution uniformity indicators.
[0089] In one possible implementation, the interaction method between this application and the stylus may further include the following steps:
[0090] When the stylus enters the second copy mode, the selection trajectory of the stylus on the screen is detected, and the content within the area enclosed by the selection trajectory is determined as the content to be copied. When the stylus is in any holding mode, it does not make contact with the screen, and the pressure is detected and determined by the pressure membrane structure to meet the preset second pressure condition, it switches to the second copy mode.
[0091] In this embodiment, when the stylus is in any holding mode and is not in contact with the screen, if the pressure on the stylus is detected by the pressure membrane structure to meet the preset second pressure condition, a mode switching operation is triggered to switch the stylus to the second copy mode. The second pressure condition includes, but is not limited to, pressure threshold range, pressure duration and pressure distribution uniformity index.
[0092] Specifically, when the stylus is in any holding mode in the air, if the pressure exerted on the stylus meets a preset second pressure condition, a switch to the second copy mode is triggered. In the second copy mode, the selection trajectory of the stylus on the screen is detected, and the content within the area enclosed by the selection trajectory is determined as the content to be copied.
[0093] In one possible implementation, the interaction method between this application and the stylus may further include the following steps:
[0094] After the stylus enters the first copy mode and selects the content to be copied, if the user's dragging operation on the screen is detected, the selected content to be copied will be moved on the screen based on the trajectory of the dragging operation. The dragging operation includes continuous movement of the user on the screen using the stylus.
[0095] During the drag-and-drop operation, if a touch event of the user's finger on the screen is detected, and the touch position of the touch event corresponds to the icon or interface element of a target application, the target application is launched, and a copy cache is displayed in a pop-up window on the screen. The copy cache is used to store the content to be copied.
[0096] In this embodiment, after the stylus enters the first copy mode and selects the content to be copied, the user can drag it on the screen. The electronic device can move the selected content on the screen according to the dragging trajectory. During the dragging operation, the touch event of the user's finger on the screen is detected. If the touch location corresponds to the icon or interface element of the target application, the target application is launched. After launching the target application, a pop-up window displays the copy cache area, allowing the user to further manipulate the content to be copied within the target application.
[0097] By integrating a pressure-sensitive membrane structure into the stylus, its interactive functionality can be further expanded. Specifically, users can perform a confirmation action by double-tapping the stylus's tail area; a triple-tapping action activates and brings up the grip pressure settings menu. (See reference...) Figure 3 The diagram shown is a design concept of the stylus provided in this application. By integrating a pressure membrane structure into the pen body, the stylus can support multiple grip modes, including but not limited to eraser mode, first copy mode, and second copy mode.
[0098] The pressure diaphragm structure allows users to switch between different operating modes by changing their grip or applying varying pressure. Furthermore, the integrated pressure diaphragm structure of the stylus can be combined with other sensors to achieve more diverse functional expansion.
[0099] Furthermore, to ensure users are clearly aware of the current mode of the stylus, a notification will be provided when switching modes. These notifications may include, but are not limited to, the following:
[0100] Visual cue:
[0101] Display a prompt box on the electronic device screen, showing the name of the current mode.
[0102] Auditory cues:
[0103] Play specific prompt sounds; each mode corresponds to a unique prompt sound.
[0104] Tactile cues:
[0105] The stylus provides haptic feedback through its vibration function. The stylus emits vibrations of varying intensity or pattern as each mode is switched.
[0106] By providing visual, auditory, and tactile cues when switching modes, users can more intuitively understand the current mode of the stylus, avoiding operational errors caused by unclear mode transitions. This multimodal cues can meet the needs of different users, improving the convenience and accuracy of operation.
[0107] The interaction method with a stylus provided in this application embodiment utilizes a pressure membrane structure to detect pressure signals from different areas of the stylus's outer wall, enabling the stylus to perform various pressure-based functions. By employing a pressure membrane structure, which is inherently ultra-thin, more internal space is retained even after integrating the pressure membrane structure into the stylus. By detecting pressure distribution characteristics through the pressure membrane structure, the stylus can automatically switch modes. By delaying or not responding to touch events, this time is used for more accurate judgment of touch events. Especially during the interaction between the stylus and the screen, the user's finger may unconsciously touch the screen, leading to accidental touches. Through the above technical means, the effect of expanding functionality while reducing the internal space occupied by the stylus is achieved.
[0108] Figure 4 This is a schematic diagram of the interactive device with a stylus provided in this application. The stylus has a pressure membrane structure on its outer wall. This pressure membrane structure is used to detect pressure signals experienced by different areas of the stylus's outer wall, such as... Figure 4 As shown, the interaction device 40 with the stylus provided in this embodiment includes:
[0109] The determination module 401 is used to determine the screen mis-touch area based on the touch point position of the stylus and the target grip mode when the stylus enters the target grip mode. The mis-touch area refers to the screen area that is unintentionally touched by the user's non-pen-holding finger due to the natural coverage or hovering of the grip posture when holding the stylus.
[0110] The delayed response module 402 is used to delay or not respond to the touch event when the user's finger is detected to be accidentally touched in the area; when the stylus detects and determines that the pressure distribution characteristics it bears match the pressure distribution characteristics corresponding to the preset target grip mode through the pressure membrane structure, it switches to the target grip mode.
[0111] In one possible implementation, the interaction device with the stylus is further used for:
[0112] Within a preset delay period, determine whether the touch event is a false touch event;
[0113] If the touch event is determined to be a false touch, the touch event will not be responded to; otherwise, the touch event will be responded to after a preset delay period. The duration of the preset delay period is determined based on the communication method between the stylus and the terminal device equipped with a screen.
[0114] In one possible implementation, the interaction device with the stylus is further used for:
[0115] When the stylus enters eraser mode, the screen is locked. In the locked state, application switching and application exit operations are prohibited. When the stylus detects and determines that the pressure distribution characteristics of its tail area match the pressure distribution characteristics of the preset eraser mode through the pressure membrane structure, it switches to eraser mode.
[0116] In one possible implementation, the interaction device with the stylus is further used for:
[0117] When the stylus enters the first copy mode, the touch position of the stylus is monitored, and the content to be copied is determined based on the touch position; when the stylus is in any holding mode, it makes contact with the screen, and after contact, the relative position between the stylus and the corresponding contact area of the screen remains unchanged for a preset time period, and when the pressure is detected and determined by the pressure membrane structure to meet the preset first pressure condition, the stylus switches to the first copy mode.
[0118] In one possible implementation, the interaction device with the stylus is further used for:
[0119] When the stylus is in the first copy mode, if the pressure on the stylus is detected by the pressure membrane structure to meet the preset third pressure condition, and the stylus re-makes contact with the screen from the air, then the copy buffer area is displayed on the screen. The copy buffer area is used to store the content to be copied.
[0120] In one possible implementation, the interaction device with the stylus is further used for:
[0121] When the stylus enters the second copy mode, the selection trajectory of the stylus on the screen is detected, and the content within the area enclosed by the selection trajectory is determined as the content to be copied. When the stylus is in any holding mode, it does not make contact with the screen, and the pressure is detected and determined by the pressure membrane structure to meet the preset second pressure condition, it switches to the second copy mode.
[0122] In one possible implementation, the interaction device with the stylus is further used for:
[0123] After the stylus enters the first copy mode and selects the content to be copied, if the user's dragging operation on the screen is detected, the selected content to be copied will be moved on the screen based on the trajectory of the dragging operation. The dragging operation includes continuous movement of the user on the screen using the stylus.
[0124] During the drag-and-drop operation, if a touch event of the user's finger on the screen is detected, and the touch position of the touch event corresponds to the icon or interface element of a target application, the target application is launched, and a copy cache is displayed in a pop-up window on the screen. The copy cache is used to store the content to be copied.
[0125] The interaction device with the stylus provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0126] Figure 5 This is a structural diagram of the interactive device with a stylus provided in this application. Figure 5 As shown, the interactive device 50 with a stylus provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the device 50 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus.
[0127] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.
[0128] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0129] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0130] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0131] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0132] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0133] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0134] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0135] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0136] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0137] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0138] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0139] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0140] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0141] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for interacting with a stylus, characterized in that, The stylus has a pressure membrane structure on its outer wall, which is used to detect pressure signals borne by different areas of the stylus's outer wall. The method includes: When the stylus enters the target grip mode, the screen accidental touch area is determined based on the touch point position of the stylus and the target grip mode; the accidental touch area refers to the screen area that is unintentionally touched by the user's non-pen-holding finger due to the natural covering or hovering of the grip posture when holding the stylus. When a user's finger is detected touching the area of accidental touch, the stylus delays or does not respond to the touch event; when the stylus detects and determines that the pressure distribution characteristics it bears match the pressure distribution characteristics corresponding to the preset target grip mode through the pressure membrane structure, it switches to the target grip mode.
2. The method according to claim 1, characterized in that, The method further includes: Within a preset delay period, determine whether the touch event is a false touch event; If the touch event is determined to be a false touch event, the touch event will not be responded to; otherwise, the touch event will be responded to after the preset delay period ends. The duration of the preset delay period is determined according to the communication method between the stylus and the terminal device equipped with the screen.
3. The method according to claim 1, characterized in that, The method further includes: When the stylus enters eraser mode, the screen is switched to a locked state, during which application switching and application exit operations are prohibited. When the stylus detects and determines that the pressure distribution characteristics of its tail area match the pressure distribution characteristics of the preset eraser mode through the pressure membrane structure, it switches to the eraser mode.
4. The method according to claim 1, characterized in that, The method further includes: When the stylus enters the first copy mode, the touch position of the stylus is monitored, and the content to be copied is determined based on the touch position; when the stylus is in any holding mode, it makes contact with the screen, and after contact, the relative position between the stylus and the corresponding contact area of the screen remains unchanged for a preset time period, and when the pressure is detected and determined by the pressure membrane structure to meet the preset first pressure condition, the stylus switches to the first copy mode.
5. The method according to claim 4, characterized in that, The method further includes: When the stylus is in the first copy mode, if the pressure on the stylus is detected by the pressure membrane structure to meet the preset third pressure condition, and the stylus re-makes contact with the screen from the air, then a copy buffer area is displayed on the screen, which is used to store the content to be copied.
6. The method according to claim 4, characterized in that, The method further includes: When the stylus enters the second copy mode, the selection trajectory of the stylus on the screen is detected, and the content within the area enclosed by the selection trajectory is determined as the content to be copied; when the stylus is in any holding mode, it does not contact the screen, and the pressure it bears is detected and determined by the pressure membrane structure to meet the preset second pressure condition, it switches to the second copy mode.
7. The method according to claim 4, characterized in that, The method further includes: After the stylus enters the first copy mode and selects the content to be copied, if a drag operation by the user on the screen is detected, the selected content to be copied is moved on the screen based on the trajectory of the drag operation. The drag operation includes continuous movement actions performed by the user on the screen using the stylus. During the drag-and-drop operation, if a user's finger touches the screen and the touch location corresponds to the icon or interface element of a target application, the target application is launched, and a copy cache is displayed in a pop-up window on the screen. The copy cache is used to store the content to be copied.
8. An interaction device with a stylus, characterized in that, The stylus has a pressure membrane structure on its outer wall, which is used to detect the pressure signals experienced by different areas of the stylus's outer wall. The device includes: The determination module is used to determine the screen mis-touch area based on the touch point position of the stylus and the target grip mode when the stylus enters the target grip mode; the mis-touch area refers to the screen area that is unintentionally touched by the user's non-pen-holding finger due to the natural covering or hovering of the grip posture when holding the stylus. The delayed response module is used to delay or not respond to the touch event when a user's finger touches the area of accidental touch; when the stylus detects and determines that the pressure distribution characteristics it bears match the pressure distribution characteristics corresponding to the preset target grip mode through the pressure membrane structure, it switches to the target grip mode.
9. An interactive device with a stylus, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium or computer program product, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7; or, The computer program product includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.