Tablet-based rocker key control method and system and storage medium

By obtaining and processing the modulus information of the rocker buttons, determining the movement direction and stepping, the precise touch control of small-sized tablets is achieved, and the problems of occlusion and error touch are solved, and the user experience is improved.

CN119620874AActive Publication Date: 2025-03-14SHENZHEN JOYAR SMART MFG TECH LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510157660.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-03-14
Estimated Expiration
2045-02-13

AI Technical Summary

Technical Problem

Small-sized tablets are prone to blocking and accidentally touching due to their small display area and small touch area, which affects the user's experience.

Method used

By obtaining the first modulus information, determining the first level information and the first motion direction information, combining the first offset angle information to obtain the second level information, and finally determining the motion step of the rocker indicator point based on the coordinate information of the rocker key indicator point, realizing precise control of the touch function of the small-sized tablet computer.

Benefits of technology

It improves the operating accuracy of small-sized tablets, reduces occlusion and mistouching, and improves the user's touch experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119620874A_ABST
    Figure CN119620874A_ABST
Patent Text Reader

Abstract

The invention provides a tablet-based rocker key control method and system and a storage medium, and the method comprises the steps: determining first-level information according to first modulus information, and judging whether the first-level information is in a rocker control state or not; secondly, when the rocker control state is judged, second-level information is obtained according to the motion direction controlled by the rocker and the first deviation angle information; then, in combination with the coordinate information of the rocker key indication point, the movement stepping of the rocker key indication point is obtained, and coordinate movement of the rocker key indication point is achieved according to the movement stepping; and finally, in combination with a key function, accurate control on a touch control function of the small-size tablet computer is realized, and the touch control use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of joystick buttons, and more specifically, to a control method, system and storage medium of joystick buttons based on a tablet. Background Art

[0002] With the rapid development of electronic technology, more and more electronic products realize human-computer interaction functions by setting touch screens. However, there are some electronic products that can only use smaller touch screens due to the limitation of the shell structure, or the page display content is so large that the touch accuracy requirement is high. Since the finger contact surface is larger than the area of ​​the predetermined contact area, it will cause the display content to be blocked during the touch operation, and the touch is inaccurate, and the touch detection fails or the false touch phenomenon occurs. Especially on small-sized tablet computers, in order to meet the display requirements of the tablet, the font of the display area is usually small, and the area of ​​each selected touch area is also small, which is very easy to be blocked and falsely touched, greatly affecting the user experience. Therefore, there is an urgent need for a control technology based on a tablet rocker button that can improve the operation accuracy of small-sized tablet computers and enhance the user experience. Summary of the invention

[0003] In view of the above problems, the purpose of the present invention is to provide a control method, system and storage medium for a joystick button based on a tablet, which can reflect the position state of the joystick button according to the first analog information, so as to obtain the adjustment level information, and then determine the moving step of the joystick indication point according to the coordinates of the joystick button indication point displayed on the tablet; finally, the button function is combined to realize the precise control of the touch function of the small-sized tablet computer, thereby improving the user's touch experience.

[0004] A first aspect of the present invention provides a control method for a joystick button based on a tablet, the method comprising: Obtaining first modulus information; Determining first level information according to the first modulus information; Determining whether the first level information exceeds a preset level range; If yes, determining first movement direction information according to the first level information; Obtaining first offset angle information according to the first motion direction information; obtaining the second level information according to the first level information and the first offset angle information; Get the first coordinate information; determining first motion step information according to the first coordinate information, the second level information and the first motion direction information; The first coordinate information is adjusted according to the first motion step information.

[0005] This plan also includes: The movement directions of the joysticks detected by the at least two joystick detection modules are different; The first joystick detection module is used to detect the movement of the joystick in a first direction; The second joystick detection module is used to detect the movement of the joystick in a direction perpendicular to the first direction.

[0006] In this solution, the second level information is obtained according to the first level information and the first offset angle information, specifically: Obtaining first trigonometric function coefficient information and second trigonometric function coefficient information according to the first offset angle information; determining first sub-level information according to the first level information and the first trigonometric function coefficient information; determining second sub-level information according to the first level information and the second trigonometric function coefficient information; The second level information includes the first sub-level information and the second sub-level information.

