The present application is a divisional application of chinese patent application 201410118479.9 entitled "method and apparatus for adjusting sliding of touch screen, and touch device" filed on 03/27/2014.
Disclosure of Invention
The invention aims to provide a sliding adjustment method and device for a touch screen, and aims to solve the problems that sliding response parameters are fixed and unchanged and sliding operation adaptability is poor in the conventional touch screen.
In order to solve the technical problems, the adjusting method provided by the invention is realized by adopting the following technical scheme:
a touch screen slide adjustment method, the method comprising the steps of:
entering a sliding setting interface to prompt a user to perform sliding operation of a touch screen;
detecting a sliding distance of a user on the touch screen;
and generating a current user sliding response parameter according to the sliding distance and a preset initial sliding response parameter.
In the adjustment method, the step of entering the sliding setting interface to prompt the user to perform the sliding operation of the touch screen specifically includes:
and displaying a sliding operation mode corresponding to the trigger designated function on a sliding setting interface, and prompting a user to execute the sliding operation of the trigger designated function according to the sliding operation mode.
In the foregoing adjusting method, the step of generating the current user sliding response parameter according to the sliding distance and the preset initial sliding response parameter specifically includes: and obtaining a parameter value corresponding to the trigger specified function from the initial sliding response parameter, comparing the sliding distance with the parameter value, increasing the initial sliding response parameter to generate the current user sliding response parameter when the sliding distance is greater than the parameter value, and decreasing the initial sliding response parameter to generate the current user sliding response parameter when the sliding distance is less than the parameter value.
Furthermore, after a parameter value corresponding to the trigger-specified function is obtained from the initial sliding response parameter, a ratio of the sliding distance to the parameter value is calculated, and the initial sliding response parameter is increased or decreased in an equal proportion according to the ratio to generate the current user sliding response parameter.
The adjusting method as described above, after obtaining the current user sliding response parameter, further includes the following steps:
and associating the current user sliding response parameter with the identity information of the user.
The adjustment method as described above, before the step of entering the slide setting interface, further includes:
entering a user identity recognition interface to prompt a user to input identity information;
judging whether a current user sliding response parameter associated with the user identity information exists or not;
and if not, executing the step of entering the sliding setting interface.
In order to solve the above technical problems, the adjusting device provided by the present invention is implemented by adopting the following technical scheme:
a touch screen slide adjustment apparatus, the apparatus comprising:
the sliding setting prompting module is used for providing a sliding setting interface and prompting a user to perform sliding operation of the touch screen;
the detection module is used for detecting the sliding distance of a user on the touch screen;
and the sliding adjustment module is used for generating a current user sliding response parameter according to the sliding distance and a preset initial sliding response parameter.
In the adjusting device, the slide setting prompting module displays a slide operation mode corresponding to the trigger specified function on the slide setting interface, and prompts a user to execute a slide operation for triggering the specified function according to the slide operation mode;
the sliding adjustment module specifically comprises:
a parameter value obtaining unit, configured to obtain a parameter value corresponding to the trigger specification function from the initial sliding response parameter;
the sliding distance comparison unit is connected with the parameter value acquisition unit and the detection module and is used for comparing the sliding distance with the parameter value;
and the current user sliding response parameter generating unit is connected with the sliding distance comparing unit and used for increasing the initial sliding response parameter and generating the current user sliding response parameter when the sliding distance is greater than the parameter value, and decreasing the initial sliding response parameter and generating the current user sliding response parameter when the sliding distance is less than the parameter value.
The adjustment device as described above, the device further comprising:
the user identity input module is used for providing a user identity recognition interface, prompting a user to input identity information and receiving the input user identity information;
the adjustment judging module is used for reading the user identity information received by the user identity input module and judging whether a current user sliding response parameter associated with the user identity information exists or not;
and after the adjustment judging module judges that no sliding response parameter associated with the user identity information exists, the sliding setting prompting module works.
The invention further provides the touch control equipment, so that the comfortable experience of a user using the touch screen is improved.
Specifically, the touch device comprises a touch screen and is further provided with the touch screen sliding adjusting device.
Compared with the prior art, the invention has the advantages and positive effects that: according to the touch screen adjusting method and device, the sliding distance of the user when the touch screen is slid is detected, the initial sliding response parameter is adjusted based on the sliding distance, the adjusted current user sliding response parameter is generated, the self-adaptive calibration of the sliding response parameter is realized, the self-adaptive adjusting capability of the sliding operation of the touch screen is further realized, the improvement of the user experience comfort is facilitated, and the personalized requirements of the user are met.
Other features and advantages of the present invention will become more apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Please refer to fig. 1 and fig. 2 for a first embodiment of a sliding adjustment method of a touch screen according to the present invention, wherein fig. 1 is a main flow chart of the embodiment, and fig. 2 is a detailed flow chart of step 150 in fig. 1.
As shown in fig. 1, the main flow of the first embodiment of the touch screen sliding adjustment method of the present invention is as follows:
step 110: the process begins.
Step 120: the touch screen is activated.
Step 130: and entering a sliding setting interface to prompt a user to perform sliding operation of the touch screen.
And after the touch screen is started, entering a sliding setting interface to start sliding adjustment of the touch screen. Furthermore, a user-friendly interactive interface can be provided.
The sliding adjustment process may be performed after each activation of the touch screen, may be performed only when the touch screen is first activated for use, or may be selectively performed after each activation. The method for performing the sliding adjustment of the touch screen once only when the touch screen is started for use for the first time is suitable for personal special touch equipment such as a mobile terminal. For a touch device for multiple users, it is preferable to perform or selectively perform the sliding adjustment process after each touch screen is activated. For the way of selective execution, reference may be made to the fig. 3 embodiment.
The sliding response parameters for the touch screen generally include a plurality of parameters, such as a page turning effective parameter, a sliding distance parameter corresponding to page turning, a line moving effective parameter, a sliding distance parameter corresponding to line moving, and the like, and these parameters are generally represented by the number of pixels. Touch screen sliding adjustment schemes provided by different touch screen manufacturers cannot be completely consistent, and different functions can be triggered by sliding operation performed by a user. The corresponding slip response parameters will be different for different trigger functions. For example, the touch screen a requires that the sliding operation performed by the user is to turn the display interface of the touch screen by 1 page, and the corresponding sliding response parameters include a page turning effective parameter and a sliding distance parameter corresponding to turning by 1 page; the touch screen B requires that the sliding operation performed by the user is to move the current page of the touch screen up or down by 5 lines, and the corresponding sliding response parameters include a line-moving effective parameter and a sliding distance parameter corresponding to the 5 lines of movement.
In order to realize the personalized sliding adjustment of different touch screens, after entering a sliding setting interface, a triggering appointed function corresponding to the sliding operation is displayed on the interface, and a sliding operation mode corresponding to the triggering appointed function is given. And simultaneously prompting the user to execute the sliding operation for triggering the specified function according to the sliding operation mode. The sliding operation mode here is to prompt the user how to perform the sliding operation to trigger the designated function. For example, the trigger specification function is "display interface page 1", and the corresponding sliding operation mode is "single-finger linear sliding"; or, the trigger designation function is "image enlargement", and the corresponding sliding operation mode is "two fingers touch at the same time and slide in reverse direction". By executing the step, the sliding operation executed by a specific user according to the normal use habit can be collected, so that the characteristics of the user with different finger lengths are reflected, and the habitual operation characteristics of the user during sliding can also be reflected.
Step 140: and detecting the sliding distance of the user on the touch screen.
The sliding distance can be performed in the following manner: and taking a point where the user finger touches the touch screen as a starting point, taking a point where the user finger leaves the touch screen after sliding along the touch screen from the starting point as an end point, and acquiring the coordinates of the starting point and the coordinates of the end point. And then, calculating the distance between the starting point and the end point according to the two coordinate values, wherein the distance is the sliding distance. The distance may be represented by a length unit (e.g., mm), or may be represented by the number of pixels, and what type of representation is specifically adopted is determined according to an initial sliding response parameter preset in the touch screen. Furthermore, obtaining the coordinates of the point where the user touches the touch screen can be achieved using existing techniques.
In particular, the recorded sliding distance can be obtained in two different ways:
first, the current sliding distance is a distance of one sliding. Specifically, after entering the sliding setting interface, the user is prompted to perform only one sliding operation of the touch screen, and the sliding distance of the sliding operation is calculated according to the above manner and then recorded.
Second, the current sliding distance is the average distance of multiple sliding. Specifically, after entering the slide setting interface, the user is prompted to perform a plurality of slide operations for a set number of times, and the slide distance of each slide operation is calculated in the above manner. Finally, the average value of the plurality of sliding distances is calculated and recorded as the sliding distance.
Step 150: and generating a current user sliding response parameter according to the sliding distance and a preset initial sliding response parameter.
As described above, the sliding response parameters herein refer to all possible sliding response parameters of the existing touch screen, including but not limited to a page turning effective parameter, a sliding distance parameter corresponding to page turning, a line moving effective parameter, a sliding distance parameter corresponding to line moving, and a multi-touch response parameter. The parameter value of each parameter reflects the sliding distance required for realizing the function corresponding to the parameter. For example, the parameter value of the effective page turning parameter is 60 pixel points, which indicates that the page turning function is effective after the sliding distance reaches 60 pixel points; the parameter value of the sliding distance parameter corresponding to page turning 1 is 25, which indicates that after the page turning function is effective, the page turns 1 page by sliding 25 pixel points each time. After the touch screen leaves a factory, initial sliding response parameters are preset. The initial sliding response parameter is used as an adjustment reference value, and the reference value is adjusted by combining the sliding distance when the user performs the sliding operation, so that the current user sliding response parameter personalized by the user is generated. Thereafter, upon receiving a user slide touch screen event, the touch screen slide event will be responded to according to the current user slide response parameters.
Specifically, the basic method for generating the current user sliding response parameter according to the sliding distance and the preset initial sliding response parameter comprises the following steps:
and acquiring a parameter value corresponding to the trigger specified function from the initial sliding response parameter. Specifically, if the number of parameters corresponding to the trigger specification function is plural, the parameter value is the sum of the values of the plural parameters. For example, the parameter value of the effective page turning parameter is 60 pixels, the parameter value of the sliding distance parameter corresponding to page turning 1 is 25 pixels, and if the designated function is "page turning 3", the parameter value corresponding to the designated function is triggered to be 60+3 × 25=135 pixels. The sliding distance detected in step 140 is then compared to the magnitude of the parameter value. In this case, the sliding distance is also expressed in terms of the number of pixel points. If the sliding distance is greater than the parameter value, the distance of the current user sliding once is larger than the initial value, so the initial sliding response parameter is increased, and the sliding response parameter of the current user is generated. Otherwise, when the sliding distance is smaller than the parameter value, the distance indicating that the current user slides once is smaller than the initial value, the initial sliding response parameter is reduced, and the sliding response parameter of the current user is generated. Therefore, the self-adaptive adjustment of the sliding response parameters to the user is realized.
Step 160: the slide adjustment process ends.
The specific adjustment process of the current user sliding response parameter can be seen in fig. 2 and the following description of fig. 2.
Referring to fig. 2, a specific processing flow of step 150 in the embodiment of fig. 1 is as follows:
step 151: and acquiring a parameter value corresponding to the trigger specified function from the initial sliding response parameter.
When the sliding adjustment of the touch screen is performed, the parameter value corresponding to the trigger-specified function prompted in step 130 is read from the initial sliding response parameter stored in the touch screen or the touch device. As described above, if the parameter corresponding to the trigger specification function is plural, the parameter value is the sum of the values of the plural parameters.
Step 152: and calculating the ratio of the sliding distance to the parameter value.
Here, the sliding distance is kept consistent with the unit of the parameter value. For example, the parameter value is the number of pixels, and the sliding distance is also the number of pixels, so that the two can be directly compared to obtain the ratio.
Step 153: and increasing or decreasing the initial sliding response parameter in an equal proportion according to the ratio to generate the current user sliding response parameter.
And scaling the initial sliding response parameter in an equal proportion according to the ratio of the sliding distance to the initial sliding response parameter calculated in the step 152, so as to obtain the current user sliding response parameter corresponding to the user one by one. After the user executes the sliding operation of the touch screen, the sliding operation of the user is responded according to the adjusted sliding response parameters of the current user, different users can obtain the same sliding effect as other users when sliding once, and the touch experience of the user is effectively improved.
Of course, the step 150 of adjusting the current user sliding response parameter according to the initial sliding response parameter and the sliding distance is not limited by the method of fig. 2, and other adjustment methods may be adopted. For example, the initial slip response parameter may be scaled by a fixed ratio based on the difference between the slip distance and the parameter value.
Referring to fig. 3, a flowchart of a sliding adjustment method according to a second embodiment of the invention is shown.
As shown in fig. 3, the flow of the second embodiment of the touch screen sliding adjustment method of the present invention is as follows:
step 210: the process begins.
Step 220: the touch screen is activated.
Step 230: and entering a user identity recognition interface to prompt the user to input identity information.
The identity information referred to herein may be account information that the user has registered. Or, other pre-agreed identity information that can be recognized by the touch device.
Step 240: and judging whether the current user sliding response parameter associated with the user identity information exists.
As described in connection with step 280 below, after each adjustment of the sliding response parameter, the sliding response parameter of the current user is associated with the identity information of the corresponding user. Therefore, after the user inputs the identity information through the identity recognition interface, whether the current user sliding response parameter associated with the user identity information already exists is judged. If so, step 250 is performed. If not, go to step 260.
Step 250: and if the current user sliding response parameter associated with the current user identity information already exists, exiting the sliding adjustment process and executing other operations.
Step 260: and if the current user sliding response parameter associated with the current user identification information does not exist, entering a sliding setting interface, and prompting the user to perform touch screen sliding operation.
A more specific implementation process of this step can refer to the description of the embodiment of fig. 1.
Step 270: and detecting the sliding distance of the user on the touch screen.
A more specific implementation process of this step can refer to the description of the embodiment of fig. 1.
Step 280: and generating a current user sliding response parameter according to the sliding distance and a preset initial sliding response parameter, and associating the current user sliding response parameter with the identity information of the user.
A more specific implementation process for generating the current user sliding response parameter can refer to the descriptions of fig. 1 and fig. 2. Unlike the first embodiment, in the second embodiment, the current user sliding response parameter is stored and is associated with the identity information of the user. Thus, smooth implementation of the flow of this embodiment can be ensured.
Step 290: the sliding adjustment flow ends.
In the flow of this embodiment, by setting the step 230 and the step 240, it can be determined whether the sliding adjustment process needs to be performed according to the user identity. If the current user sliding response parameter associated with certain user identity information already exists, the adjustment process does not need to be repeatedly executed, and the processing flow is simplified. And when the current user sliding response parameter associated with the current user identity information does not exist, starting a sliding parameter adjusting process to obtain the current user sliding response parameter adapted to the current user, so that different users can have personalized sliding response parameters.
Referring to fig. 4, a block diagram of a first embodiment of a sliding adjustment apparatus for a touch screen according to the present invention is shown.
As shown in fig. 4, the sliding adjustment device for a touch screen of the present invention includes a sliding setting prompt module 31, a detection module 32, and a sliding adjustment module 33, which are connected in sequence. The sliding setting prompting module 31 is mainly used for providing a sliding setting display interface and prompting a user to perform a sliding operation of the touch screen. The detection module 32 is connected to the sliding setting prompt module 31, and is configured to detect a sliding distance of the user on the touch screen. The sliding adjustment module 33 is connected to the detection module 32, and is configured to generate a current user sliding response parameter according to the sliding distance detected by the detection module 32 and a preset initial sliding response parameter. The specific working process of each module in the sliding adjustment apparatus according to this embodiment can be described with reference to the flow of the first embodiment of the sliding adjustment method in fig. 1 and fig. 2.
The slide adjusting module 33 can be implemented by using the structure of fig. 5.
Specifically, as shown in fig. 5, the sliding adjustment module 33 includes a parameter value acquisition unit 331, a sliding distance comparison unit 332, and a current user sliding response parameter generation unit 333, which are connected in sequence.
The parameter value obtaining unit 331 is configured to obtain a parameter value corresponding to the trigger specification function from the initial sliding response parameter. The trigger specification function is a reference for implementing the sliding adjustment of the touch screen, and when the sliding adjustment is executed, the slide setting prompt module 31 displays the trigger function on the slide setting interface to prompt the user to execute the trigger function to be implemented by the sliding operation. As described above, if the parameter corresponding to the trigger specification function is plural, the parameter value acquired by the parameter value acquisition unit 331 is the sum of the values of the plural parameters.
The sliding distance comparing unit 332 is connected to the parameter value acquiring unit 331 and the detecting module 32, and is configured to compare the sliding distance detected by the detecting module 32 with the size of the parameter value acquired by the parameter value acquiring unit 331.
The current user sliding response parameter generating unit 333 is connected to the sliding distance comparing unit 332, and is configured to increase the initial sliding response parameter to generate the current user sliding response parameter when the sliding distance is greater than the parameter value, and decrease the initial sliding response parameter to generate the current user sliding response parameter when the sliding distance is less than the parameter value. Therefore, the self-adaptive adjustment of the sliding response parameters to the user is realized.
In adjusting the initial sliding response parameter, in addition to directly comparing the sliding distance with the initial sliding response parameter by using the sliding distance comparing unit 332, the ratio of the sliding distance to the initial sliding response parameter may also be calculated. At this time, the current user sliding response parameter generating unit 333 increases or decreases the initial sliding response parameter proportionally according to the ratio. The specific implementation process can refer to the description in the method embodiment.
Referring to fig. 6, a block diagram of a second embodiment of a sliding adjustment apparatus for a touch screen according to the present invention is shown.
As shown in fig. 6, the touch screen sliding adjustment apparatus of the second embodiment includes a user identity input module 41, an adjustment judgment module 42, a sliding setting prompt module 43, a detection module 44, and a sliding adjustment module 45, and the connection relationship between the modules and the functions of each module are described as follows:
the user identity input module 41 is configured to provide a user identity recognition interface, prompt a user to input identity information, and receive the input user identity information.
The adjustment determining module 42 is respectively connected to the user identity input module 41 and a sliding adjusting module 45 described below, and is configured to read the user identity information received by the user identity input module 41, and determine whether a current user sliding response parameter associated with the user identity information exists by querying the sliding adjusting module 45.
And the sliding setting prompting module 43 is connected with the adjustment judging module 42 and is controlled by the adjustment judging module 42. Specifically, the sliding setting prompting module 43 starts to work after the adjustment determining module 42 determines that the current user sliding response parameter associated with the user identity information does not exist, so as to provide a sliding setting interface and prompt the user to perform the touch screen sliding operation.
And the detection module 44 is connected with the sliding setting prompting module 43 and is used for detecting the sliding distance of the user on the touch screen.
The sliding adjustment module 45 is connected to the detection module 44 and the adjustment judgment module 42, and is configured to adjust a current user sliding response parameter of the user according to a preset initial sliding response parameter and a sliding distance detected by the detection module 44, and provide a data query access port for the adjustment judgment module 42.
The specific working process of each module in the sliding adjustment apparatus according to this embodiment may refer to the flow description about the sliding adjustment method embodiment in fig. 1, fig. 2, and fig. 3.
The touch screen sliding adjusting devices of the two embodiments can adaptively adjust and calibrate the sliding response parameters of the touch screen. The touch screen sliding adjusting device is arranged in the touch equipment with the touch screen, so that the adaptability of the sliding operation of the touch equipment can be improved, and the comfort experience of a user when the touch equipment is used for sliding is improved.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions.