A triggering method, device and electronic device for a tactile waveform
By controlling the haptic waveform output device until the haptic waveform output is completed, the problem of the haptic waveform being interrupted when the user quickly performs multiple consecutive touch operations is solved, and the user's tactile experience is improved.
Patent Information
- Application Number
- CN202211559600.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-12-06
AI Technical Summary
When the user quickly performs multiple consecutive touch operations, the haptic waveform is easily interrupted and cannot form a complete haptic feeling, resulting in poor user touch experience.
By controlling the haptic generation device to generate a tactile response based on the haptic waveform during the output of the haptic waveform, until the output of the haptic waveform is completed, it ensures that the output is a complete haptic waveform and will not be cut off by the new touch signal.
It effectively solves the problem of tactile waveform being interrupted, ensuring that users can experience a complete touch when triggered in a fast and continuous manner, and improving the user's touch experience.
Smart Images

Figure CN116301418B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of human-computer interaction, and particularly to a method, device and electronic device for triggering a tactile waveform. Background Art
[0002] When implementing tactile rendering on an electronic product, it is necessary to obtain the characteristics of the physical surface. When a virtual object of the physical object is displayed on the electronic product and the user performs a touch operation on the virtual object, a tactile waveform will be generated at the position of the touch operation, allowing the user to experience the tactile sensation.
[0003] To ensure the user's tactile experience, the tactile waveform usually lasts for a period of time. However, when the user performs continuous touch operations, due to the too-fast operation speed, there may be a problem that the next tactile waveform is played before the previous tactile waveform is played completely, resulting in the interruption of the tactile waveform and thus the inability to form a complete tactile sensation, reducing the user's tactile experience. Summary of the Invention
[0004] The present invention provides a method, device and electronic device for triggering a tactile waveform, which is used to ensure that each tactile waveform can be played completely when the user performs continuous touch operations, improving the user's tactile experience.
[0005] In a first aspect, a method for triggering a tactile waveform provided by an embodiment of the present invention includes:
[0006] Responding to a touch signal generated by a user's touch on a display screen, and determining the tactile waveform corresponding to the touch signal;
[0007] If a new touch signal is received during the output of the tactile waveform, ending the touch event of the new touch signal, and controlling a tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed.
[0008] The method for triggering a tactile waveform provided in this embodiment ensures that the output tactile waveform is complete and will not be cut off by a new touch signal by controlling the tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed during the output of the tactile waveform, solving the problem that the tactile waveform is interrupted and cannot form a complete tactile sensation during the process of the user quickly performing multiple continuous touch operations, and effectively improving the user's tactile experience.
[0009] As a possible implementation manner, the triggering method further includes:
[0010] If a new touch signal is not received during the output of the tactile waveform, controlling the tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed.
[0011] As a possible implementation manner, determining the haptic waveform corresponding to the touch signal includes:
[0012] Determining the display content of the display screen at the touch coordinate according to the touch coordinate of the touch signal on the display screen;
[0013] Determining the haptic waveform according to the display content, or determining the haptic waveform according to the display content and the touch type of the touch signal.
[0014] As a possible implementation manner, controlling the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed includes:
[0015] Controlling the output duration of the haptic waveform by starting and stopping a timer;
[0016] Controlling the haptic generation device to generate a haptic response according to the haptic waveform according to the output duration of the haptic waveform until the output of the haptic waveform is completed.
[0017] As a possible implementation manner, determining the start and stop of the timer is performed in the following manner:
[0018] When receiving the touch signal and triggering the generation of the haptic waveform, starting the timer;
[0019] When the output of the haptic waveform is completed, stopping the timer or setting the timer to zero.
[0020] As a possible implementation manner, determining whether the output of the haptic waveform is completed is performed in the following manner:
[0021] Determining the corresponding output duration of the haptic waveform according to the preset correspondence between the haptic waveform and the output duration;
[0022] Determining whether the output of the haptic waveform is completed according to the timing duration of the timer and the output duration corresponding to the haptic waveform.
[0023] As a possible implementation manner, if a new touch signal is received during the output of the haptic waveform, ending the touch event of the new touch signal and controlling the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed includes:
[0024] If a new touch signal is received during the output of the haptic waveform, determining whether to end the touch event of the new touch signal according to the trigger flag bit of the haptic waveform, and controlling the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0025] As a possible implementation, the trigger flag bit of the haptic waveform is determined in the following manner:
[0026] Before receiving the touch signal, triggering the generation of the haptic waveform, and before the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the first flag, where the first flag is used to allow the output of the haptic waveform until the output is completed;
[0027] When it is determined that the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the second flag, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0028] As a possible implementation, according to the trigger flag bit of the haptic waveform, determine whether to end the touch event of the new touch signal, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed, including:
[0029] If the trigger flag bit is the first flag, end the touch event of the new touch signal, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed, where the first flag is used to allow the output of the haptic waveform until the output is completed;
[0030] If the trigger flag bit is the second flag, switch the second flag to the first flag and control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0031] As a possible implementation, if a new touch signal is received when it is determined that the output of the haptic waveform is completed, the triggering method further includes:
[0032] Switch the trigger flag bit from the second flag to the first flag, and control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal;
[0033] Where the first flag is used to allow the output of the haptic waveform until the output is completed, and the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0034] As a possible implementation, controlling the haptic generation device to generate a haptic response according to the haptic waveform includes:
[0035] Control the haptic generation device to generate at least one haptic response among click haptic, slide haptic, vibration haptic, jitter haptic, elastic haptic, and impact haptic according to the haptic waveform.
[0036] In a second aspect, a trigger device for a haptic waveform provided by an embodiment of the present invention includes:
[0037] A haptic waveform determination module, configured to determine a haptic waveform corresponding to the touch control signal in response to a touch control signal generated by a user's touch on a display screen;
[0038] A haptic response generation module, configured to, if a new touch control signal is received during the output of the haptic waveform, end the touch control event of the new touch control signal, and control a haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0039] In some embodiments, the haptic response generation module is further specifically configured to:
[0040] If a new touch control signal is not received during the output of the haptic waveform, control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0041] In some embodiments, the haptic waveform determination module includes a logic judgment module, and the logic judgment module is specifically configured to:
[0042] Determine the display content of the display screen at the touch coordinate according to the touch coordinate of the touch control signal on the display screen;
[0043] Determine the haptic waveform according to the display content, or determine the haptic waveform according to the display content and the touch type of the touch control signal.
[0044] In some embodiments, the haptic response generation module includes a timer module and a waveform output module;
[0045] The timer module is configured to control the output duration of the haptic waveform by starting and stopping a timer;
[0046] The waveform output module is configured to control the haptic generation device to generate a haptic response according to the haptic waveform according to the output duration of the haptic waveform until the output of the haptic waveform is completed.
[0047] In some embodiments, the timer module is specifically configured to determine the start and stop of the timer in the following manner:
[0048] When the touch control signal is received and the haptic waveform is triggered to be generated, start the timer;
[0049] When the output of the haptic waveform is completed, turn off the timer or set the timer to zero.
[0050] In some embodiments, the waveform output module is specifically configured to determine whether the output of the haptic waveform is completed in the following manner:
[0051] Determine the output duration corresponding to the haptic waveform according to the preset correspondence between the haptic waveform and the output duration;
[0052] Determine whether the output of the haptic waveform is completed according to the timing duration of the timer and the output duration corresponding to the haptic waveform.
[0053] In some embodiments, the haptic response generation module includes a conditional trigger module and a waveform output module;
[0054] The conditional trigger module is configured to determine the trigger flag bit of the haptic waveform; if a new touch signal is received during the output of the haptic waveform, determine whether to end the touch event of the new touch signal according to the trigger flag bit of the haptic waveform;
[0055] The waveform output module is configured to control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0056] In some embodiments, the conditional trigger module is specifically configured to determine the trigger flag bit of the haptic waveform in the following manner:
[0057] Before receiving the touch signal and triggering the generation of the haptic waveform and before the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the first flag, where the first flag is used to allow the output of the haptic waveform until the output is completed;
[0058] When it is determined that the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the second flag, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0059] In some embodiments, the conditional trigger module is specifically configured to: judge the trigger flag bit, if the trigger flag bit is the first flag, end the touch event of the new touch signal, where the first flag is used to allow the output of the haptic waveform until the output is completed;
[0060] The waveform output module is configured to control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0061] In some embodiments, the condition trigger module is specifically configured to: determine a trigger flag bit, and if the trigger flag bit is a second flag, switch the second flag to a first flag, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal;
[0062] The waveform output module is configured to control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0063] In some embodiments, if a new touch signal is received when it is determined that the output of the haptic waveform is completed, the condition trigger module is further specifically configured to:
[0064] Switch the trigger flag bit from the second flag to the first flag; where the first flag is used to allow the output of the haptic waveform until the output is completed, and the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal;
[0065] The waveform output module is configured to control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0066] In some embodiments, the waveform output module is specifically configured to:
[0067] Control the haptic generation device to generate at least one haptic response of click haptic, slide haptic, vibration haptic, jitter haptic, elastic haptic, impact haptic according to the haptic waveform.
[0068] In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory. The memory is used to store a program executable by the processor, and the processor is used to read the program in the memory and execute the following steps:
[0069] In response to a touch signal generated by a user's touch on a display screen, determine the haptic waveform corresponding to the touch signal;
[0070] If a new touch signal is received during the output of the haptic waveform, end the touch event of the new touch signal, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0071] As an optional implementation manner, the processor is further specifically configured to execute:
[0072] If a new touch signal is not received during the output of the haptic waveform, control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0073] As an alternative implementation, the processor is specifically configured to execute:
[0074] Determine the display content at the touch coordinates on the display screen according to the touch signal at the touch coordinates on the display screen;
[0075] Determine the haptic waveform according to the display content, or determine the haptic waveform according to the display content and the touch type of the touch signal.
[0076] As an alternative implementation, the processor is specifically configured to execute:
[0077] Control the output duration of the haptic waveform by starting and stopping a timer;
[0078] Control the haptic generation device to generate a haptic response according to the haptic waveform according to the output duration of the haptic waveform until the output of the haptic waveform is completed.
[0079] As an alternative implementation, the processor is specifically configured to determine the start and stop of the timer in the following manner:
[0080] Start the timer when the touch signal is received and triggers the generation of the haptic waveform;
[0081] When the output of the haptic waveform is completed, turn off the timer or set the timer to zero.
[0082] As an alternative implementation, the processor is specifically configured to determine whether the output of the haptic waveform is completed in the following manner:
[0083] Determine the output duration corresponding to the haptic waveform according to the correspondence between the preset haptic waveform and the output duration;
[0084] Determine whether the output of the haptic waveform is completed according to the timing duration of the timer and the output duration corresponding to the haptic waveform.
[0085] As an alternative implementation, the processor is specifically configured to execute:
[0086] If a new touch signal is received during the output of the haptic waveform, determine whether to end the touch event of the new touch signal according to the trigger flag bit of the haptic waveform, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0087] As an alternative implementation, the processor is specifically configured to determine the trigger flag bit of the haptic waveform in the following manner:
[0088] Before receiving the touch signal and triggering the generation of the haptic waveform, and before the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the first flag, where the first flag is used to allow the output of the haptic waveform until the output is completed;
[0089] When it is determined that the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the second flag, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to a new touch signal.
[0090] As an alternative implementation, the processor is specifically configured to execute:
[0091] If the trigger flag bit is the first flag, end the touch event of the new touch signal, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed, where the first flag is used to allow the output of the haptic waveform until the output is completed;
[0092] If the trigger flag bit is the second flag, switch the second flag to the first flag and control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to a new touch signal.
[0093] As an alternative implementation, if a new touch signal is received when it is determined that the output of the haptic waveform is completed, the processor is specifically further configured to execute:
[0094] Switch the trigger flag bit from the second flag to the first flag, and control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal;
[0095] Where the first flag is used to allow the output of the haptic waveform until the output is completed, and the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to a new touch signal.
[0096] As an alternative implementation, the processor is specifically configured to execute:
[0097] Control the haptic generation device to generate at least one haptic response of click haptic, slide haptic, vibration haptic, jitter haptic, elastic haptic, impact haptic according to the haptic waveform.
[0098] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, it is used to implement the steps of the method described in the first aspect above.
[0099] These aspects or other aspects of the present application will be more clearly understood in the following description of the embodiments. Description of the Drawings
[0100] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0101] Figure 1 It is a flowchart of an implementation of a method for triggering a tactile waveform provided by an embodiment of the present invention;
[0102] Figure 2 It is a schematic diagram of an application scenario provided by an embodiment of the present invention;
[0103] Figure 3 It is a flowchart of an implementation of a method for triggering a tactile waveform by combining a timer and a trigger flag provided by an embodiment of the present invention;
[0104] Figure 4 It is a structural diagram of a system for triggering a tactile waveform provided by an embodiment of the present invention;
[0105] Figure 5 It is an interaction flowchart of a system based on the above-mentioned tactile waveform trigger provided by an embodiment of the present invention;
[0106] Figure 6 It is a schematic diagram of a device for triggering a tactile waveform provided by an embodiment of the present invention;
[0107] Figure 7 It is a schematic diagram of an electronic device provided by an embodiment of the present invention. Detailed Embodiments
[0108] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0109] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0110] The application scenarios described in the embodiments of the present invention are for more clearly illustrating the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. As is known to those of ordinary skill in the art, with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems. Among them, in the description of the present invention, unless otherwise specified, the meaning of "a plurality of" is two or more.
[0111] The means by which humans perceive the external environment mainly include vision, hearing, touch, taste, smell, etc. Among them, touch plays an extremely important role in humans' perception of the shape, size, weight, texture, roughness, cold and heat and other characteristics of objects and materials. Currently, on electronic products, meeting the needs and rendering effects of human vision and hearing has been relatively mature and is widely used. Relatively speaking, the methods and effects of tactile rendering are relatively insufficient. The visual and auditory rendering processes collect information such as images, videos, and sounds through devices such as cameras / cameras and microphones, and after processing and storage, render and present the information such as images, videos, and sounds on rendering devices (such as televisions, computers, tablets, mobile phones, etc.). Similar to vision and hearing, to achieve tactile rendering, first, the characteristics of the physical object surface need to be extracted, and a similar effect to the physical object surface is generated on the display screen surface for human tactile interaction.
[0112] When implementing tactile rendering on an electronic product, it is necessary to obtain the characteristics of the physical object surface. When the virtual body of the physical object is displayed on the electronic product and the user performs a touch operation on the virtual body, a tactile waveform will be generated at the position of the touch operation, allowing the user to experience the tactile sensation. To ensure the user's tactile experience, the tactile waveform usually lasts for a period of time. However, when the user performs continuous touch operations, due to the operation speed being too fast to continuously play multiple generated tactile waveforms completely, there may be a problem that the next tactile waveform is played before the previous tactile waveform has been played completely, resulting in the interruption of the tactile waveform and thus unable to form a complete tactile perception. Especially when the user's operation speed is too fast, the user's tactile perception becomes very weak, almost non-existent, resulting in a poor tactile experience for the user.
[0113] In order to improve the user's tactile experience in this embodiment, a method for triggering a tactile waveform is proposed. The core idea is that even if a new touch signal is received during the output process of the tactile waveform, it can ensure the complete output of the tactile waveform. That is, during the output process of the tactile waveform, the tactile generation device is controlled to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed, ensuring that the output is a complete tactile waveform and will not be cut off by a new touch signal. This solves the problem that the tactile waveform is interrupted and unable to form a complete touch during the process of the user quickly performing multiple consecutive touch operations, effectively improving the user's tactile experience.
[0114] Such asFigure 1 As shown in the figure, the implementation process of a method for triggering a tactile waveform provided in this embodiment is as follows:
[0115] Step 100: In response to a touch signal generated by a user's touch on a display screen, determine the tactile waveform corresponding to the touch signal;
[0116] Optionally, collect the user's touch signal through a tactile sensor.
[0117] It should be noted that the display screen in this embodiment includes a display screen configured with a touch function. When the user performs a touch operation on the content displayed on the display screen, a corresponding touch signal is generated, and then a corresponding tactile waveform is generated. The tactile waveforms corresponding to different touch signals may be different or the same; for the same touch signal and different touch contents, the corresponding tactile waveforms may be different or the same; for different touch signals and different touch contents, the corresponding tactile waveforms may be different or the same; among them, the touch content is determined according to the content displayed at the position of the touch signal on the display screen.
[0118] In some embodiments, the tactile waveform corresponding to the touch signal is determined in the following manner, including:
[0119] According to the touch coordinates of the touch signal on the display screen, determine the content displayed on the display screen at the touch coordinates; determine the tactile waveform according to the display content, or determine the tactile waveform according to the display content and the touch type of the touch signal.
[0120] In implementation, the touch coordinates are determined based on the user's touch position (touch point position), and the touch signal includes touch coordinates; the touch coordinates include the coordinates of each touch point in the user's touch operation; when the touch coordinates are determined, the content displayed on the display screen corresponding to the user's touch position can be determined, and the corresponding tactile waveform can be judged according to the display content. For example, when the display content is a knob scale, determine the tactile waveform as the tactile waveform corresponding to the vibration feeling of the knob rotating. Optionally, the tactile waveform can also be determined according to the display content and the touch type of the touch signal. The touch type includes at least one of pressing, lifting, sliding, single-finger touch, and multi-finger touch.
[0121] Step 101: If a new touch signal is received during the output of the tactile waveform, end the touch event of the new touch signal, and control the tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed.
[0122] In some embodiments, the triggering method in this embodiment further includes the following steps:
[0123] If no new touch signal is received during the output of the tactile waveform, the tactile generation device is controlled to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed.
[0124] In implementation, regardless of whether a new touch signal is received during the output of the tactile waveform, it can ensure that the tactile waveform is played (or output) as a complete waveform, and it can ensure that the user will not be cut off during the output of the tactile waveform, thereby improving the user's tactile experience. When a new touch signal is received during the output of the tactile waveform, the touch event of the new touch signal will be ended, and the tactile waveform will continue to be output until it is completed. When the user triggers quickly and continuously, the tactile waveform being output (or played) will not be cut off. For example, in the scenario where the user quickly rotates a virtual knob, it can ensure that the user experiences a complete tactile sensation.
[0125] As Figure 2 shown, this embodiment also provides a schematic diagram of an application scenario. The content displayed on the display screen is as Figure 2 shown. The user can click on the small ball to perform a dragging operation. When clicking on the small ball, a click tactile sensation can be triggered. When dragging the small ball, a sliding tactile sensation can be triggered. When the small ball hits an obstacle, a boundary tactile sensation can be triggered, etc.
[0126] In some embodiments, this embodiment controls the tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed in the following manner:
[0127] (1) Control the output duration of the tactile waveform by starting and closing a timer.
[0128] In implementation, when the timer is started, timing begins. When the timing duration reaches the output duration of the tactile waveform, the timing stops, and the timer is closed or cleared.
[0129] In some embodiments, the start and stop of the timer are determined in the following manner:
[0130] When the touch signal is received and the tactile waveform is triggered to be generated, the timer is started;
[0131] When the output of the tactile waveform is completed, the timer is closed or set to zero.
[0132] In implementation, when the touch signal is received and the tactile waveform is triggered to be generated, the timer is started to begin timing. When it is determined that the output of the tactile waveform is completed, the timing stops. At this time, the timer is closed or set to zero.
[0133] Optionally, the output duration of the tactile waveform is predefined based on the type of the tactile waveform. This embodiment does not make too many limitations on this.
[0134] (2) Control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed, based on the output duration of the haptic waveform.
[0135] In implementation, the output duration of the haptic waveform can be used to control the complete output of the haptic waveform, so as to avoid the haptic waveform being cut off during playback and ensure the user's tactile experience.
[0136] In some embodiments, the following method is used to determine whether the output of the haptic waveform is completed:
[0137] Determine the output duration corresponding to the haptic waveform according to the preset correspondence between the haptic waveform and the output duration; determine whether the output of the haptic waveform is completed according to the timing duration of the timer and the output duration corresponding to the haptic waveform.
[0138] Among them, the output durations of different haptic waveforms can be different or the same. Each haptic waveform corresponds to an output duration to ensure the tactile experience of the haptic waveform; when the timing duration of the timer is equal to the output duration corresponding to the haptic waveform, it is determined that the output of the haptic waveform is completed, otherwise, the haptic waveform continues to be output.
[0139] In some embodiments, if a new touch signal is received during the output of the haptic waveform, the touch event of the new touch signal is ended, and the haptic generation device is controlled to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed. Specifically, it includes:
[0140] If a new touch signal is received during the output of the haptic waveform, determine whether to end the touch event of the new touch signal according to the trigger flag bit of the haptic waveform, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0141] In implementation, this embodiment can also use the trigger flag bit to control whether to end the touch event of the new touch signal and complete the output of the haptic waveform being output. The start and stop of the timer can also be associated with the trigger flag bit, that is, when the timer starts, the trigger flag is set to the first flag, and when the timer stops, the trigger flag is set to the second flag, which is used to cooperate with the timer to ensure that the touch event of the new touch signal received during the output of the haptic waveform is ended, and ensure that the haptic waveform will not be cut off during output.
[0142] Optionally, the first flag is used to indicate that the haptic waveform output is allowed until the output is completed. When a new touch signal is received during the output of the haptic waveform, the touch event of the new touch signal is allowed to end; the second flag is used to allow a new haptic response to be generated according to the haptic waveform corresponding to the new touch signal.
[0143] In some embodiments, the trigger flag bit of the haptic waveform is determined in the following manner:
[0144] (a) If a new touch signal is received during the output of the haptic waveform, then before the touch signal is received and triggers the generation of the haptic waveform, and before the haptic waveform output is completed, the trigger flag bit of the haptic waveform is determined to be the first flag, where the first flag is used to allow the haptic waveform output until the output is completed;
[0145] In implementation, if a new touch signal is received during the output of the haptic waveform, the haptic waveform needs to be completely output first. Before the haptic waveform output is completed, the touch event of the new touch signal needs to be ended. If a new touch signal is still received when the haptic waveform output is completed, then at this time, according to the haptic waveform corresponding to the new touch signal, the haptic generation device is controlled to generate a new haptic response according to the haptic waveform until the output is completed.
[0146] (b) If a new touch signal is received during the output of the haptic waveform, then when it is determined that the haptic waveform output is completed, the trigger flag bit of the haptic waveform is determined to be the second flag, where the second flag is used to allow a new haptic response to be generated according to the haptic waveform corresponding to the new touch signal.
[0147] In implementation, when the haptic waveform output is completed, the first flag of the haptic waveform is switched to the second flag. At this time, the rendering operation of the haptic waveform corresponding to the new touch signal is allowed, that is, when a new touch signal is received at this time, the second flag is switched to the first flag, and according to the haptic waveform corresponding to the new touch signal, the haptic generation device is controlled to generate a new haptic response according to the haptic waveform until the output is completed.
[0148] In some embodiments, according to the trigger flag bit of the haptic waveform, it is determined whether to end the touch event of the new touch signal, and the haptic generation device is controlled to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed. The specific judgment is made in the following manner:
[0149] If the trigger flag bit is the first flag, then the touch event of the new touch signal is ended, and the haptic generation device is controlled to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed, where the first flag is used to allow the haptic waveform output until the output is completed;
[0150] If the trigger flag is the second flag, switch the second flag to the first flag and control the tactile generation device to generate a new tactile response according to the tactile waveform corresponding to the new touch signal, where the second flag is used to allow the generation of a new tactile response according to the tactile waveform corresponding to the new touch signal.
[0151] In some embodiments, if a new touch signal is received when it is determined that the output of the tactile waveform is completed, this embodiment may further:
[0152] Switch the trigger flag from the second flag to the first flag, and control the tactile generation device to generate a new tactile response according to the tactile waveform corresponding to the new touch signal;
[0153] Wherein the first flag is used to allow the output of the tactile waveform until the output is completed, and the second flag is used to allow the generation of a new tactile response according to the tactile waveform corresponding to the new touch signal.
[0154] In some embodiments, this embodiment may further control the tactile generation device to generate at least one tactile response of click tactile, sliding tactile, vibration tactile, jitter tactile, elastic tactile, impact tactile, etc. according to the tactile waveform.
[0155] Optionally, the tactile generation device in this embodiment includes but is not limited to a vibration device, such as a vibration generator and other devices that provide tactile perception.
[0156] As Figure 3 shown, this embodiment provides a method for triggering a tactile waveform by combining a timer and a trigger flag, and the specific implementation process of this method is as follows:
[0157] Step 300, in response to a touch signal generated by a user's touch on the display screen, determine the tactile waveform corresponding to the touch signal;
[0158] Step 301, start a timer and set the trigger flag to the first flag;
[0159] Step 302, before the timer is turned off, control the tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed;
[0160] During implementation, regardless of whether a new touch signal is received at this time, the touch signal will not be responded to, and the touch event of the touch signal will be directly ended.
[0161] Step 303, when the timing duration of the timer is equal to the output duration corresponding to the tactile waveform, set the timer to zero and switch the trigger flag to the second flag;
[0162] Step 304: When a new touch signal is received, determine a new tactile waveform corresponding to the new touch signal;
[0163] Step 305: Start a timer. The timer starts timing and switches the trigger flag bit to the first flag;
[0164] Step 306: Before the timer is turned off, control the tactile generation device to generate a new tactile response according to the new tactile waveform until the output of the new tactile waveform is completed;
[0165] Step 307: When the timing duration of the timer is equal to the output duration corresponding to the new tactile waveform, set the timer to zero and switch the trigger flag bit to the second flag.
[0166] This embodiment provides a method for triggering a tactile waveform. When designing a tactile waveform, record the output duration of this type of tactile waveform, that is, preset the correspondence between the tactile waveform and the output duration. When designing the host computer software, the output duration of each tactile waveform can be written as an attribute of the tactile waveform class. When a certain tactile waveform is triggered, the logic design is as follows: when a tactile waveform is triggered, a timer is enabled synchronously, and the timing duration is the output duration of the tactile waveform. Before the timer is set to zero, the trigger flag bit is the first flag (such as false), that is, it is used to trigger the output of this tactile waveform and cannot trigger the output of other tactile waveforms. When the timer is set to zero, the trigger flag bit is the second flag (such as true), which is used to trigger the output of the tactile waveform of the new touch signal.
[0167] As Figure 4 shown, this embodiment also provides a system structure diagram for triggering a tactile waveform, including a software module, a hardware module, and a communication module, where:
[0168] The software module includes: a touch signal receiving module, a logic judgment module, a condition trigger module, a timer module, and a waveform output module;
[0169] The hardware module includes: a detection circuit, a tactile sensor, a signal excitation circuit, and a vibration generator (i.e., a tactile generation device);
[0170] The software module is connected to the detection circuit and the signal excitation circuit of the hardware module through the communication module, where the detection circuit is connected to the tactile sensor; the signal excitation circuit is connected to the vibration generator; the tactile sensor is used to receive the touch signal generated by the user's touch and convert the touch signal (including the touch coordinates) into an electrical signal through the detection circuit and send it to the software module; the signal excitation circuit is used to convert the tactile waveform provided by the software module into an electrical signal and drive the vibration generator to work.
[0171] When the user interacts with the display screen, the touch coordinates included in the touch signal of the user's touch are collected by the tactile sensor of the display screen, the touch coordinates are converted into electrical signals through the detection circuit, and the electrical signals are sent to the touch signal receiving module of the software module by the communication module; the touch signal receiving module is used to convert the electrical signals into touch coordinates; the logic judgment module is used to judge according to the UI interface of the current software of the display screen and the touch coordinates, determine the display content of the UI interface corresponding to the touch signal, and thus determine the tactile waveform to be triggered.
[0172] The condition trigger module is used to judge the trigger condition, specifically including: reading the trigger flag bit. If the trigger flag bit is the first flag false, the current trigger event ends. If the trigger flag bit is the second flag true, the trigger process of the tactile waveform continues and the timer module is started; the timer module uses the built-in timer to time the trigger of the tactile waveform, and the timing duration is set to the output duration of the tactile waveform to be triggered (that is, the complete trigger duration of the tactile waveform). During the timing, the trigger flag bit is set to false, and after the timer returns to zero, the trigger flag bit is set to true again; the waveform output module is used to output the tactile waveform and transmit the corresponding tactile waveform to the signal excitation circuit of the hardware module through the communication module, so as to drive the vibration generator to work.
[0173] As Figure 5 shown, this embodiment also provides an interaction process of a system based on the above-mentioned tactile waveform trigger, and the specific implementation process is as follows:
[0174] Step 500: The user touches the display screen.
[0175] Step 501: The tactile sensor of the display screen detects the touch signal.
[0176] Step 502: Use the detection circuit to convert the touch signal into an electrical signal, and use the communication module to send the electrical signal to the touch signal receiving module.
[0177] Step 503: The touch signal receiving module converts the electrical signal into a touch signal and determines the touch coordinates of the touch signal.
[0178] Step 504: Determine the tactile waveform according to the UI interface of the display screen and the touch coordinates.
[0179] Step 505: Judge whether the trigger condition is met according to the trigger flag bit. If yes, execute step 506, otherwise execute step 508.
[0180] Among them, when the trigger flag bit is the second flag, it is determined that the trigger condition is met. When the trigger flag bit is the first flag, it is determined that the trigger condition is not met.
[0181] Step 506: Output a haptic waveform through the waveform output module, and send the haptic waveform to the signal excitation circuit using the communication module to drive the vibration generator to start. At the same time, the timer module starts and sets the waveform trigger flag to the first flag.
[0182] The timing duration of the timer module is equal to the output duration of the haptic waveform. At this time, the generation of other haptic waveforms cannot be triggered.
[0183] Step 507: When the timing duration of the timer module reaches the output duration of the haptic waveform, the timer is reset to zero, and the waveform trigger flag is set to the second flag, which is used to trigger the next haptic waveform.
[0184] Step 508: End the triggering event of the current touch signal and wait to receive the next touch signal.
[0185] A method for triggering a haptic waveform provided in this embodiment controls whether to trigger the generation of a haptic waveform by designing a trigger flag, avoiding incomplete haptic waveforms caused by interrupted output of the haptic waveform, thereby affecting the touch feeling.
[0186] Based on the same inventive concept, an embodiment of the present invention also provides a device for triggering a haptic waveform. Since this device is the same as the device in the method of this embodiment of the present invention, and the principle of solving problems by this device is similar to that of this method, the implementation of this device can refer to the implementation of the method, and the repeated parts will not be elaborated.
[0187] As Figure 6 shown, the triggering device includes:
[0188] A haptic waveform determination module 600, configured to determine a haptic waveform corresponding to the touch signal in response to a touch signal generated by a user touching a display screen.
[0189] A haptic response generation module 601, configured to end the touch event of the new touch signal if a new touch signal is received during the output of the haptic waveform, and control a haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0190] In some embodiments, the haptic response generation module 601 is further specifically configured to:
[0191] If no new touch signal is received during the output of the haptic waveform, control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0192] In some embodiments, the haptic waveform determination module 600 includes a logic judgment module, and the logic judgment module is specifically configured to:
[0193] Determine the display content at the touch coordinates of the display screen according to the touch signal at the touch coordinates of the display screen;
[0194] Determine the haptic waveform according to the display content, or determine the haptic waveform according to the display content and the touch type of the touch signal.
[0195] In some embodiments, the haptic response generation module 601 includes a timer module and a waveform output module;
[0196] The timer module is used to control the output duration of the haptic waveform by starting and stopping the timer;
[0197] The waveform output module is used to control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0198] In some embodiments, the timer module is specifically used to determine the start and stop of the timer in the following manner:
[0199] When receiving the touch signal and triggering the generation of the haptic waveform, start the timer;
[0200] When the output of the haptic waveform is completed, stop the timer or set the timer to zero.
[0201] In some embodiments, the waveform output module is specifically used to determine whether the output of the haptic waveform is completed in the following manner:
[0202] Determine the output duration corresponding to the haptic waveform according to the preset correspondence between the haptic waveform and the output duration;
[0203] Determine whether the output of the haptic waveform is completed according to the timing duration of the timer and the output duration corresponding to the haptic waveform.
[0204] In some embodiments, the haptic response generation module 601 includes a condition trigger module and a waveform output module;
[0205] The condition trigger module is used to determine the trigger flag bit of the haptic waveform; if a new touch signal is received during the output of the haptic waveform, determine whether to end the touch event of the new touch signal according to the trigger flag bit of the haptic waveform;
[0206] The waveform output module is used to control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0207] In some embodiments, the condition trigger module is specifically configured to determine the trigger flag bit of the haptic waveform in the following manner:
[0208] Before the haptic waveform output is completed after receiving the touch signal and triggering the generation of the haptic waveform, determine that the trigger flag bit of the haptic waveform is the first flag, where the first flag is used to allow the haptic waveform to be output until the output is completed;
[0209] When it is determined that the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the second flag, where the second flag is used to allow a new haptic response to be generated according to the haptic waveform corresponding to the new touch signal.
[0210] In some embodiments, the condition trigger module is specifically configured to: judge the trigger flag bit. If the trigger flag bit is the first flag, end the touch event of the new touch signal, where the first flag is used to allow the haptic waveform to be output until the output is completed;
[0211] The waveform output module is configured to control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0212] In some embodiments, the condition trigger module is specifically configured to: judge the trigger flag bit. If the trigger flag bit is the second flag, switch the second flag to the first flag, where the second flag is used to allow a new haptic response to be generated according to the haptic waveform corresponding to the new touch signal;
[0213] The waveform output module is configured to control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0214] In some embodiments, if a new touch signal is received when it is determined that the output of the haptic waveform is completed, the condition trigger module is specifically further configured to:
[0215] Switch the trigger flag bit from the second flag to the first flag; where the first flag is used to allow the haptic waveform to be output until the output is completed, and the second flag is used to allow a new haptic response to be generated according to the haptic waveform corresponding to the new touch signal;
[0216] The waveform output module is configured to control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0217] In some embodiments, the waveform output module is specifically configured to:
[0218] Control the haptic generation device to generate at least one haptic response among click haptics, sliding haptics, vibration haptics, jitter haptics, elastic haptics, and impact haptics according to the haptic waveform.
[0219] In some embodiments, the triggering device in this embodiment includes a haptic waveform determination module and a haptic response generation module;
[0220] Among them, the haptic waveform determination module includes: a detection circuit, a haptic sensor, a touch signal receiving module, and a communication module;
[0221] The haptic response generation module includes: a logic judgment module, a condition trigger module, a timer module, a waveform output module, a signal excitation circuit, and a vibration generator (i.e., the haptic generation device).
[0222] Among them, the touch signal receiving module is connected to the detection circuit through the communication module, and the detection circuit is connected to the haptic sensor. When the user interacts with the display screen, the touch coordinates included in the touch signal of the user's touch are collected by the haptic sensor of the display screen, the touch coordinates are converted into electrical signals through the detection circuit, and the electrical signals are sent to the touch signal receiving module of the software module by the communication module; the touch signal receiving module is used to convert the electrical signals into touch coordinates.
[0223] The touch signal receiving module is connected to the logic judgment module. The logic judgment module is used to judge according to the UI interface of the current software on the display screen and the touch coordinates, determine the display content of the UI interface corresponding to the touch signal, and thus determine the haptic waveform to be triggered;
[0224] The logic judgment module is connected to the condition trigger module. The condition trigger module is used to judge the trigger conditions, specifically including: reading the trigger flag bit. If the trigger flag bit is the first flag false, then end the current trigger event. If the trigger flag bit is the second flag true, then continue the haptic waveform trigger process and start the timer module; the timer module uses the built-in timer to time the trigger of the haptic waveform, and the timing duration is set to the output duration of the haptic waveform to be triggered (i.e., the complete trigger duration of the haptic waveform). During the timing, the trigger flag bit will be set to false, and after the timer returns to zero, the trigger flag bit will be set to true again; the waveform output module is used to output the haptic waveform and transmit the corresponding haptic waveform to the signal excitation circuit of the hardware module through the communication module, so as to drive the vibration generator to work.
[0225] The waveform output module is connected to the signal excitation circuit through the communication module, and the signal excitation circuit is connected to the vibration generator; the signal excitation circuit is used to convert the haptic waveform provided by the software module into an electrical signal and drive the vibration generator to work.
[0226] Based on the same inventive concept, an embodiment of the present invention further provides an electronic device. Since this device is the device in the method of the embodiment of the present invention, and the principle of this device to solve problems is similar to that of the method, the implementation of this device can refer to the implementation of the method, and the repeated parts will not be elaborated again.
[0227] As Figure 7 shown, the device includes a processor 700 and a memory 701. The memory 701 is used to store programs executable by the processor 700, and the processor 700 is used to read the programs in the memory 701 and execute the following steps:
[0228] In response to a touch signal generated by a user's touch on the display screen, determine the haptic waveform corresponding to the touch signal;
[0229] If a new touch signal is received during the output of the haptic waveform, end the touch event of the new touch signal, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0230] As an optional implementation manner, the processor 700 is specifically further configured to execute:
[0231] If no new touch signal is received during the output of the haptic waveform, control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0232] As an optional implementation manner, the processor 700 is specifically configured to execute:
[0233] According to the touch coordinates of the touch signal on the display screen, determine the display content of the display screen at the touch coordinates;
[0234] Determine the haptic waveform according to the display content, or determine the haptic waveform according to the display content and the touch type of the touch signal.
[0235] As an optional implementation manner, the processor 700 is specifically configured to execute:
[0236] Control the output duration of the haptic waveform by starting and stopping a timer;
[0237] According to the output duration of the haptic waveform, control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0238] As an optional implementation manner, the processor 700 is specifically configured to determine the start and stop of the timer in the following manner:
[0239] When the touch signal is received and the generation of the haptic waveform is triggered, start the timer;
[0240] When the output of the haptic waveform is completed, turn off the timer or set the timer to zero.
[0241] As an alternative implementation, the processor 700 is specifically configured to determine whether the output of the haptic waveform is completed in the following manner:
[0242] Determine the output duration corresponding to the haptic waveform according to the preset correspondence between the haptic waveform and the output duration;
[0243] Determine whether the output of the haptic waveform is completed according to the timing duration of the timer and the output duration corresponding to the haptic waveform.
[0244] As an alternative implementation, the processor 700 is specifically configured to execute:
[0245] If a new touch signal is received during the output of the haptic waveform, determine whether to end the touch event of the new touch signal according to the trigger flag bit of the haptic waveform, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
[0246] As an alternative implementation, the processor 700 is specifically configured to determine the trigger flag bit of the haptic waveform in the following manner:
[0247] Before the touch signal is received and the generation of the haptic waveform is triggered and before the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the first flag, where the first flag is used to allow the output of the haptic waveform until the output is completed;
[0248] When it is determined that the output of the haptic waveform is completed, determine that the trigger flag bit of the haptic waveform is the second flag, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0249] As an alternative implementation, the processor 700 is specifically configured to execute:
[0250] If the trigger flag bit is the first flag, end the touch event of the new touch signal, and control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed, where the first flag is used to allow the output of the haptic waveform until the output is completed;
[0251] If the trigger flag bit is the second flag, then switch the second flag to the first flag and control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0252] As an alternative implementation, if a new touch signal is received when it is determined that the haptic waveform output is completed, then the processor 700 is specifically further configured to perform:
[0253] Switch the trigger flag bit from the second flag to the first flag, and control the haptic generation device to generate a new haptic response according to the haptic waveform corresponding to the new touch signal;
[0254] Wherein the first flag is used to allow the haptic waveform output until the output is completed, and the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to the new touch signal.
[0255] As an alternative implementation, the processor 700 is specifically configured to perform:
[0256] Control the haptic generation device to generate at least one haptic response of click haptic, slide haptic, vibration haptic, jitter haptic, elastic haptic, impact haptic, etc. according to the haptic waveform.
[0257] Based on the same inventive concept, an embodiment of the present disclosure provides a computer storage medium, which includes: computer program code, when the computer program code runs on a computer, it causes the computer to execute the trigger method of any haptic waveform discussed above. Since the principle of solving problems by the above computer storage medium is similar to that of the trigger method of the haptic waveform, the implementation of the above computer storage medium can refer to the implementation of the method, and the repeated parts will not be described again.
[0258] In a specific implementation process, the computer storage medium may include: various storage media such as a universal serial bus flash drive (USB, Universal Serial Bus Flash Drive), a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc that can store program code.
[0259] Based on the same inventive concept, embodiments of the present disclosure further provide a computer program product, which includes: computer program code that, when running on a computer, causes the computer to execute the method for triggering a tactile waveform as described in any of the foregoing discussions. Since the principle of solving problems by the above computer program product is similar to that of the method for triggering a tactile waveform, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be elaborated.
[0260] The computer program product may adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0261] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) containing computer-usable program code.
[0262] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0263] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means embodying the functionality specified in the flowchart Figure 1 a flowchart or multiple flowcharts and / or blocks Figure 1 or blocks or multiple blocks.
[0264] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the functionality specified in the flowchart Figure 1 a flowchart or multiple flowcharts and / or blocks Figure 1 or blocks or multiple blocks.
[0265] It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit and scope of the invention. Thus, if these modifications and variations of the present invention come within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
Claims
1. A method for triggering a tactile waveform, characterized in that, The triggering method includes: In response to a touch signal generated by a user's touch on a display screen, determining a haptic waveform corresponding to the touch signal; If a new touch signal is received during the output of the haptic waveform, ending the touch event of the new touch signal, and controlling a haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
2. The triggering method according to claim 1, wherein The triggering method further includes: If no new touch signal is received during the output of the haptic waveform, controlling a haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
3. The triggering method according to claim 1, wherein The determining of the haptic waveform corresponding to the touch signal includes: According to the touch coordinates of the touch signal on the display screen, determining the display content of the display screen at the touch coordinates; Determining the haptic waveform according to the display content, or determining the haptic waveform according to the display content and the touch type of the touch signal.
4. The triggering method according to any one of claims 1 to 3, characterized in that, The controlling of the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed includes: Controlling the output duration of the haptic waveform by starting and stopping a timer; According to the output duration of the haptic waveform, controlling a haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
5. The triggering method according to claim 4, wherein The starting and stopping of the timer are determined in the following manner: When the touch signal is received and the haptic waveform is triggered to be generated, starting the timer; When the output of the haptic waveform is completed, stopping the timer or setting the timer to zero.
6. The triggering method according to claim 4, wherein The determination of whether the output of the haptic waveform is completed is made in the following manner: According to the corresponding relationship between a preset haptic waveform and an output duration, determining the output duration corresponding to the haptic waveform; According to the timing duration of the timer and the output duration corresponding to the haptic waveform, determining whether the output of the haptic waveform is completed.
7. The triggering method according to any one of claims 1 to 3, characterized in that The "if a new touch signal is received during the output of the haptic waveform, ending the touch event of the new touch signal, and controlling a haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed" includes: If a new touch signal is received during the output of the haptic waveform, determining whether to end the touch event of the new touch signal according to the trigger flag bit of the haptic waveform, and controlling a haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
8. The triggering method according to claim 7, wherein The trigger flag bit of the haptic waveform is determined in the following manner: Before the touch signal is received and the haptic waveform is triggered to be generated and before the output of the haptic waveform is completed, determining that the trigger flag bit of the haptic waveform is a first flag, where the first flag is used to allow the output of the haptic waveform until the output is completed; When it is determined that the output of the haptic waveform is completed, determining that the trigger flag bit of the haptic waveform is a second flag, where the second flag is used to allow the generation of a new haptic response according to the haptic waveform corresponding to a new touch signal.
9. The triggering method according to claim 7, wherein Determining whether to end the touch event of the new touch signal according to the trigger flag bit of the tactile waveform, and controlling the tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed, includes: If the trigger flag bit is the first flag, end the touch event of the new touch signal, and control the tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed, where the first flag is used to allow the output of the tactile waveform until the output is completed; If the trigger flag bit is the second flag, switch the second flag to the first flag and control the tactile generation device to generate a new tactile response according to the tactile waveform corresponding to the new touch signal, where the second flag is used to allow the generation of a new tactile response according to the tactile waveform corresponding to the new touch signal.
10. The triggering method according to claim 7, characterized in that If a new touch signal is received when it is determined that the output of the tactile waveform is completed, the trigger method further includes: Switch the trigger flag bit from the second flag to the first flag, and control the tactile generation device to generate a new tactile response according to the tactile waveform corresponding to the new touch signal; Where the first flag is used to allow the output of the tactile waveform until the output is completed, and the second flag is used to allow the generation of a new tactile response according to the tactile waveform corresponding to the new touch signal.
11. The method according to claim 1, characterized in that, The controlling the tactile generation device to generate a tactile response according to the tactile waveform includes: Controlling the tactile generation device to generate at least one tactile response of click tactile, slide tactile, vibration tactile, jitter tactile, elastic tactile, impact tactile according to the tactile waveform.
12. A trigger device for a tactile waveform, characterized in that, Includes: A tactile waveform determination module, configured to determine the tactile waveform corresponding to the touch signal in response to a touch signal generated by a user touching on a display screen; A tactile response generation module, configured to, if a new touch signal is received during the output of the tactile waveform, end the touch event of the new touch signal, and control the tactile generation device to generate a tactile response according to the tactile waveform until the output of the tactile waveform is completed.
13. The triggering device according to claim 12, characterized in that, The tactile waveform determination module includes a logic judgment module, and the logic judgment module is specifically configured to: Determine the display content of the display screen at the touch coordinate according to the touch coordinate of the touch signal on the display screen; Determine the tactile waveform according to the display content, or determine the tactile waveform according to the display content and the touch type of the touch signal.
14. The triggering device according to claim 12 or 13, characterized in that, The tactile response generation module includes a timer module and a waveform output module; The timer module is configured to control the output duration of the tactile waveform by starting and closing a timer; The waveform output module is configured to control the tactile generation device to generate a tactile response according to the tactile waveform according to the output duration of the tactile waveform until the output of the tactile waveform is completed.
15. The triggering device according to claim 12 or 13, characterized in that, The tactile response generation module includes a conditional trigger module and a waveform output module; The conditional trigger module is used to determine the trigger flag bit of the haptic waveform; if a new touch signal is received during the output of the haptic waveform, it determines whether to end the touch event of the new touch signal according to the trigger flag bit of the haptic waveform. The waveform output module is used to control the haptic generation device to generate a haptic response according to the haptic waveform until the output of the haptic waveform is completed.
Citation Information
Patent Citations
Touch response method and device
CN103616970A
Devices, methods and graphical user interfaces for system-wide behavior for 3D models
CN110851053A