[0007] In this solution, the first motion step information is determined according to the first coordinate information, the second level information and the first motion direction information, specifically: Determining first extreme value coordinate information according to the first direction information; Calculate the difference between the first coordinate information and the first extreme value coordinate information to obtain first coordinate difference information; determining first step ratio information according to the second level information; The first motion step information is obtained according to the first coordinate difference information and the first step ratio information.

[0008] This plan also includes: Determining whether the second-level information exceeds a preset first-level threshold; If yes, record the first time information; Determining whether the first time information exceeds a preset time threshold; If yes, then calculating the difference between the first time information and the time threshold to obtain a first time difference; The first motion step information is adjusted upward according to the first time difference.

[0009] This plan also includes: Get button status information; Determine whether the key status information is in a pressed state; If so, the first communication instruction information is sent according to the preset communication instruction.

[0010] A second aspect of the present invention provides a control system for a joystick button based on a tablet, which is applied to a joystick button based on a tablet, wherein the joystick button based on the tablet includes at least two joystick detection modules, and outputs an electrical signal of corresponding strength according to a joystick position state, which is used to convert into first analog-to-digital information. The system includes a control method program for the joystick button based on the tablet, and when the control method program for the joystick button based on the tablet is executed by the processor, the following steps are implemented: Obtaining first modulus information; Determining first level information according to the first modulus information; Determining whether the first level information exceeds a preset level range; If yes, determining first movement direction information according to the first level information; Obtaining first offset angle information according to the first motion direction information; obtaining the second level information according to the first level information and the first offset angle information; Get the first coordinate information; determining first motion step information according to the first coordinate information, the second level information and the first motion direction information; The first coordinate information is adjusted according to the first motion step information.

[0011] This plan also includes: The movement directions of the joysticks detected by the at least two joystick detection modules are different; The first joystick detection module is used to detect the movement of the joystick in a first direction; The second joystick detection module is used to detect the movement of the joystick in a direction perpendicular to the first direction.

[0012] In this solution, the second level information is obtained according to the first level information and the first offset angle information, specifically: Obtaining first trigonometric function coefficient information and second trigonometric function coefficient information according to the first offset angle information; determining first sub-level information according to the first level information and the first trigonometric function coefficient information; determining second sub-level information according to the first level information and the second trigonometric function coefficient information; The second level information includes the first sub-level information and the second sub-level information.

[0013] A third aspect of the present invention provides a computer-readable storage medium, which includes a control method program for a tablet-based joystick button. When the control method program for a tablet-based joystick button is executed by a processor, the steps of the tablet-based joystick button control method as described in any one of the above items are implemented.

[0014] The present invention provides a control method, system and storage medium of a joystick button based on a tablet. First, first-level information is determined according to first modulus information to determine whether it is in a joystick control state; secondly, when it is determined to be in the joystick control state, second-level information is obtained according to the movement direction of the joystick control and first offset angle information; then, the motion step of the joystick button indication point is obtained in combination with the coordinate information of the joystick button indication point, and the coordinate movement of the joystick button indication point is achieved according to the motion step; finally, the button function is combined to achieve precise control of the touch function of a small-sized tablet computer, thereby improving the user's touch experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as limiting the scope.

[0016] Figure 1 A flow chart showing a control method of a joystick button based on a tablet of the present invention is shown; Figure 2 A structural schematic diagram of a joystick button provided by an embodiment of the present invention is shown; Figure 3 A calculation flow chart of the second level information provided by an embodiment of the present invention is shown; Figure 4 A block diagram of a control system based on a joystick button of a tablet according to the present invention is shown. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meanings as commonly understood by those skilled in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless the embodiments of the present invention are explicitly defined in this way.

[0019] The words "first", "second" and similar words used in the embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one", "an" or "the" and similar words do not indicate a quantity limitation, but indicate the existence of at least one. Similarly, words such as "include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiment of the present invention are not necessarily carried out in order. On the contrary, various steps can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or a step or several steps can be removed from these processes.

