CN113282222A - Cursor control method and device - Google Patents

Cursor control method and device Download PDF

Info

Publication number
CN113282222A
CN113282222A CN202110443308.3A CN202110443308A CN113282222A CN 113282222 A CN113282222 A CN 113282222A CN 202110443308 A CN202110443308 A CN 202110443308A CN 113282222 A CN113282222 A CN 113282222A
Authority
CN
China
Prior art keywords
value
coordinate axis
key
terminal
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110443308.3A
Other languages
Chinese (zh)
Other versions
CN113282222B (en
Inventor
乔岩
谢树聪
卢燕青
杨春晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Shilian Communication Technology Co ltd
Original Assignee
Hainan Shilian Communication Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hainan Shilian Communication Technology Co ltd filed Critical Hainan Shilian Communication Technology Co ltd
Priority to CN202110443308.3A priority Critical patent/CN113282222B/en
Publication of CN113282222A publication Critical patent/CN113282222A/en
Application granted granted Critical
Publication of CN113282222B publication Critical patent/CN113282222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • G06F3/04892Arrangements for controlling cursor position based on codes indicative of cursor displacements from one discrete location to another, e.g. using cursor control keys associated to different directions or using the tab key

Abstract

The embodiment of the invention provides a cursor control method and device, and relates to the technical field of remote control. The cursor control method comprises the following steps: under the condition that the first terminal is in a remote controller mode, respectively acquiring a numerical value of the acceleration sensor on a first coordinate axis and a numerical value of the acceleration sensor on a second coordinate axis; determining a target key value according to the numerical value of the acceleration sensor on the first coordinate axis and the numerical value of the acceleration sensor on the second coordinate axis; the target key value is a key value corresponding to an upward direction key, a key value corresponding to a downward direction key, a key value corresponding to a leftward direction key or a key value corresponding to a rightward direction key of the remote controller; and controlling the cursor of the second terminal to move according to the direction corresponding to the target key value. The technical scheme provided by the embodiment of the invention solves the problems that the entity key is easy to damage and inconvenient to operate when the entity key on the remote controller is used for controlling the cursor to move in the prior art to a certain extent.

Description

Cursor control method and device
Technical Field
The present invention relates to the field of remote control technologies, and in particular, to a cursor control method and a cursor control device.
Background
With the development of the video networking technology, video networking terminals are favored by more and more users, and more users begin to use the video networking terminals to perform services such as video conferences, video phones, live broadcasts and the like.
Generally, the terminal of the video network controls the cursor to move through the up-down and left-right direction keys on the remote controller, but the keys on the remote controller are entity keys, which are easy to damage after long-time use, influence the control of the cursor, and the problem of inconvenient operation of the touch entity keys.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a cursor control method and a corresponding cursor control device that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a cursor control method, which is applied to a first terminal provided with an acceleration sensor, where the first terminal is a mobile terminal, and the method includes:
under the condition that the first terminal is in a remote controller mode, respectively acquiring a numerical value of the acceleration sensor on a first coordinate axis and a numerical value of the acceleration sensor on a second coordinate axis; the first coordinate axis and the second coordinate axis are two coordinate axes in a coordinate system corresponding to the acceleration sensor;
determining a target key value according to the numerical value of the acceleration sensor on the first coordinate axis and the numerical value of the acceleration sensor on the second coordinate axis; the target key value is a key value corresponding to an upward direction key, a key value corresponding to a downward direction key, a key value corresponding to a leftward direction key or a key value corresponding to a rightward direction key of the remote controller;
and controlling the cursor of the second terminal to move according to the direction corresponding to the target key value.
In order to solve the above problem, an embodiment of the present invention discloses a cursor control device, which is applied to a first terminal provided with an acceleration sensor, where the first terminal is a mobile terminal, and the cursor control device includes:
the acquisition module is used for respectively acquiring the numerical value of the acceleration sensor on a first coordinate axis and the numerical value of the acceleration sensor on a second coordinate axis under the condition that the first terminal is in a remote controller mode; the first coordinate axis and the second coordinate axis are two coordinate axes in a coordinate system corresponding to the acceleration sensor;
the determining module is used for determining a target key value according to the numerical value of the acceleration sensor on the first coordinate axis and the numerical value of the acceleration sensor on the second coordinate axis; the target key value is a key value corresponding to an upward direction key, a key value corresponding to a downward direction key, a key value corresponding to a leftward direction key or a key value corresponding to a rightward direction key of the remote controller;
and the control module is used for controlling the cursor of the second terminal to move according to the direction corresponding to the target key value.
In order to solve the above problem, an embodiment of the present invention discloses a cursor control device, including:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a cursor control method as described above.
In order to solve the above problem, an embodiment of the present invention discloses a computer-readable storage medium storing a computer program that causes a processor to execute the cursor control method as described above.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the cursor movement of the second terminal is controlled based on the acceleration sensor in the first terminal, namely, the user can control the cursor movement of the second terminal by controlling the posture of the second terminal, so that the operation of controlling the cursor movement by touching the entity keys on the remote controller is omitted, the operation is more convenient and faster, and the problem that the cursor control is influenced because the entity keys are easy to damage is also avoided.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a cursor control method of the present invention;
FIG. 2 is one of the schematic diagrams of an exemplary coordinate system of the present invention;
FIG. 3 is a second schematic diagram of an exemplary coordinate system of the present invention;
fig. 4 is a block diagram of a cursor control device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In order to overcome the problems that the entity keys are easy to damage and inconvenient to operate when the entity keys on the remote controller control the cursor to move, the embodiment of the invention designs the following technical scheme: the cursor of the second terminal is controlled to move based on the acceleration sensor in the first terminal, namely, the user can control the cursor of the second terminal to move by controlling the posture of the second terminal, so that the operation of controlling the cursor to move by using an entity key on a touch remote controller is omitted, the operation is more convenient, and the problem that the cursor control is influenced due to the fact that the entity key is easy to damage is also avoided.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a cursor control method according to the present invention is shown, where the method can be applied to a first terminal provided with an acceleration sensor, where the first terminal is a mobile terminal, such as a mobile phone.
The method specifically comprises the following steps:
step 101: and under the condition that the first terminal is in a remote controller mode, respectively acquiring the numerical value of the acceleration sensor on a first coordinate axis and the numerical value of the acceleration sensor on a second coordinate axis.
In the embodiment of the invention, the working mode of the first terminal at least comprises a remote controller mode. The first terminal can control the cursor movement of the second terminal based on the value of the acceleration sensor on the first coordinate axis and the value on the second coordinate axis when the first terminal is in the remote controller mode.
The first coordinate axis and the second coordinate axis are two coordinate axes in a coordinate system corresponding to the acceleration sensor. Generally, the acceleration sensor includes three sensitive axes, and the three sensitive axes are perpendicular to each other, so the coordinate system corresponding to the acceleration sensor may be a three-dimensional coordinate system, and each sensitive axis corresponds to one coordinate axis. The screen of the first terminal is used as a reference object, and for the acceleration sensor arranged in the first terminal, normally, one sensitive axis is perpendicular to the screen of the first terminal, a coordinate axis corresponding to the sensitive axis is generally denoted as a z-axis, and the other two sensitive axes are parallel to the screen of the first terminal and are generally denoted as an x-axis and a y-axis, respectively.
Since the movement space of the cursor is a two-dimensional space, the movement of the cursor may be controlled by taking the numerical values of two coordinate axes in the coordinate system corresponding to the acceleration sensor. The first coordinate axis may be an x axis, the second coordinate axis may be a y axis, and a coordinate system constructed between the x and y axes may be as shown in fig. 2. On the basis of the coordinate system shown in fig. 2, when the first terminal is tilted to the left, the value on the x-axis is a positive value; when the first terminal inclines to the right, the value on the x axis is a negative value; when the first terminal inclines upwards, the y axis is a positive value; the y-axis is negative when the first terminal is tilted downward. It should be noted that the foregoing is based on the user holding the first terminal in a forward direction, i.e. the screen of the first terminal faces upward and the top and bottom of the first terminal are disposed in a forward direction relative to the user.
Step 102: and determining a target key value according to the numerical value of the acceleration sensor on the first coordinate axis and the numerical value of the acceleration sensor on the second coordinate axis.
In the embodiment of the invention, after the numerical value of the acceleration sensor on the first coordinate axis and the numerical value of the acceleration sensor on the second coordinate axis are obtained, the target key value can be determined according to the obtained numerical values of the coordinate axes. The target key value is a key value corresponding to an upward direction key, a key value corresponding to a downward direction key, a key value corresponding to a leftward direction key, or a key value corresponding to a rightward direction key of the remote controller. For example, the key values corresponding to the up, down, left and right direction keys of the remote controller are 19, 20, 21 and 22, respectively, and the target key value is one of the four key values.
In the embodiment of the present invention, the correspondence between the positive and negative values on the coordinate axis and the direction keys may be established in advance. For example, a positive number on the first coordinate axis may correspond to the left direction key, a negative number may correspond to the right direction key, a positive number on the second coordinate axis may correspond to the up direction key, and a negative number may correspond to the down direction key. Of course, other setting modes can be provided, and the specific situation can be set according to actual requirements.
Step 103: and controlling the cursor of the second terminal to move according to the direction corresponding to the target key value.
After the target key value is determined, the first terminal can control the cursor of the second terminal to move according to the direction corresponding to the target key value. For example, if the direction corresponding to the target key value is rightward, the cursor is controlled to move rightward; for another example, if the direction corresponding to the target key value is downward, the cursor is controlled to move downward.
The first terminal and the second terminal may establish a communication connection (e.g., a bluetooth connection), and send and receive a cursor control signal (e.g., a target key value) through the communication connection. Or an infrared transmitter is arranged on the first terminal, an infrared receiver is arranged on the second terminal, the first terminal sends the cursor control signal to the second terminal through the infrared transmitter, and the second terminal receives the cursor control signal through the infrared receiver. It is understood that other communication methods can be used to transmit the cursor control signal between the first terminal and the second terminal. The first terminal can send the target key value to the second terminal, so that the second terminal controls the cursor to move according to the target key value. The second terminal can be a video network terminal, a television or other terminal equipment which needs a remote controller to control the movement of a cursor.
In the embodiment of the invention, the cursor movement of the second terminal is controlled based on the acceleration sensor in the first terminal, namely, the user can control the cursor movement of the second terminal by controlling the posture of the second terminal, so that the operation of controlling the cursor movement by touching the entity keys on the remote controller is omitted, the operation is more convenient and faster, and the problem that the cursor control is influenced because the entity keys are easy to damage is also avoided. In addition, under the condition that the first terminal is a mobile phone, the mobile phone is almost indispensable equipment in daily life of people, the mobile phone body is light and portable, and the mobile phone is used for controlling the cursor to move, so that the utilization rate of the mobile phone can be improved besides the dependence on a remote controller.
As an alternative embodiment, in the embodiment of the present invention, the acceleration sensor may be a gravity acceleration sensor.
In the case where the acceleration sensor is a gravitational acceleration sensor, the first coordinate axis is an x axis, and the second coordinate axis is a y axis, a coordinate system constructed between the x and y axes may be as shown in fig. 3, and an absolute value of a maximum value of the x and y axes may be set to 9.81 (i.e., a value corresponding to gravitational acceleration).
As an alternative embodiment, step 102: determining a target key value according to the value of the acceleration sensor on the first coordinate axis and the value of the acceleration sensor on the second coordinate axis, which may include:
determining a coordinate axis of which the absolute value of the numerical value is greater than or equal to a first preset numerical value in the first coordinate axis and the second coordinate axis as a target coordinate axis; determining key values of corresponding direction keys according to the positive and negative values of the target coordinate axis; and determining the key value of the direction key corresponding to the positive and negative values of the numerical value of the target coordinate axis as the target key value.
For example, in the case of using the coordinate system shown in fig. 2 as an example, when the user controls the first terminal to move upwards, the value on the x axis will change to some extent in addition to the increase of the value on the y axis, so in the embodiment of the present invention, after the first terminal obtains the value on the first coordinate axis and the value on the second coordinate axis of the acceleration sensor, the first terminal may compare the magnitude relationship between the magnitude of the absolute value of the values on the two coordinate axes and the first preset value, and control the movement of the cursor with the magnitude of the absolute value of the value and the coordinate axis of the first preset value as a reference, so as to determine the operation intention of the user and improve the accuracy of cursor control.
Wherein, the first numerical value of predetermineeing is greater than 0, can set up specific numerical value according to actual demand. For example, when the acceleration sensor is a gravitational acceleration sensor and a coordinate system formed by the first coordinate axis and the second coordinate axis is as shown in fig. 3, the first preset value may be set to 5.
In the embodiment of the invention, a coordinate axis with the numerical value greater than or equal to a first preset numerical value can be determined as a target coordinate axis, the movement of the cursor is controlled according to the numerical value of the target coordinate axis, specifically, the key value of the corresponding direction key is determined according to the positive and negative of the numerical value of the target coordinate axis, and the key value of the direction key corresponding to the positive and negative of the numerical value of the target coordinate axis is determined as the target key value. For example, the target coordinate axis is an x axis shown in fig. 2, and the value of the acceleration sensor on the x axis is-6, then according to the preset corresponding relationship between the positive and negative values on the coordinate axis and the direction key, it may be determined that the negative value on the x axis corresponds to the right direction key of the remote controller, and according to that the key value corresponding to the right direction key is 22, it may be determined that the key value of the direction key corresponding to the positive and negative values of the target coordinate axis is 22, that is, the target key value is 22.
It should be noted that, when the absolute values of the numerical values of the first coordinate axis and the second coordinate axis are both greater than or equal to a first preset numerical value, and the numerical values of the first coordinate axis and the second coordinate axis are different, the coordinate axis whose numerical value reaches the first preset numerical value first may be determined as the target coordinate axis. When the absolute value of the numerical value of the first coordinate axis and the absolute value of the numerical value of the second coordinate axis are both greater than or equal to a first preset numerical value, and the numerical value of the first coordinate axis is the same as the numerical value of the second coordinate axis, the preset coordinate axis may be determined as the target coordinate axis. The preset coordinate axis is a first coordinate axis or a second coordinate axis, and the preset coordinate axis may be default of the system or set by a user.
As an alternative embodiment, step 103: controlling the cursor of the second terminal to move according to the direction corresponding to the target key value may include:
and under the condition that the absolute value of the numerical value of the target coordinate axis is changed from being greater than or equal to the first preset numerical value to being less than or equal to the second preset numerical value within the first preset duration, controlling the cursor of the second terminal to move once according to the direction corresponding to the target key value.
Since the acceleration sensor is very sensitive, a slight motion may cause a change of the values on the first coordinate axis and the second coordinate axis, that is, the change of the values is very rapid, and may be changed 10 times within 1 second, so in the embodiment of the present invention, the sensitivity is alleviated by setting the second preset value, and it is also determined whether the first terminal is restored to the initial position according to the second preset value. In this case, the moving distance of the cursor is generally one step, and the one step described herein is a distance from the current position to the closest position to which the cursor can move.
The second preset value is greater than 0 and smaller than the first preset value, and specific values can be set according to actual requirements. For example, when the acceleration sensor is a gravitational acceleration sensor and a coordinate system formed by the first coordinate axis and the second coordinate axis is as shown in fig. 3, the first preset value may be set to 2.
The first preset time length is a time length larger than 0, and the specific numerical value can be set according to actual requirements.
For a better understanding of the above-described solution, a further explanation is given below with an example. This example is illustrated with the coordinate system shown in fig. 3.
First, in the embodiment of the present invention, a variable KeyCode may be created in advance.
Secondly, the first terminal can monitor the numerical value changes of the x axis and the y axis of the gravity acceleration sensor in real time or at regular time under the condition that the first terminal is in the remote controller mode. Assuming that the first terminal determines that the user performs an operation of tilting the first terminal upward when detecting that the absolute value of the value on the y-axis exceeds 5 and the value on the y-axis is 6, the KeyCode may be assigned as the key value of the corresponding directional key. For example, a positive value on the y-axis corresponds to the up direction key, and a key value of 19 for the up direction key assigns a KeyCode of 19. And then, the first terminal continuously monitors the numerical value changes of the x axis and the y axis of the gravity acceleration sensor, when the absolute value of the numerical value on the y axis is less than 2, the first terminal is considered to be operated by the user to enable the posture of the first terminal to be recovered to the initial state, and the first terminal can send the numerical value of the Keycode to the second terminal, so that the second terminal can simulate the key operation of an upward direction key of the remote controller to control the cursor to move upwards by one step length, and then the Keycode is emptied to wait for the next operation of the user. Optionally, the second terminal may simulate a key operation of an up direction key of the remote controller through an Android (i.e., Android) program.
As an alternative embodiment, step 103: controlling the cursor of the second terminal to move according to the direction corresponding to the target key value may include:
after the absolute value of the numerical value of the target coordinate axis reaches the maximum value and lasts for a second preset time, detecting whether the absolute value of the numerical value of the target coordinate axis is kept at the maximum value every a third preset time; and under the condition that the absolute value of the numerical value of the target coordinate axis is kept at the maximum value, controlling the cursor of the second terminal to move once according to the direction corresponding to the target key value.
Sometimes, in order to make the cursor reach the preset position quickly, the user may press the direction key on the remote controller for a long time to make the cursor move continuously until the preset position is reached. In view of the above, an embodiment of the present invention provides a method for implementing the above process based on the posture of the first terminal, that is: and after the first terminal detects that the absolute value of the numerical value of the target coordinate axis reaches the maximum value and lasts for a second preset time, detecting whether the absolute value of the numerical value of the target coordinate axis is maintained at the maximum value every third preset time (such as 500 milliseconds).
And if the absolute value of the numerical value of the target coordinate axis is maintained at the maximum value, controlling the cursor to move once according to the direction corresponding to the target key value, and so on until the absolute value of the numerical value of the target coordinate axis is detected to be not maintained at the maximum value or the cursor cannot move continuously according to the direction corresponding to the target key value.
If the absolute value of the numerical value of the target coordinate axis is not maintained at the maximum value, the cursor is controlled to move according to the method, namely: and under the condition that the absolute value of the numerical value of the target coordinate axis is changed from being greater than or equal to a first preset numerical value to being less than or equal to a second preset numerical value within a first preset time length, controlling the cursor of the second terminal to move according to the direction corresponding to the target key value.
The first preset time length is longer than the second preset time length. The second preset time length and the third preset time length are both time lengths larger than 0, and the specific numerical value can be set according to actual requirements. Generally, the second preset duration is greater than the third preset duration.
Wherein the first predetermined value is less than the maximum value.
In summary, in the embodiments of the present invention, the cursor movement of the second terminal is controlled based on the acceleration sensor in the first terminal, that is, the user can control the cursor movement of the second terminal by controlling the posture of the second terminal, so that the operation of controlling the cursor movement by touching the physical keys on the remote controller is omitted, the operation is more convenient, and the problem that the cursor control is affected due to the fact that the physical keys are easily damaged is also avoided.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of a cursor control device according to an embodiment of the present invention is shown, which can be applied to a first terminal provided with an acceleration sensor, where the first terminal is a mobile terminal.
The device specifically comprises the following modules:
an obtaining module 401, configured to obtain a value of the acceleration sensor on a first coordinate axis and a value of the acceleration sensor on a second coordinate axis respectively when the first terminal is in a remote controller mode.
The first coordinate axis and the second coordinate axis are two coordinate axes in a coordinate system corresponding to the acceleration sensor.
A determining module 402, configured to determine a target key value according to the value of the acceleration sensor on the first coordinate axis and the value of the acceleration sensor on the second coordinate axis.
The target key value is a key value corresponding to an upward direction key, a key value corresponding to a downward direction key, a key value corresponding to a leftward direction key or a key value corresponding to a rightward direction key of the remote controller.
And the control module 403 is configured to control a cursor of the second terminal to move according to the direction corresponding to the target key value.
As an alternative embodiment, the determining module 402 includes:
and the first determining unit is used for determining a coordinate axis of which the absolute value of the numerical value is greater than or equal to a first preset numerical value in the first coordinate axis and the second coordinate axis as a target coordinate axis.
And the second determining unit is used for determining the key value of the corresponding direction key according to the positive and negative values of the numerical value of the target coordinate axis.
And a third determining unit configured to determine, as the target key value, a key value of a direction key corresponding to the positive or negative of the numerical value of the target coordinate axis.
As an alternative embodiment, the control module 403 includes:
and the first control unit is used for controlling the cursor of the second terminal to move once according to the direction corresponding to the target key value under the condition that the absolute value of the numerical value of the target coordinate axis is changed from being greater than or equal to the first preset numerical value to being less than or equal to the second preset numerical value within a first preset time length.
Wherein the second preset value is smaller than the first preset value.
As an alternative embodiment, the control module 403 includes:
and the detection unit is used for detecting whether the absolute value of the numerical value of the target coordinate axis is kept at the maximum value every third preset time period after the absolute value of the numerical value of the target coordinate axis reaches the maximum value and lasts for the second preset time period.
Wherein the first predetermined value is less than the maximum value.
And the second control unit is used for controlling the cursor of the second terminal to move once according to the direction corresponding to the target key value under the condition of keeping the maximum value.
In the embodiment of the invention, the cursor movement of the second terminal is controlled based on the acceleration sensor in the first terminal, namely, the user can control the cursor movement of the second terminal by controlling the posture of the second terminal, so that the operation of controlling the cursor movement by touching the entity keys on the remote controller is omitted, the operation is more convenient and faster, and the problem that the cursor control is influenced because the entity keys are easy to damage is also avoided.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to another aspect of the embodiments of the present invention, there is provided a cursor control device including:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform a cursor control method as described above.
According to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program causing a processor to execute the cursor control method as described above.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

Claims (10)

1. A cursor control method is applied to a first terminal provided with an acceleration sensor, the first terminal is a mobile terminal, and the cursor control method is characterized by comprising the following steps:
under the condition that the first terminal is in a remote controller mode, respectively acquiring a numerical value of the acceleration sensor on a first coordinate axis and a numerical value of the acceleration sensor on a second coordinate axis; the first coordinate axis and the second coordinate axis are two coordinate axes in a coordinate system corresponding to the acceleration sensor;
determining a target key value according to the numerical value of the acceleration sensor on the first coordinate axis and the numerical value of the acceleration sensor on the second coordinate axis; the target key value is a key value corresponding to an upward direction key, a key value corresponding to a downward direction key, a key value corresponding to a leftward direction key or a key value corresponding to a rightward direction key of the remote controller;
and controlling the cursor of the second terminal to move according to the direction corresponding to the target key value.
2. The cursor control method of claim 1, wherein the determining a target key value according to the value of the acceleration sensor on the first coordinate axis and the value on the second coordinate axis comprises:
determining a coordinate axis of which the absolute value of the numerical value is greater than or equal to a first preset numerical value in the first coordinate axis and the second coordinate axis as a target coordinate axis;
determining key values of corresponding direction keys according to the positive and negative values of the target coordinate axis;
and determining the key value of the direction key corresponding to the positive and negative values of the numerical value of the target coordinate axis as the target key value.
3. The cursor control method according to claim 2, wherein the controlling of the cursor of the second terminal to move according to the direction corresponding to the target key value comprises:
under the condition that the absolute value of the numerical value of the target coordinate axis is changed from being greater than or equal to the first preset numerical value to being less than or equal to the second preset numerical value within a first preset time length, controlling a cursor of the second terminal to move once according to the direction corresponding to the target key value;
wherein the second preset value is smaller than the first preset value.
4. The cursor control method according to claim 2, wherein the controlling of the cursor of the second terminal to move according to the direction corresponding to the target key value comprises:
after the absolute value of the numerical value of the target coordinate axis reaches the maximum value and lasts for a second preset time, detecting whether the absolute value of the numerical value of the target coordinate axis is kept at the maximum value or not every third preset time; wherein the first predetermined value is less than the maximum value;
and under the condition of keeping the maximum value, controlling the cursor of the second terminal to move once according to the direction corresponding to the target key value.
5. The utility model provides a cursor control device which characterized in that, is applied to the first terminal that is provided with acceleration sensor, first terminal is mobile terminal, its characterized in that, cursor control device includes:
the acquisition module is used for respectively acquiring the numerical value of the acceleration sensor on a first coordinate axis and the numerical value of the acceleration sensor on a second coordinate axis under the condition that the first terminal is in a remote controller mode; the first coordinate axis and the second coordinate axis are two coordinate axes in a coordinate system corresponding to the acceleration sensor;
the determining module is used for determining a target key value according to the numerical value of the acceleration sensor on the first coordinate axis and the numerical value of the acceleration sensor on the second coordinate axis; the target key value is a key value corresponding to an upward direction key, a key value corresponding to a downward direction key, a key value corresponding to a leftward direction key or a key value corresponding to a rightward direction key of the remote controller;
and the control module is used for controlling the cursor of the second terminal to move according to the direction corresponding to the target key value.
6. The cursor control device of claim 5, wherein the determining module comprises:
the first determining unit is used for determining a coordinate axis, of the first coordinate axis and the second coordinate axis, of which the absolute value of the numerical value is greater than or equal to a first preset numerical value as a target coordinate axis;
the second determining unit is used for determining the key value of the corresponding direction key according to the positive and negative values of the numerical value of the target coordinate axis;
and a third determining unit configured to determine, as the target key value, a key value of a direction key corresponding to the positive or negative of the numerical value of the target coordinate axis.
7. The cursor control device of claim 6, wherein the control module comprises:
the first control unit is used for controlling the cursor of the second terminal to move once according to the direction corresponding to the target key value under the condition that the absolute value of the numerical value of the target coordinate axis is changed from being greater than or equal to the first preset numerical value to being less than or equal to the second preset numerical value within a first preset duration;
wherein the second preset value is smaller than the first preset value.
8. The cursor control device of claim 6, wherein the control module comprises:
the detection unit is used for detecting whether the absolute value of the numerical value of the target coordinate axis is kept at the maximum value every third preset time period after the absolute value of the numerical value of the target coordinate axis reaches the maximum value and lasts for a second preset time period; wherein the first predetermined value is less than the maximum value;
and the second control unit is used for controlling the cursor of the second terminal to move once according to the direction corresponding to the target key value under the condition of keeping the maximum value.
9. A cursor control device, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a cursor control method as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium storing a computer program for causing a processor to execute the cursor control method according to any one of claims 1 to 4.
CN202110443308.3A 2021-04-23 2021-04-23 Cursor control method and device Active CN113282222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110443308.3A CN113282222B (en) 2021-04-23 2021-04-23 Cursor control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110443308.3A CN113282222B (en) 2021-04-23 2021-04-23 Cursor control method and device

Publications (2)

Publication Number Publication Date
CN113282222A true CN113282222A (en) 2021-08-20
CN113282222B CN113282222B (en) 2024-03-29

Family

ID=77277295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110443308.3A Active CN113282222B (en) 2021-04-23 2021-04-23 Cursor control method and device

Country Status (1)

Country Link
CN (1) CN113282222B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5874941A (en) * 1994-09-28 1999-02-23 Nec Corporation Presentation supporting device
JPH11224163A (en) * 1998-02-05 1999-08-17 Fuji Xerox Co Ltd Information processor and cursor display control method
KR20020006237A (en) * 2000-07-12 2002-01-19 주식회사 슈프리마 Pointing device using accelerometers
CN101651796A (en) * 2009-09-18 2010-02-17 青岛海信电器股份有限公司 Remote control method and device
CN101943957A (en) * 2010-07-23 2011-01-12 康佳集团股份有限公司 Touch screen mobile phone with acceleration transducer and mouse input method
CN103197770A (en) * 2013-04-01 2013-07-10 深圳数字电视国家工程实验室股份有限公司 Method and device for TV (television) remote control simulating operation of mouse
US20140118260A1 (en) * 2011-06-20 2014-05-01 Zte Corporation Mobile terminal and method for moving cursor thereof
CN103823617A (en) * 2012-11-19 2014-05-28 原相科技股份有限公司 Interactive system and remote control device
US20150054745A1 (en) * 2013-02-19 2015-02-26 Pixart Imaging Inc. Handheld pointer device and pointer positioning method thereof
US20160378295A1 (en) * 2015-06-26 2016-12-29 The Boeing Company Cursor enhancement effects
US20170019622A1 (en) * 2013-11-29 2017-01-19 Le Shi Zhi Xin Electronic Technology (Tianjin) Limited Tv control method and remote controller for tv
CN106454465A (en) * 2016-12-01 2017-02-22 北京小米移动软件有限公司 Remote control method and device of remote controller
US20170242495A1 (en) * 2016-02-24 2017-08-24 Beijing Pico Technology Co., Ltd. Method and device of controlling virtual mouse and head-mounted displaying device
CN107707955A (en) * 2017-08-30 2018-02-16 上海与德科技有限公司 Cursor control method and smart machine on a kind of display
CN111124156A (en) * 2018-11-01 2020-05-08 中兴通讯股份有限公司 Interaction control method of mobile terminal and mobile terminal
WO2021004415A1 (en) * 2019-07-05 2021-01-14 深圳市格上格创新科技有限公司 Method and apparatus for controlling mouse cursor of handheld input device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5874941A (en) * 1994-09-28 1999-02-23 Nec Corporation Presentation supporting device
JPH11224163A (en) * 1998-02-05 1999-08-17 Fuji Xerox Co Ltd Information processor and cursor display control method
KR20020006237A (en) * 2000-07-12 2002-01-19 주식회사 슈프리마 Pointing device using accelerometers
CN101651796A (en) * 2009-09-18 2010-02-17 青岛海信电器股份有限公司 Remote control method and device
CN101943957A (en) * 2010-07-23 2011-01-12 康佳集团股份有限公司 Touch screen mobile phone with acceleration transducer and mouse input method
US20140118260A1 (en) * 2011-06-20 2014-05-01 Zte Corporation Mobile terminal and method for moving cursor thereof
CN103823617A (en) * 2012-11-19 2014-05-28 原相科技股份有限公司 Interactive system and remote control device
US20150054745A1 (en) * 2013-02-19 2015-02-26 Pixart Imaging Inc. Handheld pointer device and pointer positioning method thereof
CN103197770A (en) * 2013-04-01 2013-07-10 深圳数字电视国家工程实验室股份有限公司 Method and device for TV (television) remote control simulating operation of mouse
US20170019622A1 (en) * 2013-11-29 2017-01-19 Le Shi Zhi Xin Electronic Technology (Tianjin) Limited Tv control method and remote controller for tv
US20160378295A1 (en) * 2015-06-26 2016-12-29 The Boeing Company Cursor enhancement effects
US20170242495A1 (en) * 2016-02-24 2017-08-24 Beijing Pico Technology Co., Ltd. Method and device of controlling virtual mouse and head-mounted displaying device
CN106454465A (en) * 2016-12-01 2017-02-22 北京小米移动软件有限公司 Remote control method and device of remote controller
CN107707955A (en) * 2017-08-30 2018-02-16 上海与德科技有限公司 Cursor control method and smart machine on a kind of display
CN111124156A (en) * 2018-11-01 2020-05-08 中兴通讯股份有限公司 Interaction control method of mobile terminal and mobile terminal
WO2021004415A1 (en) * 2019-07-05 2021-01-14 深圳市格上格创新科技有限公司 Method and apparatus for controlling mouse cursor of handheld input device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
葛海江 等: "姿态感知鼠标指针的控制方法", 《 机电工程 》, vol. 26, no. 3, 26 May 2009 (2009-05-26), pages 105 - 107 *

Also Published As

Publication number Publication date
CN113282222B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
EP2722730B1 (en) Mobile terminal and method for moving cursor thereof
KR101903261B1 (en) Method and device for preventing accidental touch of terminal with touch screen
CN107340888B (en) Method and device for browsing webpage based on physical movement
CN103051841A (en) Method and device for controlling exposure time
CN109542222B (en) Three-dimensional visual angle control method, device and equipment and readable storage medium
CN108920069B (en) Touch operation method and device, mobile terminal and storage medium
CN107608855B (en) Reminding method and mobile terminal
CN110659098B (en) Data updating method and device, terminal equipment and storage medium
CN108958593B (en) Method for determining communication object and mobile terminal
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN105187710A (en) Photography controlling method, intelligent watch, photography terminal and system
US20210205698A1 (en) Program, electronic device, and method
CN108111750B (en) Zoom adjustment method, mobile terminal and computer readable storage medium
CN111417929A (en) Interface display method and control terminal
US20210232286A1 (en) Control execution method and device, storage medium and electronic apparatus
KR101714628B1 (en) Apparatus and method for user authentication using a movement information
CN107979701B (en) Method and device for controlling terminal display
CN113282222A (en) Cursor control method and device
CN111124156A (en) Interaction control method of mobile terminal and mobile terminal
JP5836556B2 (en) Information processing system
CN104951378B (en) A kind of control method and terminal
CN106354145A (en) Device and method for controlling balance vehicle
CN109358792B (en) Display object selection method and terminal
CN106123909A (en) The detection method of invalid statistical data and device
WO2016149873A1 (en) Intelligent interaction method, equipment and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant