CN113282222B - Cursor control method and device - Google Patents

Cursor control method and device Download PDF

Info

Publication number
CN113282222B
CN113282222B CN202110443308.3A CN202110443308A CN113282222B CN 113282222 B CN113282222 B CN 113282222B CN 202110443308 A CN202110443308 A CN 202110443308A CN 113282222 B CN113282222 B CN 113282222B
Authority
CN
China
Prior art keywords
value
coordinate axis
key
target
terminal
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.)
Active
Application number
CN202110443308.3A
Other languages
Chinese (zh)
Other versions
CN113282222A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

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 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; 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; 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 a 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 in the prior art, the physical keys are easy to damage and inconvenient to operate when the cursor is controlled to move by the physical keys on the remote controller 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, the video networking terminal is favored by more and more users, and more users begin to use the video networking terminal to carry out video conference, video telephone, live broadcast and other services.
Generally, the video networking terminal controls the cursor to move through up-down left-right directional keying on the remote controller, but keys on the remote controller are physical keys, so that the remote controller is easy to damage after long-time use, the control of the cursor is affected, and the problem of inconvenient operation of touching the physical keys is also solved.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention have been developed to provide a cursor control method and corresponding cursor control device that overcome, or at least partially solve, the foregoing problems.
In order to solve the above problems, an embodiment of the present invention discloses a cursor control method applied to a first terminal provided with an acceleration sensor, where the first terminal is a mobile terminal, the method includes:
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; 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 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 controlling a cursor of the second terminal to move according to the direction corresponding to the target key value.
In order to solve the above-mentioned problems, an embodiment of the present invention discloses a cursor control device, which is applied to a first terminal provided with an acceleration sensor, wherein the first terminal is a mobile terminal, and the 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 problems, 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, which when executed by the one or more processors, cause the apparatus to perform a cursor control method as described above.
To solve the above-described problems, an embodiment of the present invention discloses a computer-readable storage medium storing a computer program to cause 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 gesture 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 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 steps of an 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 an embodiment of a cursor control device of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
In order to solve the problems that an entity key is easy to damage and inconvenient to operate when a cursor is controlled to move through the entity key on a remote controller, the embodiment of the invention designs the following technical scheme: 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 gesture of the second terminal, so that the operation of controlling the cursor movement by the entity keys on the touch remote controller is omitted, the operation is more convenient, and the problem that the cursor control is affected due to the fact that the entity keys are 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, and the method may 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 the remote controller mode, respectively acquiring 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, the working mode of the first terminal at least comprises a remote controller mode. The first terminal may 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 in the case of being 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 axes of sensitivity, and the three axes of sensitivity are perpendicular to each other, so the coordinate system corresponding to the acceleration sensor may be a three-dimensional coordinate system, and each axis of sensitivity corresponds to a coordinate axis. The screen of the first terminal is taken as a reference object, and for the acceleration sensor arranged in the first terminal, one sensitive axis is generally perpendicular to the screen of the first terminal, the 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 respectively denoted as an x axis and a y axis.
Since the movement space of the cursor is a two-dimensional space, the movement of the cursor may be controlled by taking the 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-axis and the y-axis 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 is inclined rightwards, the value on the x-axis is a negative value; when the first terminal tilts 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 the forward direction, i.e. the screen of the first terminal is facing upwards and the top and bottom of the first terminal are positioned in the forward direction with respect to the user.
Step 102: and determining the 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 value of the acceleration sensor on the first coordinate axis and the value of the acceleration sensor on the second coordinate axis are obtained, the target key value can be determined according to the obtained 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 invention, the corresponding relation between the positive and negative values on the coordinate axis and the direction key can be established in advance. For example, a positive number on a first axis may be set to correspond to a left direction key, a negative number to correspond to a right direction key, and a positive number on a second axis may be set to correspond to an up direction key, and a negative number to correspond to a down direction key. Of course, other arrangement modes are also possible, 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 be connected by communication (such as bluetooth), and the cursor control signal (such as a target key value) is sent and received through the communication. Or the first terminal is provided with an infrared emitter, the second terminal is provided with an infrared receiver, the first terminal sends a cursor control signal to the second terminal through the infrared emitter, and the second terminal receives the cursor control signal through the infrared receiver. It will be appreciated that other communication means may be used to implement the transmission of 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 may be a video networking terminal, a television or other terminal devices requiring a remote controller to control cursor movement.
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 gesture 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 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 an indispensable device in daily life of people, and the mobile phone body is light and portable, so that the mobile phone is utilized to control the cursor to move, and the utilization rate of the mobile phone can be improved besides being independent of a remote controller.
As an alternative embodiment, in an embodiment of the present invention, the acceleration sensor may be a gravitational acceleration sensor.
In the case where the acceleration sensor is a gravitational acceleration sensor and 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 the 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 may include:
determining a coordinate axis with an absolute value of a numerical value larger 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 the key value of the corresponding direction key according to the positive and negative of the numerical value of the target coordinate axis; and determining the key value of the direction key corresponding to the positive and negative of the numerical value of the target coordinate axis as the target key value.
When the user operates the first terminal, the absolute vertical direction or the absolute horizontal direction is generally not used for moving, for example, taking the coordinate system shown in fig. 2 as an example, when the user controls the first terminal to move upwards, the value on the y axis is increased, and the value on the x axis is also changed to a certain extent.
The first preset value is greater than 0, and a specific value can be set according to actual requirements. For example, when the acceleration sensor is a gravitational acceleration sensor and the coordinate system constructed 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 an absolute value larger than or equal to a first preset value can be determined as a target coordinate axis, the movement of a cursor is controlled according to the value of the target coordinate axis, specifically, the key value of a corresponding direction key is determined according to the positive and negative of the value of the target coordinate axis, and the key value of the direction key corresponding to the positive and negative of the value of the target coordinate axis is determined as a target key value. For example, the target coordinate axis is the x axis shown in fig. 2, the value of the acceleration sensor on the x axis is-6, then according to the preset correspondence between the positive and negative values on the coordinate axis and the direction key, the right direction key of the remote controller corresponding to the negative value on the x axis can be determined, and according to the key value corresponding to the right direction key being 22, the key value of the direction key corresponding to the positive and negative of the value of the target coordinate axis can be determined to be 22, that is, the target key value is 22.
It should be noted that, when the absolute values of the first coordinate axis and the second coordinate axis are both greater than or equal to the first preset value, and the values of the first coordinate axis and the second coordinate axis are different, the coordinate axis whose value reaches the first preset value may be determined as the target coordinate axis. When the absolute values of the first coordinate axis and the second coordinate axis are both greater than or equal to the first preset value, and the values of the first coordinate axis and the second coordinate axis are the same, the preset coordinate axis can 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 can be default of the system or set by a user.
As an alternative embodiment, step 103: the controlling the cursor of the second terminal to move according to the direction corresponding to the target key value may include:
and 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 target coordinate axis is changed from the first preset value to be smaller than or equal to the second preset value within the first preset time.
Since the acceleration sensor is very sensitive, the minute actions may cause the numerical values on the first coordinate axis and the second coordinate axis to change, that is, the numerical values may change very rapidly and may change 10 times within 1 second, so the sensitivity of the acceleration sensor is relieved by setting the second preset numerical value, and whether the first terminal is restored to the initial position is judged according to the second preset numerical value. In this case, the movement distance of the cursor is generally one step, which is the distance the cursor moves from the current position to the nearest position to which it can move.
The second preset value is greater than 0 and smaller than the first preset value, and a specific value can be set according to actual requirements. For example, when the acceleration sensor is a gravitational acceleration sensor and the coordinate system constructed 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 duration is a duration longer than 0, and the specific value can be set according to actual requirements.
In order to better understand the above, a further explanation is given below with an example. This example is illustrated by way of example in 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 change of the x axis and the y axis of the gravity acceleration sensor in real time or at regular time under the condition of being in a remote controller mode. Assuming that the first terminal detects that the absolute value of the value on the y-axis exceeds 5 and the value on the y-axis is 6, the key code can be assigned as the key value of the corresponding direction key, assuming that the user performs the upward tilting operation on the first terminal. For example, a positive value on the y-axis corresponds to an up arrow key, while an up arrow key value of 19 assigns KeyCode to 19. And then, the first terminal continues to monitor the change of the values of the x axis and the y axis of the gravity acceleration sensor, when the absolute value of the value on the y axis is smaller than 2, the user is considered to operate the first terminal to enable the posture of the first terminal to be restored to the initial state, the first terminal can send the value of the Key code to the second terminal, so that the second terminal can simulate the key operation of an upward direction key of the remote controller, the cursor is controlled to move upwards for one step length, then the Key code is emptied, and the next operation of the user is waited. Alternatively, the second terminal may simulate a key operation of an upward direction key of the remote controller through an Android (i.e., android) program.
As an alternative embodiment, step 103: the 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 duration, 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 duration; 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 continuously move the cursor until the preset position is reached by pressing the direction key on the remote controller for a long time. In this regard, the embodiment of the present invention provides a manner of implementing the above process based on the gesture of the first terminal, that is: after the first terminal detects that the absolute value of the numerical value of the target coordinate axis reaches the maximum value and continues for the second preset duration, it detects whether the absolute value of the numerical value of the target coordinate axis is maintained at the maximum value every third preset duration (for example, 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 the like until the absolute value of the numerical value of the target coordinate axis is detected to be no longer maintained at the maximum value or the cursor cannot move continuously according to the direction corresponding to the target key value.
If it is detected that the absolute value of the numerical value of the target coordinate axis is not maintained at the maximum value, the cursor movement is controlled according to the above manner, namely: and controlling the cursor of the second terminal to move according to the direction corresponding to the target key value under the condition that the absolute value of the target coordinate axis is changed from the first preset value to be smaller than or equal to the second preset value within the first preset time period.
Wherein the first preset time period is longer than the second preset time period. The second preset time length and the third preset time length are both time lengths greater than 0, and specific numerical values can be set according to actual requirements. Typically, the second preset time period is longer than the third preset time period.
Wherein the first preset value is less than the maximum value.
In summary, in the embodiment 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 gesture of the second terminal, so that the operation of controlling the cursor movement by touching the physical key 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 key is easy to damage is also avoided.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, there is shown a block diagram of an embodiment of a cursor control device of the present invention, which can be applied to a first terminal provided with an acceleration sensor, which is a mobile terminal.
The device specifically comprises the following modules:
and the acquiring module 401 is configured to acquire the value of the acceleration sensor on the first coordinate axis and the value of the acceleration sensor on the second coordinate axis respectively 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.
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 the 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 with an absolute value larger than or equal to a first preset value as a target coordinate axis in the first coordinate axis and the second 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 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 positive and 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 target coordinate axis is changed from greater than or equal to the first preset value to less than or equal to the second preset value within a first preset time period.
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 or not every third preset duration after the absolute value of the numerical value of the target coordinate axis reaches the maximum value and continues for the second preset duration.
Wherein the first preset 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 being kept at 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 gesture 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 the problem that the cursor control is influenced because the entity keys are easy to damage is also avoided.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
According to another aspect of an embodiment 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, which when executed by the one or more processors, cause the electronic device to perform the cursor control method as described above.
According to yet another aspect of an embodiment of the present invention, there is provided a computer-readable storage medium storing a computer program to cause a processor to execute the cursor control method as described above.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that 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 invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, 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 apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus 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 in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.

Claims (6)

1. The cursor control method is applied to a first terminal provided with an acceleration sensor, wherein the first terminal is a mobile terminal, and is characterized by comprising the following steps:
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; 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 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, a corresponding relation between the first coordinate axis and the leftward and rightward direction keys is established, and a corresponding relation between the second coordinate axis and the upward and downward direction keys is established;
controlling a cursor of the second terminal to move according to the direction corresponding to the target key value;
the controlling the cursor of the second terminal to move according to the direction corresponding to the target key value comprises the following steps:
controlling a cursor of the second terminal to move once according to a direction corresponding to the target key value under the condition that the absolute value of the target coordinate axis is changed from a value larger than or equal to a first preset value to a value smaller than or equal to a second preset value within a first preset duration, wherein the target coordinate axis is determined by the first coordinate axis and the second coordinate axis;
wherein the second preset value is smaller than the first preset value;
or, the controlling the cursor of the second terminal to move according to the direction corresponding to the target key value includes:
after the absolute value of the numerical value of the target coordinate axis reaches the maximum value and lasts for a second preset duration, 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 duration; wherein the first preset value is less than the maximum value;
and under the condition of being 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.
2. The cursor control method according to claim 1, wherein the determining the target key value based on the value of the acceleration sensor on the first coordinate axis and the value on the second coordinate axis includes:
determining a coordinate axis with an absolute value of a numerical value larger than or equal to a first preset numerical value in the first coordinate axis and the second coordinate axis as a target coordinate axis, wherein 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 larger than or equal to the first preset numerical value and the numerical value of the first coordinate axis and the numerical value of the second coordinate axis are different, determining the coordinate axis with the numerical value reaching the first preset numerical value as the target coordinate axis; determining the preset coordinate axis as a target coordinate axis under the condition that the absolute values of the numerical value of the first coordinate axis and the numerical value of the second coordinate axis are larger 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;
determining the key value of the corresponding direction key according to the positive and negative of the numerical value of the target coordinate axis;
and determining the key value of the direction key corresponding to the positive and negative of the numerical value of the target coordinate axis as the target key value.
3. A cursor control device applied to a first terminal provided with an acceleration sensor, the first terminal being a mobile terminal, the cursor control device comprising:
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, a corresponding relation between the first coordinate axis and the leftward and rightward direction keys is established, and a corresponding relation between the second coordinate axis and the upward and downward direction keys is established;
the control module is used for controlling a cursor of the second terminal to move according to the direction corresponding to the target key value;
the control module includes:
a first control unit, configured to control a cursor of the second terminal to move once according to a direction corresponding to the target key value when an absolute value of a target coordinate axis is changed from greater than or equal to a first preset value to less than or equal to a second preset value within a first preset duration, where the target coordinate axis is determined by the first coordinate axis and the second coordinate axis;
wherein the second preset value is smaller than the first preset value;
alternatively, the control module includes:
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 or not every third preset duration after the absolute value of the numerical value of the target coordinate axis reaches the maximum value and continues for the second preset duration; wherein the first preset 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 being kept at the maximum value.
4. The cursor control device of claim 3, wherein the determination module comprises:
a first determining unit, configured to determine, as a target coordinate axis, a coordinate axis having an absolute value of a value greater than or equal to a first preset value, from among the first coordinate axis and the second coordinate axis, where, when the absolute value of the first coordinate axis and the absolute value of the second coordinate axis are both greater than or equal to the first preset value, and the values of the first coordinate axis and the second coordinate axis are different, the coordinate axis having the value reaching the first preset value first is determined as the target coordinate axis; determining the preset coordinate axis as a target coordinate axis under the condition that the absolute values of the numerical value of the first coordinate axis and the numerical value of the second coordinate axis are larger 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 second determining unit is used for determining the key value of the corresponding direction key according to the positive and negative 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 positive and negative of the numerical value of the target coordinate axis.
5. A cursor control device, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the cursor control method of any of claims 1-2.
6. A computer readable storage medium storing a computer program for causing a processor to perform the cursor control method according to any one of claims 1 to 2.
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 CN113282222A (en) 2021-08-20
CN113282222B true 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 (11)

* 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
CN103823617A (en) * 2012-11-19 2014-05-28 原相科技股份有限公司 Interactive system and remote control 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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279647A (en) * 2011-06-20 2011-12-14 中兴通讯股份有限公司 Mobile terminal and method for realizing movement of cursor thereof
US9804689B2 (en) * 2013-02-19 2017-10-31 Pixart Imaging Inc. Handheld pointer device and pointer positioning method thereof
CN103634639B (en) * 2013-11-29 2018-02-23 乐视致新电子科技(天津)有限公司 A kind of TV control method and TV remote controller
US10474315B2 (en) * 2015-06-26 2019-11-12 The Boeing Company Cursor enhancement effects
CN105807915A (en) * 2016-02-24 2016-07-27 北京小鸟看看科技有限公司 Control method and control device of virtual mouse, and head-mounted display equipment

Patent Citations (11)

* 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
CN103823617A (en) * 2012-11-19 2014-05-28 原相科技股份有限公司 Interactive system and remote control device
CN103197770A (en) * 2013-04-01 2013-07-10 深圳数字电视国家工程实验室股份有限公司 Method and device for TV (television) remote control simulating operation of mouse
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
姿态感知鼠标指针的控制方法;葛海江 等;《 机电工程 》;20090526;第26卷(第3期);105-107 *

Also Published As

Publication number Publication date
CN113282222A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
KR102171616B1 (en) Method and device for preventing incorrect contact of terminal
KR101903261B1 (en) Method and device for preventing accidental touch of terminal with touch screen
KR101706359B1 (en) Method and device for controlling background application
RU2630189C1 (en) Method of controlling button functions in one-hand operation mode, device and electronic device
US20170123625A1 (en) Method, device, apparatus and computer-readable medium for application switching
CN103051841A (en) Method and device for controlling exposure time
US20140036131A1 (en) Method of capturing an image in a device and the device thereof
US10311830B2 (en) Operating method, related touch display device and related semiconductor device
CN108920069B (en) Touch operation method and device, mobile terminal and storage medium
EP3171252A1 (en) Terminal device and method and device for optimizing air mouse remote controller
US20130120240A1 (en) Apparatus and method for controlling image display depending on movement of terminal
CN110659098B (en) Data updating method and device, terminal equipment and storage medium
CN109542222B (en) Three-dimensional visual angle control method, device and equipment and readable storage medium
EP2985979B1 (en) Method and terminal for backing up data
WO2015096469A1 (en) Volume adjustment and control device and method for mobile terminal, and mobile terminal
CN108881719B (en) Method for switching shooting mode and terminal equipment
EP3275717B1 (en) Method and apparatus for controlling self-balanced vehicle
US10511702B2 (en) Information processing device and information processing method
KR20220108161A (en) How the camera works and electronics
CN108369447A (en) The method and apparatus for controlling wearable electronic operating status
CN113282222B (en) Cursor control method and device
KR20210005508A (en) Touch signal processing method, apparatus and media
CN112612552A (en) Application program resource loading method and device, electronic equipment and readable storage medium
JP5836556B2 (en) Information processing system
CN110324493B (en) Notification message checking method and terminal

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