[0020] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0021] Figure 1 A flow chart of a control method of a joystick button based on a tablet of the present invention is shown.

[0022] like Figure 1 As shown, the present invention discloses a control method of a joystick button based on a tablet, the method comprising: S102, obtaining first module information; S104, determining first level information according to the first modulus information; S106, determining whether the first level information exceeds a preset level range; S108, if yes, determining first movement direction information according to the first level information; S110, obtaining first offset angle information according to the first movement direction information; S112, obtaining the second level information according to the first level information and the first offset angle information; S114, obtaining first coordinate information; S116, determining first motion step information according to the first coordinate information, the second level information and the first motion direction information; S118: Adjust the first coordinate information according to the first motion step information.

[0023] It should be noted that the first analog-to-digital information is a digital signal indicating the position state of the joystick. The larger the absolute value of the digital signal, the farther the joystick is from the center initial position; the first level information is the segment level according to the first analog-to-digital information; the first movement direction information is the direction to which the joystick is turned; the first offset angle information is the angle between the direction detected by the joystick module and the direction of the pixel coordinate axis of the display screen; the first coordinate information is the coordinate point of the joystick button indication point located in the display screen; the second level information is the grading of the first level information in the direction of the pixel coordinate axis of the display screen; the first movement step information is the step of the movement of the joystick button indication point. Since the joystick button includes at least two joystick detection modules, the first analog-to-digital information can respectively represent the position state information of the two joystick detection modules. For clear understanding, the following text takes a joystick detection module as an example to explain the processing method of the first analog-to-digital information.

[0024] The position state of the joystick is detected by a high-precision analog-to-digital converter. For example, a 16-bit high-precision analog-to-digital converter can collect 65,536 types of joystick position states in the joystick detection direction. For the convenience of calculation, the above 65,536 types of position states are usually assigned to a position set according to a preset level, such as 100 levels. As an embodiment, the level distribution can be distributed in an even manner, that is, when the analog-to-digital signal is 1 to 655, it is the first level, and so on. As another embodiment, the level distribution is distributed in an unequal manner to improve the resolution of the joystick position when it is close to the center initial position, for example, 1-100 is the first level and 101-300 is the second level. When the first level information of the joystick exceeds the preset level range, it means that the joystick is in a manually driven state, and the direction in which the joystick is turned is determined based on the first analog-to-digital information. As an implementation method, if the detection direction of the joystick is left and right, when the modulus value is 1-32768, the joystick is on the left side of the center origin, and when the modulus value is 32769-65536, the joystick is on the right side of the center origin. The above method is used to identify the direction in which the joystick is turned. Due to the installation error of the joystick and the situation that the direction of the joystick detection is not parallel to the direction of the display screen coordinate axis, the present invention calculates the toggle position state of the joystick in the direction of the display screen coordinate axis by means of an offset angle. According to the first level information and the first offset angle information, the second level information is obtained. Finally, according to the coordinates of the joystick button indication point, the moving step of the joystick indication point in the direction of the display screen coordinate axis is determined to adjust the coordinate position of the joystick button indication point. Through the form of a joystick, the position to which the indication point is to be moved can be accurately controlled, and then the button function is pressed to achieve precise control of the touch function of a small-sized tablet computer and improve the user's touch experience.

[0025] Figure 2 A structural schematic diagram of a joystick button provided by an embodiment of the present invention is shown.

[0026] According to an embodiment of the present invention, Figure 2 As shown, it also includes: The movement directions of the joysticks detected by the at least two joystick detection modules are different; The first joystick detection module 201 is used to detect the movement of the joystick in the first direction L1; The second joystick detection module 202 is used to detect the movement of the joystick in a second direction L2 perpendicular to the first direction.

[0027] It should be noted that the first direction is perpendicular to the second direction, and by driving the two joystick detection modules simultaneously, movement in any direction on the current plane can be combined.

[0028] Figure 3A calculation flow chart of the second level information provided by an embodiment of the present invention is shown.

