Touch track display method, device, equipment and medium
Patent Information
- Application Number
- CN202310074290.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-07
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2043-02-07
AI Technical Summary
[0005]本申请实施例提供一种触摸轨迹显示方法、装置、设备及介质,用于解决现有的触摸轨迹显示方法从操作系统获取到触摸事件至显示触摸轨迹,会经历两个刷新周期,导致显示的触摸轨迹与用户当前触摸位置存在的差异较大,触摸轨迹显示延迟较大的问题
[0038]本申请实施例提供的触摸轨迹显示方法、装置、设备及介质,通过在操作系统获取到触摸事件后,若判断出书写模式处于开启状态,则将触摸事件上报至书写应用。进而书写应用确定出触摸显示设备处于书写进行状态时,则根据触摸事件中的触摸数据生成触摸轨迹,并在当前刷新周期结束时,触摸显示屏触摸轨迹。通过操作系统判断出书写模式处于开启状态,实时将触摸事件上报至书写应用,使得书写应用在当前刷新周期内对触摸事件进行处理,生成触摸轨迹,并且可以在当前刷新周期结束时显示触摸轨迹,有效减小了显示的触摸轨迹与用户当前触摸位置存在的差异,也减小了触摸轨迹的显示延迟。
Smart Images

Figure CN118466819B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch technology, and in particular to a touch trajectory display method, device, equipment and medium. Background Technology
[0002] With the development of technology, displays now include touch functionality in addition to displaying images, hence the name touchscreen displays. This touch functionality allows for writing on the display, which can generate touch trajectories based on touch data.
[0003] In existing technology, the operating system determines the refresh cycle based on the screen refresh rate. After a user touches the touch screen, the operating system acquires the touch event and stores it until the end of the current refresh cycle. Then, it reports all the touch events acquired in the current refresh cycle to the writing application used to display the touch trajectory. The writing application generates the touch trajectory based on the touch data in the touch event. Finally, at the end of the next refresh cycle, the touch screen displays the touch trajectory.
[0004] In summary, existing touch trajectory display methods involve two refresh cycles from the time the operating system receives the touch event to the time the touch trajectory is displayed. This results in a significant difference between the displayed touch trajectory and the user's current touch position, leading to a large delay in touch trajectory display. Summary of the Invention
[0005] This application provides a touch trajectory display method, apparatus, device, and medium to solve the problem that existing touch trajectory display methods experience two refresh cycles from obtaining a touch event from the operating system to displaying the touch trajectory, resulting in a large difference between the displayed touch trajectory and the user's current touch position, and a large touch trajectory display delay.
[0006] In a first aspect, embodiments of this application provide a touch trajectory display method, applied to a touch display device, the method comprising:
[0007] The operating system of the touch display device acquires touch events;
[0008] If the operating system determines that the writing mode is enabled, it will report the touch event to the writing application of the touch display device in real time.
[0009] The writing application determines whether the touch display device is in a writing state based on the event type of the touch event;
[0010] If it is determined that the touch display device is in a writing state, the writing application generates a touch trajectory based on the touch data in the touch event;
[0011] At the end of the current refresh cycle, the touch display screen of the touch display device displays the touch trajectory.
[0012] In one specific implementation, the writing application determines whether the touch display device is in a writing state based on the event type of the touch event, including:
[0013] If the event type of the touch event is a slide event or a lift event, then the writing application determines that the touch display device is in the writing state.
[0014] In one specific implementation, the writing application determines whether the touch display device is in a writing state based on the event type of the touch event, including:
[0015] If the event type of the touch event is a press event, the writing application determines whether the touch display device is in a writing state based on the touch area corresponding to the touch event.
[0016] In one specific implementation, the writing application determines whether the touch display device is in a writing state based on the touch area corresponding to the touch event, including:
[0017] If the touch area corresponding to the touch event is a writing area, then the writing application determines that the touch display device is in the writing state.
[0018] In one specific implementation, the writing application determines whether the touch display device is in a writing state based on the touch area corresponding to the touch event, including:
[0019] If the touch area corresponding to the touch event is not a writing area, the writing application determines that the touch display device is not in the writing state and updates the writing mode to the off state.
[0020] In one specific embodiment, the method further includes:
[0021] If the operating system determines that the writing mode is in the off state, it stores the touch event in the history data.
[0022] At the end of the current refresh cycle, the operating system reports the touch events from the historical data to the writing application;
[0023] If the writing application determines that the event type of the touch event is a press event, then it determines whether the touch area corresponding to the touch event is the button area for entering writing mode;
[0024] If the touch area corresponding to the touch event is the button area for entering writing mode, then when the writing application receives a touch event of the type of lift event, it updates the state of the writing mode to the enabled state.
[0025] Secondly, embodiments of this application provide a touch trajectory display device, comprising:
[0026] The acquisition module is used to acquire touch events through the operating system of the touch display device;
[0027] The reporting module is used to report the touch event to the writing application of the touch display device in real time if the operating system determines that the writing mode is enabled.
[0028] Processing module, used for:
[0029] The writing application determines whether the touch display device is in a writing state based on the event type of the touch event.
[0030] If it is determined that the touch display device is in a writing state, then the writing application generates a touch trajectory based on the touch data in the touch event;
[0031] The display module is used to display the touch trajectory on the touch display screen of the touch display device at the end of the current refresh cycle.
[0032] Thirdly, embodiments of this application provide a touch display device, including:
[0033] Processor, memory, communication interface, touch display;
[0034] The memory is used to store the executable instructions of the processor;
[0035] The processor is configured to execute the touch trajectory display method according to any one of the first aspects by executing the executable instructions.
[0036] Fourthly, embodiments of this application provide a readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the touch trajectory display method described in any of the first aspects.
[0037] Fifthly, embodiments of this application provide a computer program product, including a computer program, which, when executed by a processor, is used to implement the touch trajectory display method described in any of the first aspects.
[0038] The touch trajectory display method, apparatus, device, and medium provided in this application, after the operating system obtains a touch event, if it determines that the writing mode is enabled, it reports the touch event to the writing application. Then, when the writing application determines that the touch display device is in writing mode, it generates a touch trajectory based on the touch data in the touch event and displays the touch trajectory on the display screen at the end of the current refresh cycle. By determining that the writing mode is enabled through the operating system and reporting the touch event to the writing application in real time, the writing application processes the touch event within the current refresh cycle, generates the touch trajectory, and displays the touch trajectory at the end of the current refresh cycle. This effectively reduces the difference between the displayed touch trajectory and the user's current touch position, and also reduces the display delay of the touch trajectory. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 A flowchart illustrating an embodiment of the touch trajectory display method provided in this application;
[0041] Figure 2 A flowchart illustrating Embodiment 2 of the touch trajectory display method provided in this application;
[0042] Figure 3 A flowchart illustrating Embodiment 3 of the touch trajectory display method provided in this application;
[0043] Figure 4 This is a schematic diagram of the structure of an embodiment of the touch trajectory display device provided in this application;
[0044] Figure 5 This is a schematic diagram of the structure of a touch display device provided in this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments made by those skilled in the art under the guidance of these embodiments are within the scope of protection of this application.
[0046] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0047] With the rapid development of technology, people can not only write and draw on paper, but also on devices with touch display capabilities.
[0048] In existing technologies, the operating system of a touch display device determines a refresh cycle based on the screen refresh rate to facilitate the processing of touch data. The refresh cycle is a fraction of a second of the screen refresh rate; for example, if the screen refresh rate is 60Hz, the refresh cycle is 1 / 60th of a second. The refresh cycle is also the cycle in which the touch display refreshes its image. After a user touches the touch screen, the operating system acquires the touch event and stores it. This data is stored until the end of the current refresh cycle, at which point all touch events acquired within that cycle are reported to the writing application used to display the touch trajectory. The writing application generates the touch trajectory based on the touch data in the touch events. Then, at the end of the next refresh cycle, the touch display shows the touch trajectory. Therefore, from the time the operating system acquires the touch event to the display of the touch trajectory, two refresh cycles occur, resulting in a significant difference between the displayed touch trajectory and the user's current touch position, leading to a large display delay.
[0049] To address the problems existing in the prior art, the inventors, during their research on touch trajectory display methods, discovered that to reduce the difference between the touch trajectory and the user's current touch position—that is, to reduce touch trajectory display latency—the operating system, upon receiving a touch event, can report the touch event to the writing application in real time. The writing application then processes the touch event, generates the touch trajectory, and displays it at the end of the current refresh cycle. When the operating system receives a touch event, it determines whether the writing mode is enabled; if the writing mode is enabled, it reports the touch event to the writing application in real time. When the writing application determines that the touch display device is in writing mode, it generates the touch trajectory based on the touch data in the touch event, and then displays the touch trajectory on the screen at the end of the current refresh cycle, effectively reducing the touch trajectory display latency. Based on the above inventive concept, the touch trajectory display scheme of this application was designed.
[0050] The subject executing the touch trajectory determination method in this application can be a mobile terminal, tablet computer, electronic whiteboard, or other touch display device that can be touched; this application does not limit it.
[0051] The following provides examples illustrating the application scenarios of the touch trajectory display method provided in this application.
[0052] For example, in this application scenario, a user uses a writing application on a touch display device to take notes. When the user clicks the "Enter Writing Mode" button on the writing application's display interface, the operating system can sequentially obtain multiple touch events. The first touch event is a press event, the last touch event is a release event, and the remaining touch events are swipe events.
[0053] When the operating system receives the first touch event, since the writing mode is currently off, the operating system will report the touch event to the writing application at the end of the current refresh cycle. The writing application determines that the event type is a press event, and further determines that the touch area corresponding to the touch event is the button area for entering writing mode, thus confirming that it needs to enter writing mode.
[0054] Then, when the operating system receives a touch event of the lift-off type, it reports the touch event to the writing application at the end of the refresh cycle in which the touch event occurs. The writing application determines that the event type of the touch event is a lift-off type and updates the writing mode status to the enabled state.
[0055] Then, the user writes in the writing area on the display interface. For a single handwriting, that is, the process from when the user touches the touch screen to when they lift it off the touch screen, the operating system can sequentially obtain multiple touch events. The first touch event is a press event, the last touch event is a lift event, and the remaining touch events are swipe events.
[0056] When the operating system receives a touch event, the current writing mode is enabled, and the touch event is reported to the writing application in real time. For the first touch event, the writing application determines that the event type is a press event and that the corresponding touch area is a writing area, indicating that the touch display device is in writing mode. It then generates a touch trajectory based on the touch data in the touch event. Finally, at the end of the refresh cycle for that touch event, the touch screen displays the touch trajectory.
[0057] For other touch events, the writing application determines whether the event type is a swipe event or a lift event, indicating that the touch display device is in a writing state. It can then generate a touch trajectory based on the touch data in the touch event. Finally, at the end of the refresh cycle for that touch event, the touch display shows the touch trajectory, effectively reducing the display latency.
[0058] It should be noted that the above scenario is only an example of an application scenario provided by the embodiments of this application. The embodiments of this application do not limit the actual form of the various devices included in the scenario. In the specific application of the solution, it can be set according to actual needs.
[0059] The technical solution of this application will now be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0060] Figure 1 This is a flowchart illustrating an embodiment of the touch trajectory display method provided in this application. This embodiment describes how, after the operating system receives a touch event, if the writing mode is enabled, the touch event is reported to the writing application in real time. When the writing application determines that the touch display device is in a writing state, it generates and displays the touch trajectory. The method in this embodiment can be implemented through software, hardware, or a combination of both. Figure 1 As shown, the touch trajectory display method specifically includes the following steps:
[0061] S101: The operating system of the touch display device acquires touch events.
[0062] In this step, when the user touches the touch screen of the touch display device, the operating system can obtain the touch event so as to process the touch event and enable the user to operate the touch display device.
[0063] S102: If the operating system determines that the writing mode is enabled, it will report the touch event to the writing application of the touch display device in real time.
[0064] In this step, after the operating system receives a touch event, it first determines whether the writing mode is currently enabled in order to ascertain whether the user is writing. If the writing mode is enabled, it means the user may be writing. To reduce the display delay of the touch trajectory, the touch event needs to be reported to the writing application so that the application can subsequently determine whether the user is writing.
[0065] S103: The writing application determines whether the touch display device is in a writing state based on the event type of the touch event.
[0066] In this step, after the operating system reports the touch event to the writing application, the writing application can obtain the touch event. Then, in order to determine whether the user is writing, the writing application will determine whether the touch display device is in a writing state. The writing state indicates that the user is writing. If the touch display device is in a writing state, it means that the user is writing; if the touch display device is not in a writing state, it means that the user is not writing.
[0067] S104: If it is determined that the touch display device is in the writing state, the writing application generates a touch trajectory based on the touch data in the touch event.
[0068] In this step, if the writing application determines that the touch device is in a writing state, it means that the user is writing, and then a touch trajectory is generated based on the touch data in the touch event. Since the touch data includes screen coordinate data, the touch trajectory can be generated based on the screen coordinate data.
[0069] It should be noted that if the writing application determines that the touch device is not in writing mode, it will update the writing mode status to off.
[0070] S105: At the end of the current refresh cycle, the touch display screen of the touch display device displays the touch trajectory.
[0071] In this step, after the writing application generates the touch trajectory, the touch display device can obtain the touch trajectory and then display the touch trajectory on the touch screen at the end of the current refresh cycle.
[0072] It should be noted that if the current refresh cycle has ended when the writing application generates the touch trajectory, the touch trajectory will be displayed on the touch screen at the end of the next refresh cycle.
[0073] The touch trajectory display method provided in this embodiment, after the operating system obtains a touch event, if it determines that the writing mode is enabled, it reports the touch event to the writing application in real time. If the writing application determines that the touch display device is in writing mode, it generates a touch trajectory based on the touch data in the touch event. Then, at the end of the current refresh cycle, the touch trajectory of the touch display device is displayed on the touch screen. Compared with the prior art, which takes two refresh cycles from obtaining a touch event from the operating system to displaying the touch trajectory, this solution, by having the operating system report the obtained touch event to the writing application in real time when the writing mode is enabled, allows the writing application to process the touch event and generate the touch trajectory within the current refresh cycle, and display the touch trajectory at the end of the current refresh cycle. This effectively reduces the difference between the touch trajectory and the user's current touch position, and also reduces the touch trajectory display delay.
[0074] Figure 2 This is a flowchart illustrating a second embodiment of the touch trajectory display method provided in this application. Based on the above embodiments, this application describes how a writing application determines whether a touch display device is in a writing state based on the event type of a touch event, and how it updates the writing mode state when the touch display device is not in a writing state. Figure 2 As shown, the touch trajectory display method specifically includes the following steps:
[0075] S201: The writing application obtains touch events.
[0076] In this step, after the operating system receives a touch event, if it determines that the writing mode is enabled, it will report the touch event to the writing application, which will then be able to receive the touch event.
[0077] S202: The writing application determines whether the event type of the touch event is a press event type; if the event type of the touch event is a press event type, then proceed to step S203; if the event type of the touch event is not a press event type, then proceed to step S206.
[0078] In this step, to determine whether the touch display device is in a writing state, the writing application first needs to determine whether the touch event type is a press event. Touch event types include press event types, swipe event types, and release event types. For example, in the Android operating system, the ACTION_DOWN event is a press event type touch event, the ACTION_MOVE event is a swipe event type touch event, and the ACTION_UP event is a release event type touch event.
[0079] S203: The writing application determines whether the touch area corresponding to the touch event is a writing area; if the touch area corresponding to the touch event is not a writing area, then proceed to step S204; if the touch area corresponding to the touch event is a writing area, then proceed to step S205.
[0080] S204: The writing application determines that the touch display device is not in writing mode and updates the writing mode status to off.
[0081] In the above steps, if the writing application determines that the touch event is a press event, but does not know whether the user is writing in the writing area of the touch display device's display interface or performing other operations in a non-writing area, it continues to determine whether the touch display device is in a writing state based on the touch area corresponding to the touch event.
[0082] If the touch area corresponding to the touch event is not the writing area, it means that the user is performing other operations in the non-writing area, such as clicking the eraser button, clicking the maximize button, clicking the close button, etc. Therefore, it can be determined that the touch display device is not in the writing state. In order to improve the processing efficiency of touch events, the writing mode is updated to the off state. In the off state, the operating system will first store the touch event it obtains, and then report the touch event to the writing application at the end of the refresh cycle in which the touch event occurs.
[0083] S205: The writing application determines that the touch display device is in a writing state.
[0084] In this step, if the writing application determines that the touch area corresponding to the touch event is the writing area, it means that the user is writing in the writing area, and thus it is determined that the touch display device is in the writing state.
[0085] S206: If the event type of the touch event is a slide event type or a lift event type, the writing application determines that the touch display device is in the writing state.
[0086] If the writing application determines that the touch event type is not a press event type, and further determines that the touch event type is a slide event type or a release event type, since the current writing mode is enabled, it means that the touch event of the press event type with the shortest interval between the current touch event and the touch event obtained by the writing application corresponds to the writing area. This indicates that the user is writing at this time, so it can be determined that the touch display device is in the writing state.
[0087] The touch trajectory display method provided in this embodiment effectively improves the accuracy of determining whether the touch display device is in a writing state by determining the event type of the touch event and, when the event type is a press event, the corresponding touch area. Furthermore, when the touch display device is not in a writing state, updating the writing mode to the off state effectively improves the efficiency of handling touch events.
[0088] Figure 3 This is a flowchart illustrating a third embodiment of the touch trajectory display method provided in this application. Based on the above embodiments, this application describes the situation where, when the writing mode is in a closed state, the touch event type is a press event, and the touch area corresponding to the touch event is the "Enter Writing Mode" button area, the state of the writing mode is updated. For example... Figure 3 As shown, the touch trajectory display method specifically includes the following steps:
[0089] S301: If the operating system determines that the writing mode is off, the touch event will be stored in the history data.
[0090] In this step, after the operating system receives the touch event, it will determine whether the writing mode is enabled. If the operating system determines that the writing mode is disabled, it means that the user is not writing. In order to improve the processing efficiency of touch events, the touch event is stored in historical data for later processing.
[0091] S302: At the end of the current refresh cycle, the operating system reports the touch events from the historical data to the writing application.
[0092] In this step, the operating system stores the touch event in the historical data, and then at the end of the current refresh cycle, that is, the refresh cycle in which the touch event occurs, it retrieves the touch event from the historical data and reports it to the writing application so that the writing application can determine the function to be performed by the touch event.
[0093] S303: If the writing application determines that the event type of the touch event is a press event, then determine whether the touch area corresponding to the touch event is the button area for entering writing mode.
[0094] In this step, after the operating system reports the touch event to the writing application, the application receives the touch event. To determine whether the user wants to write, i.e., whether to update the writing mode to the enabled state, it first checks if the touch event type is a press event. If the touch event type is not a press event, it means the writing mode should not be updated to the enabled state. If the writing application determines that the touch event type is a press event, it further needs to determine if the corresponding touch area is the area of the "Enter Writing Mode" button.
[0095] S304: If the touch area corresponding to the touch event is the button area for entering writing mode, then when the writing application receives a touch event of the type of lift event, it will update the state of writing mode to the enabled state.
[0096] In this step, if the writing application determines that the touch area corresponding to the touch event is the "Enter Writing Mode" button area, it means that the writing mode status needs to be updated to the "On" state. To avoid the writing application generating touch trajectories based on the first lift-up event type target touch event obtained after the touch event, and the slide event type touch event after the touch event and before the target touch event, the writing application updates the writing mode status to the "On" state when it obtains the lift-up event type touch event, that is, when it obtains the target touch event. If the touch area corresponding to the touch event is not the "Enter Writing Mode" button area, it means that the writing mode status does not need to be updated to the "On" state. The touch display device executes the corresponding function based on the touch event, the target touch event, the touch events between the touch event and the target touch event, and the touch areas corresponding to the three types of touch events. For example, clicking the close button executes the close function, dragging the graphic executes the drag function, clicking the delete button executes the delete function, etc.
[0097] The touch trajectory display method provided in this embodiment updates the writing mode to the on state when the writing mode is off, the event type of the touch event is a press event, and the touch area corresponding to the touch event is the button area for entering the writing mode. This ensures that the delay of the touch trajectory can be effectively reduced when the user is writing.
[0098] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0099] Figure 4 This is a schematic diagram of an embodiment of the touch trajectory display device provided in this application; the device can be integrated into the touch trajectory display device in the above method embodiment, or it can be implemented through the touch trajectory display device in the above method embodiment. Figure 4 As shown, the touch trajectory display device 40 includes:
[0100] The acquisition module 41 is used to acquire touch events through the operating system of the touch display device;
[0101] The reporting module 42 is used to report the touch event to the writing application of the touch display device in real time if the operating system determines that the writing mode is enabled.
[0102] Processing module 43 is used for:
[0103] The writing application determines whether the touch display device is in a writing state based on the event type of the touch event.
[0104] If it is determined that the touch display device is in a writing state, then the writing application generates a touch trajectory based on the touch data in the touch event;
[0105] Display module 44 is used to display the touch trajectory on the touch display screen of the touch display device at the end of the current refresh cycle.
[0106] Furthermore, the processing module 43 is specifically used to determine, through the writing application, that the touch display device is in the writing state if the event type of the touch event is a swipe event type or a lift event type.
[0107] Furthermore, the processing module 43 is specifically used to determine whether the touch display device is in a writing state based on the touch area corresponding to the touch event if the event type of the touch event is a press event type.
[0108] Furthermore, the processing module 43 is specifically used to determine, through the writing application, that the touch display device is in the writing state if the touch area corresponding to the touch event is a writing area.
[0109] Furthermore, the processing module 43 is specifically configured to, if the touch area corresponding to the touch event is not a writing area, determine through the writing application that the touch display device is not in the writing state, and update the state of the writing mode to the off state.
[0110] Furthermore, the processing module 43 is also used to store the touch event in historical data if the operating system determines that the writing mode is in a closed state;
[0111] Furthermore, the reporting module 42 is also used to report the touch events in the historical data to the writing application through the operating system at the end of the current refresh cycle;
[0112] Furthermore, the processing module 43 is also used for:
[0113] If the writing application determines that the event type of the touch event is a press event, then it determines whether the touch area corresponding to the touch event is the button area for entering writing mode;
[0114] If the touch area corresponding to the touch event is the button area for entering writing mode, then when the writing application receives a touch event of the type of lift event, it updates the state of the writing mode to the enabled state.
[0115] The touch trajectory display device provided in this embodiment is used to execute the technical solution in any of the foregoing method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0116] Figure 5 This is a schematic diagram of the structure of a touch display device provided in this application. Figure 5 As shown, the touch display device 50 includes:
[0117] Processor 51, memory 52, communication interface 53, and touch display screen 54;
[0118] The memory 52 is used to store the executable instructions of the processor 51;
[0119] The processor 51 is configured to execute the technical solutions in any of the foregoing method embodiments by executing the executable instructions.
[0120] Optionally, the memory 52 can be either standalone or integrated with the processor 51.
[0121] Optionally, when the memory 52 is a device independent of the processor 51, the touch display device 50 may further include:
[0122] Bus 55, memory 52 and communication interface 53 are connected to processor 51 through bus 55 and complete communication between them. Communication interface 53 is used to communicate with other devices.
[0123] Optionally, the communication interface 53 can be implemented using a transceiver. The communication interface is used to enable communication between the database access device and other devices (e.g., clients, read-write databases, and read-only databases). The memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk drive.
[0124] Bus 55 can be 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 representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus.
[0125] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0126] The touch display device is used to execute the technical solutions in any of the foregoing method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0127] This application also provides a readable storage medium storing a computer program thereon, which, when executed by a processor, implements the technical solutions provided in any of the foregoing embodiments.
[0128] This application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the technical solutions provided in any of the foregoing method embodiments.
[0129] 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.
[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for displaying touch trajectory, characterized in that, Applied to a touch display device, the method includes: The operating system of the touch display device acquires touch events; If the operating system determines that the writing mode is enabled, it will report the touch event to the writing application of the touch display device in real time. The writing application determines whether the touch display device is in a writing state based on the event type of the touch event; If it is determined that the touch display device is in a writing state, the writing application generates a touch trajectory based on the touch data in the touch event; At the end of the current refresh cycle, the touch display screen of the touch display device displays the touch trajectory.
2. The method according to claim 1, characterized in that, The writing application determines whether the touch display device is in a writing state based on the event type of the touch event, including: If the event type of the touch event is a slide event or a lift event, then the writing application determines that the touch display device is in the writing state.
3. The method according to claim 1, characterized in that, The writing application determines whether the touch display device is in a writing state based on the event type of the touch event, including: If the event type of the touch event is a press event, the writing application determines whether the touch display device is in a writing state based on the touch area corresponding to the touch event.
4. The method according to claim 3, characterized in that, The writing application determines whether the touch display device is in a writing state based on the touch area corresponding to the touch event, including: If the touch area corresponding to the touch event is a writing area, then the writing application determines that the touch display device is in the writing state.
5. The method according to claim 3, characterized in that, The writing application determines whether the touch display device is in a writing state based on the touch area corresponding to the touch event, including: If the touch area corresponding to the touch event is not a writing area, the writing application determines that the touch display device is not in the writing state and updates the writing mode to the off state.
6. The method according to claim 1, characterized in that, The method further includes: If the operating system determines that the writing mode is in the off state, it stores the touch event in the history data. At the end of the current refresh cycle, the operating system reports the touch events from the historical data to the writing application; If the writing application determines that the event type of the touch event is a press event, then it determines whether the touch area corresponding to the touch event is the button area for entering writing mode; If the touch area corresponding to the touch event is the button area for entering writing mode, then when the writing application receives a touch event of the type of lift event, it updates the state of the writing mode to the enabled state.
7. A touch trajectory display device, characterized in that, include: The operating system is configured to receive touch events; If it is determined that the writing mode is enabled, the touch event is reported to the writing application in real time. The writing application is configured to determine whether the touch display device is in a writing state based on the event type of the touch event; If it is determined that the touch display device is in a writing state, the writing application generates a touch trajectory based on the touch data in the touch event; The touch display is configured to show the touch trajectory at the end of the current refresh cycle.
8. A touch display device, characterized in that, include: Processor, memory, communication interface, touch display; The memory is used to store the executable instructions of the processor; The processor is configured to execute the touch trajectory display method according to any one of claims 1 to 6 by executing the executable instructions.
9. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the touch trajectory display method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, is used to implement the touch trajectory display method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Writing display method, device, equipment and system and storage medium
CN114217730A
Systems and methods for improving image tracking based on touch events
US20140152590A1