Trackball-based capacitive pen control method, system, terminal and storage medium
By adding a trackball module to the capacitive stylus, the problems of single function and cumbersome operation of traditional capacitive pens are solved, and efficient operation of the capacitive stylus in tablet drawing and writing is achieved, its application scenarios are expanded, remote control function is provided, and user experience and practicality are improved.
Patent Information
- Application Number
- CN202510749921.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-06-06
AI Technical Summary
Existing traditional capacitive pens have many limitations in terms of functions and operating experience, making it difficult to meet users' increasingly diverse usage needs. Especially in scenarios such as tablet drawing and handwritten notes, the functions are single and the operation is cumbersome, making it impossible to achieve the function of remote control of devices.
A trackball module is added to the traditional capacitive stylus to obtain user operation displacement information through the trackball, adjust the screen cursor position in real time, and switch the capacitive pen function mode to eraser mode when the trackball is detected to be pressed, and use the wireless connection status to realize remote control of the computer function.
It improves operational efficiency and user experience, enables flexible control of the capacitive pen in multiple scenarios, supports precise positioning and fast tool switching in tablet drawing, expands the application scope of the capacitive pen, and meets the diverse usage needs of users.
Smart Images

Figure CN120255710B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to the technical field of capacitive pens, and in particular to a capacitive pen control method and system based on a trackball, a terminal and a storage medium. BACKGROUND
[0002] With the wide application of intelligent devices, capacitive pens, as an important input tool, play a key role in tablet painting, handwritten notes, document editing and other fields. However, the existing traditional capacitive pens have many limitations in function and operation experience, and it is difficult to meet the increasingly diverse use needs of users.
[0003] The mainstream capacitive pens on the market have relatively single functions in tablet painting mode. During the painting process, users can only use the capacitive pen to draw basic strokes, and if they want to switch to tools such as eraser, brush thickness adjustment, etc., they often need to frequently search and operate in the menu options of the software interface. Taking professional painting software as an example, when a user draws a complex work, if he wants to erase a local error, he needs to pause the painting action, move his finger to the eraser tool icon on the software interface and click to select. This process not only interrupts the creation idea, but also reduces the painting efficiency. In addition, the brush line width adjustment function of the traditional capacitive pen is also relatively fixed, and cannot dynamically change according to the actual operation of the user during painting, making it difficult to simulate the effect of stroke thickness changing with force and speed in real painting, limiting the user's creative expression.
[0004] In terms of operation convenience, the traditional capacitive pen also has obvious deficiencies. In the scenario of handwritten notes, if the user needs to modify the written content, he needs to switch the capacitive pen from the writing state to the erasing state, which usually depends on the software level operation, and lacks an intuitive and quick hardware switching method. Especially when frequent writing and erasing operations are needed, the cumbersome switching steps greatly affect the user's recording efficiency and experience. Moreover, the existing capacitive pen has limited capabilities in multi-scene applications, and can only meet the needs of close-range direct operation, and cannot realize the function of remotely controlling devices. For example, in the scenarios of conference demonstrations, teaching and other scenarios, when the user wants to operate the screen content remotely, the traditional capacitive pen is difficult to play a role.
[0005] To solve the above problems, the application provides a capacitive pen control method based on a trackball, which innovatively designs and expands the functions and operation modes of the capacitive pen by adding a trackball module to the traditional capacitive pen. The introduction of the trackball module effectively makes up for the deficiencies of the traditional capacitive pen in functions and operations. In the tablet drawing mode, the user can directly scroll the trackball through the finger without interrupting the drawing action, so as to realize the accurate positioning of the screen cursor on the canvas and facilitate the selection and operation of details; when it is necessary to erase the content, the capacitive pen can be quickly switched to the eraser mode by pressing the trackball, thereby greatly improving the modification efficiency in the drawing process. Meanwhile, when the capacitive pen is idle, the trackball can be independently used as a remote control device based on the wireless connection state of the capacitive pen and the device, so as to realize the remote control of the computer mouse function. Whether in the process of slide presentation in the meeting or in the process of operating the teaching device in the teaching process, the user can flexibly control the screen content within a certain range, thereby providing the user with a more efficient, convenient and diversified use experience. SUMMARY
[0006] To solve the problems in the above background art, the application provides a capacitive pen control method based on a trackball, a system, a terminal and a storage medium.
[0007] And the technical scheme is as follows: the capacitive pen control method based on a trackball, comprising:
[0008] Step 1: obtaining displacement information generated by user operation based on a trackball arranged at one end of the capacitive pen;
[0009] Step 2: generating corresponding cursor movement instructions according to the displacement information to adjust the screen cursor position in real time;
[0010] Step 3: switching the capacitive pen function mode to the eraser mode when it is detected that the trackball is pressed;
[0011] Step 4: remotely controlling the computer function by using the trackball in the idle mode based on the wireless connection state of the capacitive pen and the device.
[0012] In one specific embodiment, the method for obtaining user operation displacement information by the trackball is improved in the following way:
[0013] Collecting the rotation angles of the trackball in the X-axis and Y-axis directions And ;
[0014] Calculating the displacement vector d , wherein , k is the rotation factor of the trackball;
[0015] Judging whether the rotation exceeds the preset range R: if If the initial angle is not calibrated, then recalibrate the initial angle;
[0016] If fast scroll mode is detected, then scale the displacement value by N times to accommodate the screen edge precise manipulation.
[0017] In one embodiment, generating the cursor movement instruction based on the displacement information further comprises:
[0018] Introducing an acceleration adjustment algorithm: where Δv is the cursor speed change per unit time, and t is the calculation period;
[0019] Setting the maximum allowed acceleration of the cursor If , then force the cursor to constant speed mode ;
[0020] Adding a bias to the final displacement of the cursor Δd ;
[0021] When the cursor is close to the screen boundary L, automatically adjust the cursor movement path to avoid jumping out of the range.
[0022] In one embodiment, the capacitive pen remote control computer function is added with the following implementation:
[0023] Detecting when the Bluetooth signal strength S exceeds the standard limit in idle state to trigger the standby command condition S≥65dBm;
[0024] Trackball supports gesture swipe recognition: left / right swipe triggers the previous / next multimedia instruction; vertical swipe exits full-screen application;
[0025] Add an anti-mis-touch mechanism: multiple inputs with short press interval ≤2 seconds are considered invalid gestures and ignored;
[0026] In non-drawing mode, prefer to use trackball scroll force to determine Z: when |Z| exceeds the pressure difference δ=7, play or pause the music file.
[0027] In one embodiment, the following additional constraints are proposed for tablet drawing mode:
[0028] Detecting the width of the pen line in handwriting drawing based on the speed of the trackball for dynamic adjustment where is the line width scaling factor, and |V| represents the length of the pen movement speed vector;
[0029] When the canvas area is close to saturation (exceeding the estimated available space ), automatically enable compressed image quality : , is the compression ratio;
[0030] Define the brush drawing delay extension period To prevent jitter from causing extra paths Both the number of frames and the overall time are involved in the calculation.
[0031] Add a shortcut tool call button: press the trackball twice to activate the custom menu interface to improve switching efficiency.
[0032] In one embodiment, the trackball rolling inclination meets Angle Then start the undo last drawing function; Angle is defined as the angle relative to the vertical plane using the atan2 function.
[0033] When the gesture is triggered, the sliding inertia needs to be verified If the sliding end speed meets The direction of this sliding gesture is recorded effectively.
[0034] At the same time, the trackball is combined with the capacitive pen pressure sensor to determine whether it participates in the main function decision-making; when The average value cancels the default mode selection right.
[0035] Adapt the trackball movement distance scaling coefficient to different device resolutions .
[0036] In one embodiment, a new trackball multifunction mode fusion method is proposed, which includes the following steps:
[0037] Match the specified gesture library template set through the trackball rolling direction And assign weights according to the error minimization principle The Euclidean distance;
[0038] Only when the capacitive pen is within a specific inclination range Gesture recognition mode is allowed to be activated: ;
[0039] When the number of consecutive gesture failures exceeds the number of times And the time interval Lock the gesture module and pop up a window to remind the need for reconfiguration;
[0040] Establish a historical operation log system Statistical analysis of user high-frequency interaction actions optimizes the subsequent parameter adjustment direction.
[0041] In one embodiment, a capacitive pen is provided, one end of the capacitive pen is provided with a trackball, and the trackball is used to obtain displacement information generated by user operation.
[0042] A displacement information processing module, connected with the trackball, is configured to generate a corresponding cursor moving instruction according to displacement information obtained by the trackball, so as to adjust the position of the screen cursor in real time.
[0043] A mode switching module, connected with the trackball, is configured to switch the function mode of the capacitive pen to the eraser mode when it is detected that the trackball is pressed.
[0044] A remote control module is configured to remotely control the computer function by using the trackball when the capacitive pen is in the idle mode based on the wireless connection state between the capacitive pen and the device.
[0045] In one specific embodiment, a terminal comprises a memory and a processor, the memory has computer instructions capable of running on the processor, and the processor executes the steps of the above method when running the computer instructions.
[0046] In one specific embodiment, a storage medium has computer instructions stored thereon, and the computer instructions execute the steps of the above method when running.
[0047] In summary, the present application includes at least one of the following beneficial technical effects:
[0048] The capacitive pen control method based on the trackball effectively solves the problems of single function and complicated operation of the existing capacitive pen in the scene of tablet drawing and the like by innovatively adding a trackball module to the traditional capacitive pen, and has the following remarkable beneficial effects:
[0049] Significantly improve the operation efficiency: during the drawing or writing process, the user does not need to frequently lift the capacitive pen to reposition, but can directly control the position of the screen cursor through the trackball, which simplifies the operation of lifting the traditional capacitive pen to position multiple times into continuous and smooth trackball rolling operation, greatly reduces the operation steps, and makes the drawing detail processing and text editing more efficient. In addition, pressing the trackball can instantly switch the function of the capacitive pen to the eraser mode, replacing the complicated process of selecting and switching tools through interface menus layer by layer, realizing the quick switching of drawing tools, and enabling the creator to focus more on the creation itself during the drawing process, greatly improving the work efficiency.
[0050] Optimize user experience: In the tablet drawing mode, the brush line width of the capacitive pen can be dynamically adjusted according to the speed of the trackball. Users can achieve flexible changes in line thickness through natural trackball operations, making the drawing lines more expressive and closer to the creator's intentions. At the same time, the automatic compression of the canvas area near saturation and the extension of the brush drawing delay period set to prevent jitter effectively guarantee the smoothness of the drawing process and the quality of the work, avoiding the impact of device performance on the creation experience. In addition, the design of activating the custom menu interface by pressing the trackball twice makes it easy for users to quickly access commonly used tools, further improving the convenience of operation and user experience.
[0051] Expand capacitive pen application scenarios: When the capacitive pen is idle and wirelessly connected to the device, the trackball can be used as an independent remote control component to perform various control functions on the computer, such as controlling the mouse cursor movement, executing multimedia playback instructions, adjusting the volume, etc. This function breaks the traditional limitation of capacitive pens only being used for touch screen input, allowing them to play a role in more scenarios such as office and entertainment, meeting the diverse needs of users, expanding the application range of capacitive pens, and improving the practicality and value utilization of the product.
[0052] Achieve precise operation and intelligent adaptation: By collecting the rotation angle of the trackball in the X and Y axis directions and combining specific algorithms to calculate the displacement vector, the user's operation intention can be accurately reflected, enabling precise control of the cursor position. At the same time, the trackball movement distance scaling factor is adapted to different device resolutions, and the motion path is automatically adjusted when the cursor is near the screen boundary, ensuring that the capacitive pen provides stable and precise operation experience on various devices. In addition, the introduction of acceleration adjustment algorithms, anti-mis touch mechanisms, gesture recognition optimization, and other functions further improves the accuracy and stability of operation, making the use of capacitive pens more intelligent and user-friendly. BRIEF DESCRIPTION OF DRAWINGS
[0053] Figure 1 Flowchart of capacitive pen control method for trackball;
[0054] Figure 2 Flowchart of capacitive pen control system for trackball. DETAILED DESCRIPTION
[0055] The embodiments of the present application will be described in detail below, and examples of the embodiments are shown in the accompanying drawings.
[0056] Throughout this specification, reference to the terms "certain embodiments," "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0057] The present application, with reference to the accompanying drawings, describes a capacitive stylus control method, system, terminal, and storage medium based on a trackball. The capacitive stylus is provided with a trackball at one end, which captures displacement information generated by user operations, thereby enabling real-time adjustment of the screen cursor position. The stylus also features multiple function mode switching and remote computer control. The following details the specific implementation of each component.
[0058] Displacement information acquisition and cursor movement control:
[0059] The trackball at one end of the capacitive stylus is a key component for obtaining displacement information of user operations. In practical applications, the trackball's rotation angles in the X and Y axes are collected. and To obtain displacement information. For example, when a user uses a capacitive stylus to operate on a writing tablet and gently rolls the trackball, the trackball will rotate in the X-axis and Y-axis directions. At this time, the system will collect the rotation angles in these two directions.
[0060] Next, calculate the displacement vector Δd=(Δx, Δy), where , k is the trackball torque factor. This torque factor k is calibrated based on the trackball's physical characteristics and actual usage scenarios. Different trackball models may have different k values.
[0061] In order to ensure the accuracy of the displacement information, it is necessary to determine whether the rotation exceeds the preset range R. , the initial angle is recalibrated. For example, when the user rolls the trackball quickly, the rotation angle may exceed the preset range. In this case, the system will automatically recalibrate the initial angle to ensure that the displacement information obtained subsequently is accurate.
[0062] In addition, if fast scrolling mode is detected, the system will amplify the displacement value by N times to accommodate precise control of the screen edge. For example, when the user needs to quickly move the cursor to the edge of the screen, quickly rolling the trackball triggers fast scrolling mode, and the system will amplify the displacement value to achieve precise movement of the cursor at the edge of the screen.
[0063] Cursor movement instruction generation:
[0064] According to the obtained displacement information, the corresponding cursor movement instruction is generated to adjust the screen cursor position in real time. In the process of generating the cursor movement instruction, an acceleration adjustment algorithm is introduced. Specifically, the acceleration is calculated, where Δv is the change of cursor speed per unit time, and t is the calculation period.
[0065] At the same time, the maximum allowed acceleration of the cursor is set as If the calculated acceleration , the cursor is forced to be set in constant speed mode . For example, when the user quickly rolls the trackball, the cursor speed may increase rapidly, and if the acceleration exceeds the maximum allowed acceleration , the system will set the cursor speed to a constant speed , avoiding the cursor moving too fast and causing the user to lose control.
[0066] In addition, a bias B is added to the final displacement of the cursor Δd, i.e. =Δd+B. This bias B can be adjusted according to the user's usage habits to optimize the experience of cursor movement.
[0067] When the cursor is close to the screen boundary L, the system will automatically adjust the cursor movement path to avoid jumping out of the range. For example, when the cursor approaches the upper boundary of the screen, the system will automatically adjust the speed or direction of the cursor moving upwards to prevent the cursor from exceeding the screen range.
[0068] Function mode switching: When the trackball is detected to be pressed, the system will switch the function mode of the capacitive pen to the eraser mode. For example, when the user needs to erase some content during drawing, the capacitive pen will immediately switch to the eraser mode by pressing the trackball, making it convenient for the user to perform the erasing operation.
[0069] Remote control computer function: Based on the wireless connection state of the capacitive pen and the device, when the capacitive pen is in idle mode, the trackball can be used to remotely control the computer function. The specific implementation is as follows:
[0070] Standby command triggering:
[0071] When the Bluetooth signal strength S exceeds the standard limit in idle state, the standby command condition S≥65dBm is triggered. For example, when the capacitive pen is connected to the computer through Bluetooth and is in idle state, if the Bluetooth signal strength S reaches or exceeds 65dBm, the system will trigger the standby command to make the computer enter standby state.
[0072] Gesture swipe recognition:
[0073] Trackball supports gesture swipe recognition function. Left / right swipe triggers previous / next multimedia instruction; vertical down swipe exits full-screen application. For example, when the user is watching a video, left / right swipe of the trackball can switch to the previous or next video, and vertical down swipe of the trackball can exit the full-screen playback mode.
[0074] Anti-mis-touch mechanism:
[0075] To avoid misoperation, an anti-mis-touch mechanism is added. Multiple inputs with short press interval ≤ 2 seconds are regarded as invalid gestures and ignored. For example, if the user accidentally presses the trackball multiple times in a short time, the system will regard these inputs as invalid gestures and will not perform the corresponding operation.
[0076] Music playback control:
[0077] In non-drawing mode, the trackball scroll force judgment Z is used preferentially. When the absolute value of Z exceeds the pressure difference value δ = 0.7, the music file is played or paused. For example, when the user is browsing a webpage, if the trackball is scrolled and the absolute value of the scroll force judgment Z exceeds 0.7, the system will automatically play or pause the music file.
[0078] Additional constraint conditions for tablet drawing mode:
[0079] Dynamic adjustment of brush line width: in tablet drawing mode, the brush line width in handwriting drawing is dynamically adjusted according to the trackball speed , where is the line width scaling factor, represents the brush movement rate vector length. For example, when the user quickly scrolls the trackball, the brush movement rate vector length is larger, and at this time the brush line width will be widened accordingly; when the user slowly scrolls the trackball, the brush line width will be narrowed, thereby achieving a more natural drawing effect.
[0080] Quality compression: automatically enable quality compression when the canvas area is close to saturation (exceeds the estimated available space ): , is the compression ratio. For example, when the user draws a large amount of content on the canvas, the canvas area is close to saturation, and the system will automatically enable the quality compression function, and calculate the compressed quality according to the above formula to save canvas space.
[0081] Brush drawing delay control: define the brush drawing delay extension period to prevent excessive paths caused by jitter . For example, when the user is quickly drawing lines, jitter may occur, and the system calculates the brush drawing delay extension period to prevent excessive paths caused by jitter. , which can effectively prevent redundant paths caused by jitter and make the drawn lines smoother.
[0082] Quick Tool Access: A new quick tool access button has been added. Double-clicking the trackball activates a custom menu interface for faster switching. For example, when users need to switch tools such as brush color and size, simply double-click the trackball to quickly call up the custom menu interface and select the desired tool.
[0083] Trackball gesture trigger logic optimization:
[0084] Undo drawing function trigger: trackball roll tilt meets The undo function is activated, where Angle uses the atan2 function to define the angle relative to the vertical plane. For example, when the user wants to undo the last step in the drawing process, rolling the trackball to a certain angle will automatically undo the last step when the above conditions are met.
[0085] Slide gesture validity verification: Slide inertia needs to be verified when the gesture is triggered If the sliding end speed satisfies For example, when a user performs a swipe gesture, the system verifies the final swipe speed. If the above conditions are met, the swipe gesture is considered valid and its direction is recorded.
[0086] Participation in the main function decision: Combined with the capacitive pen pressure sensor to determine whether the trackball participates in the main function decision. For example, when a user is using a capacitive stylus, the system will determine whether to cancel the default mode selection based on the pressure sensor value, thereby adjusting the function mode according to the user's actual operation.
[0087] Device resolution adaptation: Adapt the trackball movement distance scaling factor to different device resolutions , For example, when using a capacitive stylus on tablets with different resolutions, the system automatically adjusts the trackball movement distance scaling factor based on the device resolution to ensure consistent cursor movement across different devices.
[0088] New trackball multi-function mode fusion method:
[0089] Gesture matching and weight distribution: Matching the specified gesture library template set by the trackball scroll direction , and assign weights according to the error minimization principle The Euclidean distance is the distance between two points in Euclidean space. For example, when a user performs a certain gesture operation, the system matches the trackball rolling direction with the gesture library template set, and assigns a corresponding weight according to the matching error to determine the validity of the gesture.
[0090] Gesture recognition mode activation condition: when the stylus is in a specific tilt range The gesture recognition mode is activated only when the stylus is in a specific tilt range: For example, when the stylus is tilted within a specific range, the system activates the gesture recognition mode, avoiding misrecognition due to inappropriate stylus tilt.
[0091] Gesture module locking and reminder: when consecutive gestures fail more than a number of times and the time interval , the gesture module is locked and a pop-up window is displayed to remind the user of the need to reconfigure. For example, when the user performs a gesture operation multiple times in a row but fails, and the time interval is short, the system locks the gesture module and displays a pop-up window to remind the user to reconfigure the gesture settings.
[0092] Historical operation log system: establish a historical operation log system Statistical analysis of user high-frequency interaction actions optimizes subsequent parameter adjustment direction. For example, the system records the user's operation history, analyzes the user's high-frequency use of functions and gestures, and optimizes subsequent parameter settings based on the analysis results to improve the user's experience.
[0093] A stylus, one end of which is provided with a trackball for obtaining displacement information generated by user operation;
[0094] A displacement information processing module connected to the trackball for generating corresponding cursor movement instructions based on the displacement information obtained by the trackball to adjust the screen cursor position in real time;
[0095] A mode switching module connected to the trackball for switching the function mode of the stylus to the eraser mode when the trackball is detected to be pressed;
[0096] A remote control module for remotely controlling computer functions using the trackball when the stylus is in an idle mode based on the wireless connection state of the stylus and the device.
[0097] A terminal comprising a memory and a processor, the memory storing computer instructions executable on the processor, and the processor executing the computer instructions to perform the steps of the above method.
[0098] A storage medium having computer instructions stored thereon, the computer instructions being executable to perform the steps of the above method.
[0099] The capacitive pen control method based on trackball of the present application comprises:
[0100] Firstly, the displacement information generated by the user operation is obtained by setting a trackball at one end of the capacitive pen. Specifically, when the user rolls the trackball with a thumb or other fingers, the detection element inside the trackball can sense the direction and distance of the scroll wheel in real time, and convert it into accurate digital displacement information. This step realizes the goal of the user accurately positioning the screen content through the capacitive pen. Next, the cursor movement instruction is generated according to the displacement information, so that the screen cursor can move synchronously with the user's scrolling, solving the disadvantage that the traditional capacitive pen needs to be frequently lifted and repositioned to control the cursor. This function is particularly suitable for tablet painting or writing scenarios, making the user's touch path more natural and smooth.
[0101] On the basis of the above steps, in order to solve the function switching problem, when the system detects that the trackball is pressed, the function mode of the capacitive pen will be switched instantly - from the normal brush mode to the eraser mode, without the need for complex interface menu switching, greatly improving the work efficiency. For painting, drawing or note application scenarios, this design greatly enhances the flexibility of user experience.
[0102] In addition, during the idle mode of the capacitive pen (i.e. idle mode), if the wireless connection state between the devices is maintained, some specified functions of the computer can be realized through the trackball, such as page turning, scrolling the page or adjusting the multimedia playback, etc., which widens the application range of the capacitive pen and breaks through the limitation of its single function.
[0103] In summary, this control method not only effectively solves the functional limitations and cumbersome switching problems of the capacitive pen in the tablet painting scenario, but also innovatively introduces the trackball technology to realize diversified interaction modes, taking into account practicality and ease of use. At the same time, the design of expanding functions in the idle state further improves the value utilization rate of the capacitive pen.
[0104] In the method, program, system, device, etc. of the embodiments of the present application, it can be executed or implemented in a single or multiple networked computers, or can be practiced in a distributed computing environment. In the embodiments of the present application, in these distributed computing environments, tasks can be performed by remote processing devices connected through a communication network.
[0105] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, system or computer program product. Therefore, those skilled in the art can conceive that the implementation of the functional modules / units or controllers and related method steps illustrated in the above embodiments can be realized by software, hardware and a combination of software and hardware.
[0106] The acts or steps of the methods, programs, or procedures described according to embodiments of the present application need not necessarily be performed in the order described, and that the steps or acts of a method, or procedure can be performed in other orders or even at the same time, unless otherwise specified.
[0107] In this document, the terms "embodiment," "one embodiment," "an embodiment," "some embodiments," "exemplary embodiment," "specific exemplary embodiment," or "some embodiments" mean an example of the described implementations, not necessarily the only, and also not necessarily the dominant or preferred implementation. Thus, use of such terms is not intended to pose a limitation on the scope of the present disclosure. Furthermore, the term "comprising" as used in this document means "including at least the elements listed and proffering the possibility of including additional elements not listed."
[0108] Exemplary systems and methods of the present application have been described with reference to the above examples. The foregoing detailed description has set forth various embodiments of the systems and methods of the present application via the use of specific terminology. However, embodiments of the present application are not necessarily limited to those described, but can be practiced with the stated elements and operations in other ways. It is also contemplated that the systems and methods described can be implemented with or in software and hardware components that, for purposes of discussion, are identified herein as being provided by various entities. It is also within the scope of the present application that these entities offer networks and software to provide services under the brand of the entity providing the particular component. Therefore, it is intended and the context should be interpreted to allow that the described systems and methods can be practiced with the components provided by the various entities.
Claims
1. A capacitive pen control method based on a trackball, characterized in that: include: Step 1: Acquire displacement information generated by user operation based on the trackball set at one end of the capacitive stylus; Step 2: Generate corresponding cursor movement instructions according to the displacement information to adjust the screen cursor position in real time; Step 3: When the trackball is detected to be pressed, the capacitive pen function mode is switched to eraser mode; Step 4: Based on the wireless connection between the capacitive stylus and the device, use the trackball to remotely control computer functions in idle mode; The method for the trackball to obtain user operation displacement information: Collect the rotation angle of the trackball in the X-axis and Y-axis directions and ; Calculate the displacement vector d ,in , k is the trackball torque factor; Determine whether the rotation exceeds the preset range R: If , then recalibrate the initial angle; If a fast scrolling mode is detected, the displacement value is magnified N times to accommodate precise control of the screen edge; Generating a cursor movement instruction according to the displacement information further includes: Introducing acceleration adjustment algorithm: , where Δv is the change in cursor velocity per unit time, and t is the calculation period; Set the maximum allowed cursor acceleration ;like , then force the cursor to be in constant speed mode ; The calculated Δd is superimposed with the offset B to correct the final displacement, that is, ; When the cursor approaches the screen boundary L, the cursor movement path is automatically adjusted to avoid jumping out of the range; It also supports gesture matching, including: matching the specified gesture library template set by the trackball scroll direction ; When the capacitive stylus is within a specific tilt range When in, allow gesture recognition mode to be activated; If the number of consecutive gesture recognition failures exceeds the preset value and the time interval between failures is less than the preset time interval, the gesture module will be locked and a pop-up window will be displayed to remind you of the need for reconfiguration; Establish a historical operation log system Conduct statistical analysis on users' high-frequency interactive actions to optimize the direction of subsequent parameter adjustments.
2. The capacitive stylus control method based on a trackball according to claim 1, characterized in that: The following new implementation methods have been added to the capacitive stylus remote control computer function: When the Bluetooth signal strength S in the idle state exceeds the standard limit, the standby command condition S≥65dBm is triggered; The trackball supports gesture recognition: swipe left / right to trigger the previous / next multimedia command; swipe vertically to exit the full-screen application; Added an anti-mistouch mechanism: Multiple inputs with a short press interval of ≤2 seconds are considered invalid gestures and ignored.
3. A capacitive stylus control system based on a trackball, used to implement the capacitive stylus control method based on a trackball according to claim 1, characterized in that: include: A capacitive stylus, one end of which is provided with a trackball, the trackball being used to obtain displacement information generated by user operations; a displacement information processing module connected to the trackball, for generating corresponding cursor movement instructions according to the displacement information obtained by the trackball, so as to adjust the screen cursor position in real time; A mode switching module, connected to the trackball, for switching the functional mode of the capacitive stylus to the eraser mode when detecting that the trackball is pressed; The remote control module is used to remotely control computer functions using a trackball based on the wireless connection status between the capacitive pen and the device when the capacitive pen is in idle mode.
4. A terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method according to any one of claims 1 to 2 are implemented.
5. A storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Intelligent pen, control method and device of intelligent pen, equipment and storage medium
CN107656633A
Screen control method and device, capacitive stylus and storage medium
CN116382513A