[0029] According to an embodiment of the present invention, Figure 3 As shown, the second level information is obtained according to the first level information and the first offset angle information, specifically: S302, obtaining first trigonometric function coefficient information and second trigonometric function coefficient information according to the first offset angle information; S304, determining first sub-level information according to the first level information and the first trigonometric function coefficient information; S306, determining second sub-level information according to the first level information and the second trigonometric function coefficient information; S308: The second level information includes the first sub-level information and the second sub-level information.

[0030] It should be noted that, as an implementation method, the display screen coordinate axes include an x-axis and a y-axis, and the first offset angle information α takes the angle between the joystick detection direction and the x-axis as an example; the first trigonometric function coefficient information is the cosine function cos(α), and the second trigonometric function coefficient information is the sine function sin(α). The first sub-level information indicates the sub-level of the first-level information in the x-axis direction, that is, the first-level information multiplied by the first trigonometric function information; the second sub-level information indicates the sub-level of the first-level information in the y-axis direction, that is, the first-level information multiplied by the second trigonometric function information. The first sub-level information and the second sub-level information are combined to obtain the second level information, which is used to indicate the joystick position level of the joystick in the x-axis and y-axis directions of the display screen coordinates.

[0031] According to an embodiment of the present invention, determining the first motion step information according to the first coordinate information, the second level information and the first motion direction information is specifically: Determining first extreme value coordinate information according to the first direction information; Calculate the difference between the first coordinate information and the first extreme value coordinate information to obtain first coordinate difference information; determining first step ratio information according to the second level information; The first motion step information is obtained according to the first coordinate difference information and the first step ratio information.

[0032] It should be noted that the present invention sets the moving step of the indicating point according to the number of coordinate points that the rocker button indicating point is allowed to move. For the sake of explanation, the first direction takes the left and right directions and the x-axis of the display screen coordinate system as an example. Assuming that there are 1000 coordinate points on the x-axis of the display screen, if the first direction information indicates movement to the left, that is, the sub-movement on the x-axis is high to low movement, the first extreme value coordinate information is 0; if the first direction information indicates movement to the right, that is, the sub-movement on the x-axis is low to high movement, the first extreme value coordinate information is 999; the difference between the first coordinate information and the first extreme value coordinate information is calculated to indicate the total number of coordinates that the rocker button indicating point can move in the x-axis direction. The first step ratio information is obtained according to the preset rules, for example, the first step ratio is 0.1%; finally, according to the total number of coordinates and the step ratio, the moving step of the coordinate information of the rocker button indicating point can be obtained.

[0033] According to an embodiment of the present invention, it also includes: Determining whether the second-level information exceeds a preset first-level threshold; If yes, record the first time information; Determining whether the first time information exceeds a preset time threshold; If yes, then calculating the difference between the first time information and the time threshold to obtain a first time difference; The first motion step information is adjusted upward according to the first time difference.

[0034] It should be noted that when the second level information continues to exceed the preset first level threshold time, and exceeds the preset time threshold, that is, when the first time information exceeds the preset time threshold, it indicates that the user has a need to quickly move the joystick button indication point. At this time, the difference between the first time information and the time threshold is calculated to obtain the first time difference; finally, according to the first time difference, the movement step of the joystick button indication point is adjusted upward; wherein, the larger the first time difference, the higher the amplitude of the upward adjustment of the movement step, so as to speed up the user to move the joystick button indication point, and improve the user's experience.

[0035] According to an embodiment of the present invention, it also includes: Get button status information; Determine whether the key status information is in a pressed state; If so, the first communication instruction information is sent according to the preset communication instruction.

[0036] It should be noted that the joystick button is provided with a button state detection function, which is used to indicate whether the button is in a pressed state by judging the level information conveyed by the button. When the button is in a pressed state, a first communication instruction information is sent according to a preset communication instruction to simulate clicking the coordinate point where the joystick button indication point on the display screen is located.

[0037] It is worth mentioning that it also includes: When it is determined that it is in angle calibration mode, Control the joystick to move in the third direction and to the farthest position, and obtain the first modulus information; Calculating a ratio of the first modulus information to a preset modulus extreme value to obtain first modulus ratio information; Obtaining second offset angle information according to a preset angle calculation formula based on the first modulus ratio information; Calculating a difference between the first offset angle information and the second offset angle information to obtain first offset angle difference information; Determining whether the first offset angle difference information exceeds a preset offset angle difference threshold; If so, adjust the first offset angle information according to the second offset angle information.

[0038] It should be noted that the present invention is provided with an angle calibration mode to compensate for the problem that the joystick detection direction is not parallel to the display screen coordinate axis direction. The third direction is the direction of the display screen coordinate axis x-axis or y-axis. The joystick is pushed to the farthest position along the third direction, and the first analog-to-digital information at this time is collected. At this time, the first analog-to-digital information and the extreme value of the analog-to-digital converter are in a cosine function relationship cos(β), where the second offset angle information is β. For example, taking a 16-bit analog-to-digital converter as an example, if the first analog-to-digital information is 32678, the second offset angle information satisfies cos(β)=32678 / 65536, and β is 60 degrees. Finally, the difference between the first offset angle information and the second offset angle information is calculated to obtain the first offset angle difference information. If the first offset angle difference information exceeds the preset offset angle difference threshold, the first offset angle information is adjusted by the second offset angle information, thereby realizing the calibration of the offset angle.

[0039] Figure 4 A block diagram of a control system based on a joystick button of a tablet according to the present invention is shown.

[0040] like Figure 4As shown, the present invention discloses a control system 4 of a joystick button based on a tablet, which is applied to a joystick button based on a tablet. The joystick button based on a tablet includes at least two joystick detection modules, which output electrical signals of corresponding strengths according to the position state of the joystick, and are used to convert into first analog-to-digital information. The system includes a memory 41 and a processor 42. The memory includes a control method program of a joystick button based on a tablet. When the control method program of the joystick button based on a tablet is executed by the processor, the following steps are implemented: Obtaining first modulus information; Determining first level information according to the first modulus information; Determining whether the first level information exceeds a preset level range; If yes, determining first movement direction information according to the first level information; Obtaining first offset angle information according to the first motion direction information; obtaining the second level information according to the first level information and the first offset angle information; Get the first coordinate information; determining first motion step information according to the first coordinate information, the second level information and the first motion direction information; The first coordinate information is adjusted according to the first motion step information.

[0041] It should be noted that the first analog-to-digital information is a digital signal indicating the position state of the joystick. The larger the absolute value of the digital signal, the farther the joystick is from the center initial position; the first level information is the segment level according to the first analog-to-digital information; the first movement direction information is the direction to which the joystick is turned; the first offset angle information is the angle between the direction detected by the joystick module and the direction of the pixel coordinate axis of the display screen; the first coordinate information is the coordinate point of the joystick button indication point located in the display screen; the second level information is the grading of the first level information in the direction of the pixel coordinate axis of the display screen; the first movement step information is the step of the movement of the joystick button indication point. Since the joystick button includes at least two joystick detection modules, the first analog-to-digital information can respectively represent the position state information of the two joystick detection modules. For clear understanding, the following text takes a joystick detection module as an example to explain the processing method of the first analog-to-digital information.

[0042] The position state of the joystick is detected by a high-precision analog-to-digital converter. For example, a 16-bit high-precision analog-to-digital converter can collect 65,536 types of joystick position states in the joystick detection direction. For the convenience of calculation, the above 65,536 types of position states are usually assigned to a position set according to a preset level, such as 100 levels. As an embodiment, the level distribution can be distributed in an even manner, that is, when the analog-to-digital signal is 1 to 655, it is the first level, and so on. As another embodiment, the level distribution is distributed in an unequal manner to improve the resolution of the joystick position when it is close to the center initial position, for example, 1-100 is the first level and 101-300 is the second level. When the first level information of the joystick exceeds the preset level range, it means that the joystick is in a manually driven state, and the direction in which the joystick is turned is determined based on the first analog-to-digital information. As an implementation method, if the detection direction of the joystick is left and right, when the modulus value is 1-32768, the joystick is on the left side of the center origin, and when the modulus value is 32769-65536, the joystick is on the right side of the center origin. The above method is used to identify the direction in which the joystick is turned. Due to the installation error of the joystick and the situation that the direction where the joystick is detected is not parallel to the direction of the display screen coordinate axis, the present invention calculates the toggle position state of the joystick in the direction of the display screen coordinate axis by means of an offset angle. According to the first level information and the first offset angle information, the second level information is obtained. Finally, according to the coordinates of the joystick button indication point, the moving step of the joystick indication point in the direction of the display screen coordinate axis is determined to adjust the coordinate position of the joystick button indication point. Through the form of a joystick, the position to which the indication point is to be moved can be accurately controlled, and then the button function can be pressed to achieve precise control of the touch function of a small-sized tablet computer and improve the user's touch experience. Wherein, if the first level information does not exceed the preset level range, there is no need to perform the next step.

[0043] According to an embodiment of the present invention, it also includes: The movement directions of the joysticks detected by the at least two joystick detection modules are different; The first joystick detection module is used to detect the movement of the joystick in a first direction; The second joystick detection module is used to detect the movement of the joystick in a second direction perpendicular to the first direction.

[0044] It should be noted that the first direction is perpendicular to the second direction, and by driving the two joystick detection modules simultaneously, movement in any direction on the current plane can be combined.

[0045] According to an embodiment of the present invention, obtaining the second level information according to the first level information and the first offset angle information is specifically: Obtaining first trigonometric function coefficient information and second trigonometric function coefficient information according to the first offset angle information; determining first sub-level information according to the first level information and the first trigonometric function coefficient information; determining second sub-level information according to the first level information and the second trigonometric function coefficient information; The second level information includes the first sub-level information and the second sub-level information.

[0046] It should be noted that, as an implementation method, the display screen coordinate axes include an x-axis and a y-axis, and the first offset angle information α takes the angle between the joystick detection direction and the x-axis as an example; the first trigonometric function coefficient information is the cosine function cos(α), and the second trigonometric function coefficient information is the sine function sin(α). The first sub-level information indicates the sub-level of the first-level information in the x-axis direction, that is, the first-level information multiplied by the first trigonometric function information; the second sub-level information indicates the sub-level of the first-level information in the y-axis direction, that is, the first-level information multiplied by the second trigonometric function information. The first sub-level information and the second sub-level information are combined to obtain the second level information, which is used to indicate the joystick position level of the joystick in the x-axis and y-axis directions of the display screen coordinates.

[0047] According to an embodiment of the present invention, determining the first motion step information according to the first coordinate information, the second level information and the first motion direction information is specifically: Determining first extreme value coordinate information according to the first direction information; Calculate the difference between the first coordinate information and the first extreme value coordinate information to obtain first coordinate difference information; determining first step ratio information according to the second level information; The first motion step information is obtained according to the first coordinate difference information and the first step ratio information.

[0048] It should be noted that the present invention sets the moving step of the indicating point according to the number of coordinate points that the rocker button indicating point is allowed to move. For the sake of explanation, the first direction takes the left and right directions and the x-axis of the display screen coordinate system as an example. Assuming that there are 1000 coordinate points on the x-axis of the display screen, if the first direction information indicates movement to the left, that is, the sub-movement on the x-axis is high to low movement, the first extreme value coordinate information is 0; if the first direction information indicates movement to the right, that is, the sub-movement on the x-axis is low to high movement, the first extreme value coordinate information is 999; the difference between the first coordinate information and the first extreme value coordinate information is calculated to indicate the total number of coordinates that the rocker button indicating point can move in the x-axis direction. The first step ratio information is obtained according to the preset rules, for example, the first step ratio is 0.1%; finally, according to the total number of coordinates and the step ratio, the moving step of the coordinate information of the rocker button indicating point can be obtained.

[0049] According to an embodiment of the present invention, it also includes: Determining whether the second-level information exceeds a preset first-level threshold; If yes, record the first time information; Determining whether the first time information exceeds a preset time threshold; If yes, then calculating the difference between the first time information and the time threshold to obtain a first time difference; The first motion step information is adjusted upward according to the first time difference.

[0050] It should be noted that when the second-level information continues to exceed the preset first-level threshold time, and exceeds the preset time threshold, that is, when the first time information exceeds the preset time threshold, it indicates that the user has a need to quickly move the joystick button indication point. At this time, the difference between the first time information and the time threshold is calculated to obtain the first time difference; finally, according to the first time difference, the movement step of the joystick button indication point is adjusted upward; wherein, the larger the first time difference, the higher the amplitude of the upward adjustment of the movement step, so as to speed up the user to move the joystick button indication point, and improve the user experience. wherein, if the second-level information does not exceed the preset first-level threshold, there is no need to proceed to the next step; if the first time information does not exceed the preset time threshold, there is no need to proceed to the next step.

[0051] According to an embodiment of the present invention, it also includes: Get button status information; Determine whether the key status information is in a pressed state; If so, the first communication instruction information is sent according to the preset communication instruction.

[0052] It should be noted that the joystick button is provided with a button state detection function, which is used to indicate whether the button is in a pressed state by judging the level information conveyed by the button. When the button is in a pressed state, a first communication instruction information is sent according to a preset communication instruction to simulate clicking the coordinate point where the joystick button indication point on the display screen is located.

[0053] It is worth mentioning that it also includes: When it is determined that it is in angle calibration mode, Control the joystick to move in the third direction and to the farthest position, and obtain the first modulus information; Calculating a ratio of the first modulus information to a preset modulus extreme value to obtain first modulus ratio information; Obtaining second offset angle information according to a preset angle calculation formula based on the first modulus ratio information; Calculating a difference between the first offset angle information and the second offset angle information to obtain first offset angle difference information; Determining whether the first offset angle difference information exceeds a preset offset angle difference threshold; If so, adjust the first offset angle information according to the second offset angle information.

[0054] It should be noted that the present invention is provided with an angle calibration mode to compensate for the problem that the joystick detection direction is not parallel to the display screen coordinate axis direction. The third direction is the direction of the display screen coordinate axis x-axis or y-axis. The joystick is pushed to the farthest position along the third direction, and the first analog-to-digital information at this time is collected. At this time, the first analog-to-digital information and the extreme value of the analog-to-digital converter are in a cosine function relationship cos(β), where the second offset angle information is β. For example, taking a 16-bit analog-to-digital converter as an example, if the first analog-to-digital information is 32678, the second offset angle information satisfies cos(β)=32678 / 65536, and β is 60 degrees. Finally, the difference between the first offset angle information and the second offset angle information is calculated to obtain the first offset angle difference information. If the first offset angle difference information exceeds the preset offset angle difference threshold, the first offset angle information is adjusted by the second offset angle information, thereby realizing the calibration of the offset angle.

[0055] A third aspect of the present invention provides a computer-readable storage medium, which includes a control method program for a tablet-based joystick button. When the control method program for a tablet-based joystick button is executed by a processor, the steps of the tablet-based joystick button control method as described in any one of the above items are implemented.

[0056] The present invention provides a control method, system and storage medium of a joystick button based on a tablet. First, first-level information is determined according to first modulus information to determine whether it is in a joystick control state; secondly, when it is determined to be in the joystick control state, second-level information is obtained according to the movement direction of the joystick control and first offset angle information; then, the motion step of the joystick button indication point is obtained in combination with the coordinate information of the joystick button indication point, and the coordinate movement of the joystick button indication point is achieved according to the motion step; finally, the button function is combined to achieve precise control of the touch function of a small-sized tablet computer, thereby improving the user's touch experience.

[0057] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0058] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A control method for a tablet-based rocker button, applied to a tablet-based rocker button, the tablet-based rocker button comprising at least two rocker detection modules, outputting an electrical signal of corresponding strength according to the rocker position state, for conversion into first analog-to-digital information, characterized in that: The method comprises: Obtaining first modulus information; Determining first level information according to the first modulus information; Determining whether the first level information exceeds a preset level range; If yes, determining first movement direction information according to the first level information; Obtaining first offset angle information according to the first motion direction information; Obtaining second level information according to the first level information and the first offset angle information; Get the first coordinate information; determining first motion step information according to the first coordinate information, the second level information and the first motion direction information; The first coordinate information is adjusted according to the first motion step information.

2. The control method of a joystick button based on a tablet according to claim 1, characterized in that: Also includes: The movement directions of the joysticks detected by the at least two joystick detection modules are different; The first joystick detection module is used to detect the movement of the joystick in a first direction; The second joystick detection module is used to detect the movement of the joystick in a direction perpendicular to the first direction.

3. The control method of a joystick button based on a tablet according to claim 1, characterized in that: The obtaining the second level information according to the first level information and the first offset angle information is specifically: Obtaining first trigonometric function coefficient information and second trigonometric function coefficient information according to the first offset angle information; determining first sub-level information according to the first level information and the first trigonometric function coefficient information; determining second sub-level information according to the first level information and the second trigonometric function coefficient information; The second level information includes the first sub-level information and the second sub-level information.

4. The control method of a joystick button based on a tablet according to claim 1, characterized in that: The determining of the first motion step information according to the first coordinate information, the second level information and the first motion direction information is specifically: Determine first extreme value coordinate information according to the first direction information; Calculate the difference between the first coordinate information and the first extreme value coordinate information to obtain first coordinate difference information; determining first step ratio information according to the second level information; The first motion step information is obtained according to the first coordinate difference information and the first step ratio information.

5. The control method of a joystick button based on a tablet according to claim 1, characterized in that: Also includes: Determining whether the second-level information exceeds a preset first-level threshold; If yes, record the first time information; Determining whether the first time information exceeds a preset time threshold; If yes, then calculating the difference between the first time information and the time threshold to obtain a first time difference; The first motion step information is adjusted upward according to the first time difference.

6. The control method of a joystick button based on a tablet according to claim 1, characterized in that: Also includes: Get button status information; Determine whether the key status information is in a pressed state; If so, the first communication instruction information is sent according to the preset communication instruction.

7. A control system for a tablet-based rocker button, applied to a tablet-based rocker button, the tablet-based rocker button comprising at least two rocker detection modules, outputting an electrical signal of corresponding strength according to the rocker position state, for conversion into first analog-to-digital information, characterized in that: The system includes a memory and a processor, wherein the memory includes a control method program based on a joystick button of a tablet, and when the control method program based on the joystick button of the tablet is executed by the processor, the following steps are implemented: Obtaining first modulus information; Determining first level information according to the first modulus information; Determining whether the first level information exceeds a preset level range; If yes, determining first movement direction information according to the first level information; Obtaining first offset angle information according to the first motion direction information; Obtaining second level information according to the first level information and the first offset angle information; Get the first coordinate information; determining first motion step information according to the first coordinate information, the second level information and the first motion direction information; The first coordinate information is adjusted according to the first motion step information.

8. The control system based on the joystick button of the tablet according to claim 7, characterized in that: Also includes: The movement directions of the joysticks detected by the at least two joystick detection modules are different; The first joystick detection module is used to detect the movement of the joystick in a first direction; The second joystick detection module is used to detect the movement of the joystick in a direction perpendicular to the first direction.

9. The control system based on the joystick button of the tablet according to claim 7, characterized in that: The obtaining the second level information according to the first level information and the first offset angle information is specifically: Obtaining first trigonometric function coefficient information and second trigonometric function coefficient information according to the first offset angle information; determining first sub-level information according to the first level information and the first trigonometric function coefficient information; determining second sub-level information according to the first level information and the second trigonometric function coefficient information; The second level information includes the first sub-level information and the second sub-level information.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a tablet-based joystick button control method program, and when the tablet-based joystick button control method program is executed by a processor, the steps of the tablet-based joystick button control method as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and device for simulating external access of mouse by using rocker

    CN102163093A

  • Method and device for simulating mouse operation by rocker and electronic equipment

    CN103186254A

  • A rocker numerical value processing method

    CN109814736A

  • Virtual object control method and device, terminal and storage medium

    CN110743161A

  • Display device and method for responding to gamepad

    CN117797467A