WO2017049947A1 - Method and intelligent terminal for performing mouse input on display apparatus - Google Patents

Method and intelligent terminal for performing mouse input on display apparatus Download PDF

Info

Publication number
WO2017049947A1
WO2017049947A1 PCT/CN2016/084167 CN2016084167W WO2017049947A1 WO 2017049947 A1 WO2017049947 A1 WO 2017049947A1 CN 2016084167 W CN2016084167 W CN 2016084167W WO 2017049947 A1 WO2017049947 A1 WO 2017049947A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
rotation angle
determining
state
rotation
Prior art date
Application number
PCT/CN2016/084167
Other languages
French (fr)
Chinese (zh)
Inventor
刘冉
何谦
李跃基
缪晶晶
笪久周
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017049947A1 publication Critical patent/WO2017049947A1/en

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • 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

Definitions

  • This document relates to, but is not limited to, the field of intelligent terminal control technology, and in particular to a method and a smart terminal for performing mouse input on a display device.
  • the embodiment of the invention provides a method for inputting a mouse to a display device and an intelligent terminal, which can improve the user experience, and is convenient to use and reduces the use cost.
  • An embodiment of the present invention provides a method for performing mouse input on a display device, which is applied to a smart terminal, wherein the display device and the smart terminal are connected by using a wireless connection, and the method includes:
  • An output control command is output to the display device to cause the cursor on the display device to move according to the output control command.
  • the step of detecting state change information when the smart terminal is flipped from the first state to the second state includes:
  • the state change information is obtained according to the first rotation direction and the first rotation angle.
  • the state change information is compared with the plurality of preset movement states, and when it is determined that the state change information meets one of the preset movement states, determining that the state change information conforms to the state change information
  • the output control commands corresponding to the preset movement state include:
  • determining an output control instruction is to move the cursor toward The first pixel distance is moved in a direction opposite to the first coordinate direction.
  • the step of detecting the state change information when the smart terminal is flipped from the first state to the second state further includes:
  • the state change information is obtained according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
  • the state change information is compared with the plurality of preset movement states, and when it is determined that the state change information meets one of the preset movement states, determining that the state change information conforms to the state change information
  • the output control commands corresponding to the preset movement state include:
  • determining an output control instruction is to move the cursor toward The second pixel distance is moved in a direction opposite to the second coordinate direction.
  • the state change information is compared with the plurality of preset movement states, and when it is determined that the state change information meets one of the preset movement states, determining that the state change information conforms to the state change information In the step of the output control command corresponding to the preset movement state:
  • the first rotation angle is not within the predetermined angle range, determining whether the first rotation direction is a first preset direction or a second preset direction opposite to the first preset direction, and the first rotation Whether the angle is within the first preset value range;
  • the direction is a direction in which the first coordinate direction is opposite, and the moving distance is a first pixel distance;
  • the pixel distance determines that the output control command is to move the cursor to the final moving direction by moving the final moving pixel distance.
  • the method further includes:
  • the embodiment of the present invention further provides an intelligent terminal, where the smart terminal is connected to the display device by using a wireless connection, and the smart terminal includes:
  • a state detecting module configured to detect state change information when the smart terminal is flipped from the first state to the second state
  • the command determining module is configured to compare the state change information with the plurality of preset moving states respectively, and when determining that the state change information meets one of the preset moving states, determining that the state change information is consistent with the state change information
  • the first command output module is configured to output an output control command to the display device to cause the cursor on the display device to move according to the output control command.
  • the state detection module includes:
  • a first detecting sub-module configured to detect a rotation direction and a rotation angle when the first edge of the smart terminal is turned from the first state to the second state, to obtain a first rotation direction and a first rotation angle
  • the first acquisition submodule is configured to obtain the state change information according to the first rotation direction and the first rotation angle.
  • the instruction determining module includes:
  • the first determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is in the first preset Set the value range;
  • the first instruction sub-module is configured to: when the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determine that the output control instruction is to move the cursor toward the first Moving the first pixel distance in the coordinate direction;
  • a second command sub-module configured to determine an output when the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within a first preset value range
  • the control command is to move the first pixel distance by moving the cursor in a direction opposite to the first coordinate direction.
  • the status detection module further includes:
  • a second detecting submodule configured to detect a rotation direction and a rotation angle when the second edge of the smart terminal is turned from the first state to the second state, to obtain a second rotation direction and a second rotation angle, wherein the a second edge perpendicular to the first edge;
  • the second acquisition submodule is configured to obtain the state change information according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
  • the instruction determining module further includes:
  • a second determining sub-module configured to determine whether the first rotation angle is within a predetermined angle range, and when the first rotation angle is within a predetermined angle range, determining whether the second rotation direction is a third preset direction or a fourth preset direction opposite to the third preset direction, and the second rotation angle is within a first preset value range;
  • a third instruction sub-module configured to: when the second rotation direction is a third preset direction, and the second rotation angle is within the first preset value range, determining that the output control instruction is to move the cursor toward the second Moving a second pixel distance in a coordinate direction, wherein the second coordinate direction is perpendicular to the first coordinate direction;
  • a fourth instruction sub-module configured to determine an output when the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range
  • the control command is to move the second pixel distance by moving the cursor in a direction opposite to the second coordinate direction.
  • the instruction determining module further includes:
  • the third determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset opposite to the first preset direction when the first rotation angle is not within a predetermined angle range Direction, and whether the first rotation angle is within a first preset value range;
  • the fifth command sub-module is configured to: when the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determine a movement direction of the first coordinate component of the cursor is a first coordinate direction, the moving distance is a first pixel distance;
  • a sixth instruction sub-module configured to determine a cursor when the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within a first preset value range
  • the moving direction of the first coordinate component is a direction opposite to the first coordinate direction, and the moving distance is a first pixel distance;
  • a seventh command sub-module configured to determine that a moving direction of the second coordinate component of the cursor is when the second rotation direction is a third preset direction, and the second rotation angle is within the first preset value range a second coordinate direction, the moving distance is a second pixel distance;
  • the eighth command sub-module is configured to determine the cursor when the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range
  • the moving direction of the second coordinate component is a direction opposite to the second coordinate direction, and the moving distance is a second pixel distance;
  • the ninth instruction sub-module is configured to determine a final moving pixel distance of the cursor according to the moving distance of the first coordinate component and the moving distance of the second coordinate component, and determine that the output control instruction is to move the cursor to the final moving pixel distance in the final moving direction.
  • the smart terminal further includes:
  • a display module configured to display a mouse button display interface
  • the second instruction output module is configured to: according to the user triggering the mouse button display interface to obtain a corresponding button instruction, send the button instruction to the display device, so that the display device operates according to the button instruction.
  • the foregoing technical solution of the embodiment of the present invention compares the state change information of the user operation of the smart terminal and the plurality of preset movement states, and determines an output control instruction corresponding to one of the preset movement states; and outputs the output control instruction to the display device.
  • the output control command causes the cursor on the display device to move according to the output control command, which is convenient to use, and improves the user operation experience, and does not need to purchase an additional device such as a flying squirrel, thereby saving the user's use cost.
  • FIG. 1 is a flow chart showing a method of performing mouse input on a display device according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of an intelligent terminal according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram showing the display of a smart phone according to an embodiment of the present invention.
  • Figure 4 is a diagram showing the determination of the coordinate movement position on the display device in an embodiment of the present invention.
  • the embodiment of the present invention provides a method for injecting mouse input to a display device and an intelligent terminal through the inconvenience of using the remote control device when the display device is operated, or the additional operation device is added to bring additional use cost.
  • the output control command is output to the display device to move the cursor on the display device according to the output control command, which is convenient to use, and improves the user operation experience, and does not need to purchase an additional device, thereby saving the user's use cost.
  • the smart terminal according to the embodiment of the present invention refers to an Android smart phone, an Android tablet computer, an iPhone, an iPad, and the like that run an intelligent operating system such as Android (Android) and IOS.
  • Android Android
  • IOS IOS
  • FIG. 1 is a flow diagram of a method for performing mouse input on a display device according to an embodiment of the present invention.
  • a method for performing mouse input on a display device according to an embodiment of the present invention is applied to a smart terminal, wherein the display is The device is connected to the smart terminal by using a wireless connection, and the method includes:
  • Step 101 Detect state change information when the smart terminal is flipped from the first state to the second state.
  • the first state and the second state may be any one of the location states in which the smart terminal is located, that is, the smart terminal may be in a horizontal position, a vertical position, or any position between a relative horizontal position and a relatively vertical position.
  • the virtual intelligent terminal is in a first state position to establish a spatial coordinate system.
  • the spatial coordinate system is a first edge of the touch screen of the smart terminal or a direction parallel to the first edge is an x-axis, a second edge perpendicular to the first edge of the touch screen of the smart terminal, or a direction parallel to the second edge
  • the touch screen of the vertical smart terminal is the z-axis upward direction
  • the rotation of the smart terminal in the spatial coordinate system detects the rotation of the first edge of the smart terminal from the first state to the second state.
  • Direction and rotation angle obtaining a first rotation direction corresponding to the first edge and a first rotation angle; and then obtaining the state change information.
  • the first edge may be any one of the peripheral edges of the preset smart terminal or any reference line other than the peripheral edge, and the second edge is perpendicular to the peripheral edge of the first edge or perpendicular to the peripheral edge Any reference line at one edge.
  • the state change information includes: a first rotation direction, a first rotation angle; or a second rotation direction and a second rotation angle.
  • Step 102 Compare the state change information with a plurality of preset movement states, and when determining that the state change information meets one of the preset movement states, determine a preset movement that matches the state change information.
  • the state corresponds to an output control command, wherein each of the preset movement states corresponds to an output control command.
  • step 102 it is determined whether the first rotation direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is in a first preset value range.
  • the first rotation direction is the first preset direction (for example, the first edge is turned upward when the first edge is opposite to the first state), and the first rotation angle is within the first preset value range
  • the state change information is consistent with one of the preset movement states, and the output control command is determined to move the cursor to the first coordinate direction by the first pixel distance; and when the first rotation direction is determined to be opposite to the first preset direction
  • the first rotation angle is within the first preset value range, it is determined that the state change information conforms to one of the preset movement states, and the output control command is determined to be opposite to the first coordinate direction.
  • the direction moves the first pixel distance.
  • the first rotation angle is the boundary of the first preset value range, it is considered that the first rotation angle is within the first preset value range, and the first rotation angle may be considered not to be within the first preset value range.
  • the smart terminal is in the horizontal position in the first state, and the first preset direction is that the first edge is turned upside down relative to the first state, and the coordinate direction of the corresponding output control command is the display device.
  • the second preset direction is that the first edge is turned downward with respect to the first state, and the coordinate direction of the corresponding output control command is that the cursor moves upward in the display device.
  • the output control command is to move the cursor downward relative to the initial position by a'
  • the pixel distance, a' corresponds to the first preset value range in which a is located; when the user flips the smart terminal to flip the first edge relative to the horizontal position downward by an angle a, the output control command is to move the cursor upward relative to the initial position a' Pixel distance.
  • the third preset direction corresponding to the second rotation direction is that the second edge is turned upward relative to the first state
  • the coordinate direction of the corresponding output control command is that the cursor moves to the right in the display device
  • the third pre- The fourth preset direction opposite to the opposite direction is that the second edge is turned downward with respect to the first state
  • the coordinate direction of the corresponding output control command is that the cursor moves to the left in the display device, when the user flips the smart terminal to make the second edge
  • the output control command is to move the cursor to the right relative to the initial position by b' pixel distance, where b' corresponds to the preset numerical range of b;
  • the output control command is to move the cursor to the left by b' pixel distance from the initial position.
  • Step 103 Output an output control command to the display device, so that the cursor on the display device moves according to the output control command.
  • the display device and the smart terminal are connected by a wireless connection manner such as wifi or Bluetooth.
  • the smart terminal detects the state change information when the user is turned from the first state to the second state. And comparing the state change information with the plurality of preset movement states, determining an output control instruction corresponding to one of the preset movement states; and outputting the output control instruction to the display device to cause the cursor on the display device to be The output control command moves.
  • the user can reverse the state change information of the smart terminal by flipping the smart terminal to meet the preset movement state, and can operate the cursor movement on the display device through the corresponding output control instruction, which is simple in operation and can bring a good user experience to the user.
  • step 102 the step of detecting state change information when the smart terminal is flipped from the first state to the second state further includes:
  • the state change information is obtained according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
  • the output control instructions also include:
  • the smart terminal when it is detected that the smart terminal has a flip, it is first determined whether the smart terminal is flipped in a single direction. If the second edge is detected to be reversed in the embodiment, it is determined whether the first rotation angle is preset.
  • An angle range which is an angular error range of the smart terminal flip setting that allows the flip to exist, that is, when the first rotation angle is within a predetermined angle range, the smart terminal only has a direction with the second edge as a reference.
  • the second rotation direction is the fourth preset direction (eg, For example, the second edge is flipped downward relative to the horizontal position, and the output control command corresponding to the preset movement state corresponding to the state change information is to move the cursor to the left by a second pixel distance b' relative to the initial position.
  • the first rotation angle is not within the predetermined angle range, that is, the first edge and the second edge of the smart terminal are reversed relative to the first state, determining whether the first rotation direction is the first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is within a first preset value range;
  • the change information conforms to one of the preset movement states, and determines that the moving direction of the first coordinate component of the cursor is downward, and the moving distance is the first pixel distance a';
  • the first rotation direction is a second preset direction opposite to the first preset direction (for example, the first edge is turned downward with respect to the horizontal position), and the first rotation angle a is in the first preset value range
  • the state change information conforms to one of the preset movement states, and the moving direction of the first coordinate component of the cursor is determined to be upward relative to the initial position, and the moving distance is the first pixel distance a';
  • the second rotation direction is a fourth preset direction opposite to the third preset direction (for example, the second edge is turned downward with respect to the horizontal position), and the second rotation angle b is in the first preset value range
  • the state change information is determined to be one of the preset moving states, and the moving direction of the second coordinate component of the cursor is determined to be relative to the initial position to the left, and the moving distance is the second pixel distance b';
  • the final moving pixel distance of the cursor is determined according to the moving distance of the first coordinate component and the moving distance of the second coordinate component, and the output control command is determined to move the cursor to the final moving pixel distance in the final moving direction.
  • the first coordinate component or the second coordinate component of the cursor may be a component in an arbitrary direction.
  • the user by setting a predetermined angle range, that is, the user allows a certain angular error when the smart terminal is turned over, the user has a controllable space during operation, which reduces the occurrence of the user's misoperation behavior, and the operation is more consistent. user experience.
  • the method of the foregoing embodiment of the present invention further includes:
  • the user can trigger a button of the mouse button display interface, and the button can include a left mouse button, a right mouse button, and other control buttons based on the needs of the device, and then the smart terminal obtains a corresponding button command according to the user trigger, and sends the button command to the display device. And causing the display device to perform a corresponding instruction operation according to the button instruction.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • FIG. 2 is a structural block diagram of an intelligent terminal according to an embodiment of the present invention.
  • the embodiment of the present invention further provides an intelligent terminal, where the smart terminal and the display device are connected by using a wireless connection, and the smart terminal includes:
  • the state detecting module 21 is configured to detect state change information when the smart terminal is flipped from the first state to the second state;
  • the command determining module 22 is configured to compare the state change information with the plurality of preset moving states respectively, and when determining that the state change information meets one of the preset moving states, determining the pre-compliance with the state change information Setting a first output control instruction corresponding to the moving state, wherein each preset moving state corresponds to an output control instruction;
  • the first command output module 23 is configured to output an output control command to the display device to cause the cursor on the display device to move according to the output control command.
  • the display device and the smart terminal are wirelessly connected through a wireless connection manner such as wifi or Bluetooth.
  • the state detecting module 21 of the smart terminal detects that the state is reversed from the first state to the second state.
  • the state change information in the state the command determining module 22 compares the state change information with a plurality of preset movement states, and determines a pre-compliance with the state change information.
  • An output control command corresponding to the movement state is set; then the first command output module 23 outputs the output control command to the display device to cause the cursor on the display device to move according to the output control command.
  • the user can reverse the state change information of the smart terminal by flipping the smart terminal to meet the preset movement state, and can operate the cursor movement on the display device through the corresponding output control instruction, which is simple in operation and can bring a good user experience to the user.
  • the state detecting module 21 includes:
  • a first detecting sub-module configured to detect a rotation direction and a rotation angle when the first edge of the smart terminal is turned from the first state to the second state, to obtain a first rotation direction and a first rotation angle
  • the first acquisition submodule is configured to obtain the state change information according to the first rotation direction and the first rotation angle.
  • the instruction determining module 22 includes:
  • the first determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is in the first preset Setting a value range, and when the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, triggering the first instruction sub-module, and when the first a second instruction sub-module is triggered when a rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within the first preset value range;
  • the first instruction submodule is configured to determine, according to the triggering of the first determining submodule, that the output control command is to move the cursor to the first coordinate direction by the first pixel distance;
  • the second instruction sub-module is configured to determine, according to the trigger of the first determining sub-module, that the output control command is to move the first pixel distance in a direction opposite to the first coordinate direction.
  • the state detecting module 21 further includes:
  • a second detecting submodule configured to detect a rotation direction and a rotation angle when the second edge of the smart terminal is turned from the first state to the second state, to obtain a second rotation direction and a second rotation angle, wherein the a second edge perpendicular to the first edge;
  • the second acquisition submodule is configured to obtain the state change information according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
  • the instruction determining module 22 further includes:
  • a second determining sub-module configured to determine whether the first rotation angle is within a predetermined angle range, and when the first rotation angle is within a predetermined angle range, determining whether the second rotation direction is a third preset direction or a fourth preset direction opposite to the third preset direction, and the second rotation angle is within a first preset value range, and when the second rotation direction is a third preset direction, and When the second rotation angle is within the first preset value range, triggering the third instruction sub-module, and when the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second When the rotation angle is within the first preset value range, triggering the fourth instruction sub-module;
  • the third instruction sub-module is configured to determine, according to the triggering of the second determining sub-module, that the output control command is to move the cursor to the second coordinate direction by the second pixel distance, wherein the second coordinate direction is perpendicular to the first a coordinate direction;
  • the fourth instruction submodule is configured to determine, according to the trigger of the second determining submodule, that the output control command is to move the second pixel distance in a direction opposite to the second coordinate direction.
  • the instruction determining module 22 further includes:
  • the third determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset opposite to the first preset direction when the first rotation angle is not within a predetermined angle range a direction, and whether the first rotation angle is within a first preset value range, and determining whether the second rotation direction is a third preset direction or a fourth preset direction opposite to the third preset direction, And whether the second rotation angle is within a first preset value range, and when the first rotation direction is a first preset direction, and the first rotation angle is within a first preset value range, Triggering the fifth instruction sub-module, when the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within the first preset value range, triggering the sixth
  • the command sub-module triggers the seventh command sub-module when the second rotation direction is the third preset direction, and the second rotation angle is within the first preset value range, and when the second rotation The direction is opposite to the third preset direction Four
  • the fifth instruction sub-module is configured to determine, according to the triggering of the third determining sub-module, that the moving direction of the first coordinate component of the cursor is the first coordinate direction, and the moving distance is the first pixel distance;
  • the sixth instruction sub-module is configured to determine, according to the triggering of the third determining sub-module, that the moving direction of the first coordinate component of the cursor is a direction opposite to the first coordinate direction, and the moving distance is a first pixel distance;
  • the seventh instruction sub-module is configured to determine, according to the triggering of the third determining sub-module, that the moving direction of the second coordinate component of the cursor is the second coordinate direction, and the moving distance is the second pixel distance;
  • the eighth instruction sub-module is configured to determine, according to the triggering of the third determining sub-module, that the moving direction of the second coordinate component of the cursor is a direction opposite to the second coordinate direction, and the moving distance is a second pixel distance;
  • the ninth instruction sub-module is configured to determine a final moving pixel distance of the cursor according to the moving distance of the first coordinate component and the moving distance of the second coordinate component, and determine that the output control instruction is to move the cursor to the final moving pixel distance in the final moving direction.
  • the smart terminal further includes:
  • a display module configured to display a mouse button display interface
  • the second instruction output module is configured to: according to the user triggering the mouse button display interface to obtain a corresponding button instruction, send the button instruction to the display device, so that the display device operates according to the button instruction.
  • the present invention provides an example of a specific embodiment, as shown in FIG. 3, a schematic diagram of a smart phone display according to an embodiment of the present invention, and a smart phone of an Android system is used as an intelligent embodiment of the present invention. terminal.
  • the state detecting module includes a direction sensor
  • the first command output module and the second command output module include a timer
  • the direction sensor is used as an execution body of the state detecting module to time
  • the device acts as an execution body of the first instruction output module and the second instruction output module; the timer sends a relevant instruction to the server software of the display device when timing (high frequency) or when receiving the button command and receiving the output control command.
  • the smart phone establishes a connection with the server software on the display device through wifi in advance, and displays a mouse button display interface on the touch screen of the smart phone (the display module is disposed on the touch screen), as shown in FIG.
  • the left button and the right button are displayed, and the user can click the left button and the right button to enable the smart terminal to obtain the corresponding button command and transmit it through the timer.
  • the corresponding operation is performed on the display device according to the left and right key commands.
  • the initial position of the smartphone is placed in a horizontal position, the touch screen is facing upward, that is, the first state is horizontal, and it is assumed that the smartphone shown in FIG. 3 is placed in a horizontal position; and the lower edge of the smartphone illustrated in FIG.
  • FIG. 3 is taken as the first An edge, with the left edge of the smartphone illustrated in FIG. 3 as the second edge; and while the imaginary smartphone is in the first state, that is, in the horizontal position in the specific embodiment, there is a spatial coordinate system, which is parallel to The axis of the first edge is the y-axis, the axis parallel to the second edge is the x-axis, and the touch screen of the vertical smartphone is facing upward (the vertical paper faces up) in the z-axis.
  • the direction sensor detects a one-sided flip: when detecting the first edge of the smartphone from the horizontal position If the angle a is turned up (ie, facing the paper face up), the inverted smartphone has an angle change on the xz coordinate system, and the corresponding output control command is to determine that the cursor moves downward by a' pixel distance, assuming the absolute value of a In the range of [10,20], assuming that the [10,20] range is one of the preset value ranges, the corresponding output control command is to determine that the cursor is moving downward by 5 pixels; in contrast, when detecting the first of the smartphone The edge flips the angle a from the horizontal position downward (ie, facing the paper face down), and the corresponding output control command is to determine that the cursor moves upward by a' pixel distance, and also assumes that the absolute value of a is in the range of [10, 20], corresponding
  • the corresponding output control command is to determine that the cursor moves to the left by b' pixel distances, assuming that the absolute value of b is in the range of [10, 20], and the corresponding output control command is to determine that the cursor is moved 5 pixels to the left; Check whether the timer is turned on, start the timer when it is not turned on, and send a corresponding output control command to the display device through the timer to make the cursor move accordingly.
  • the first edge of the detected smartphone is from the horizontal position (ie, Detecting the second side of the smartphone by flipping the angle a relative to the paper facing down
  • the angle is upward from the horizontal position (ie, opposite to the paper surface)
  • the corresponding output control command is that the first coordinate component of the cursor moves the cursor upward by a' pixel distance
  • the second coordinate component moves the cursor to the right b'
  • the final moving direction of the cursor and the moving pixel distance are determined according to the first coordinate component and the second coordinate component.
  • the smartphone has a certain flip in two reference directions or one of the directions, but the flip angle is within the error angle range (predetermined angle range), it is still determined that the smartphone is in the horizontal position (first state), the cursor No movement occurs.
  • the cursor moves faster, and the flip angle is within a larger preset value range, and the corresponding cursor moving pixel distance is larger; and the moving pixel distance value of the cursor is divided and displayed.
  • the screen of the device is automatically set, that is, the same flip angle of the smart phone.
  • the selection of the smart phone in the horizontal position is the first state for the convenience of the description of the embodiment, and the location setting of the first state of the smart terminal in the present invention is not limited.
  • the user can perform the cursor movement on the display device through the corresponding output control command by inverting the smart terminal to make the state change information of the smart terminal inversion conform to the preset movement state, and the operation is simple and can be brought to the user. Good user experience.
  • the terms “left”, “right”, “upper”, “lower” and the like used in the movement of the cursor are merely descriptions of the orientation of the cursor relative to its initial position for convenience of describing the present embodiment, and are not intended to be the present invention.
  • the limitations of the corresponding technical solutions are described using the terms “upper”, “down”, and “left”, and the description used in the description of the flip direction of the smartphone.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution improves the user operation experience and saves the user's use cost.

Abstract

A method and an intelligent terminal for performing mouse input on a display apparatus. The display apparatus is connected to the intelligent terminal in a wireless manner. The method comprises: detecting state change information when an intelligent terminal changes from a first state into a second state (101); separately comparing the state change information with multiple preset movement states, and when it is determined that the state change information conforms to one of the preset movement states, determining an output control instruction corresponding to the preset movement state conforming to the state change information, wherein each preset movement state corresponds to one output control instruction (102); and outputting the output control instruction to a display apparatus, so that a cursor on the display apparatus moves according to the output control instruction (103).

Description

一种对显示装置进行鼠标输入的方法和智能终端Method for inputting mouse to display device and intelligent terminal 技术领域Technical field
本文涉及但不限于智能终端控制技术领域,尤指一种对显示装置进行鼠标输入的方法和智能终端。This document relates to, but is not limited to, the field of intelligent terminal control technology, and in particular to a method and a smart terminal for performing mouse input on a display device.
背景技术Background technique
随着智能机顶盒的出现,越来越多的家庭使用智能机顶盒,智能机顶盒一般都是使用遥控器装置操作,但是对于操作浏览网页等一些应用时,遥控器装置操作便显得不方便,同时,对于用户而言,拿取控制器装置操作也存在一定不便利,用户得不到较好的用户体验。当然现有设计了一些空中飞鼠可供用户使用操作,但是购买空中飞鼠使用增加了用户的使用成本。With the advent of smart set-top boxes, more and more homes use smart set-top boxes, which are generally operated by remote control devices. However, when operating some applications such as browsing web pages, the remote control device operation is inconvenient, and at the same time, For the user, it is inconvenient to take the controller device operation, and the user does not get a good user experience. Of course, some flying squirrels are designed for users to use, but the use of flying squirrels increases the user's cost of use.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种对显示装置进行鼠标输入的方法和智能终端,能够提高用户体验,并且使用方便,降低使用成本。The embodiment of the invention provides a method for inputting a mouse to a display device and an intelligent terminal, which can improve the user experience, and is convenient to use and reduces the use cost.
本发明的实施例提供一种对显示装置进行鼠标输入的方法,应用于智能终端,其中所述显示装置与所述智能终端之间通过无线连接,所述方法包括:An embodiment of the present invention provides a method for performing mouse input on a display device, which is applied to a smart terminal, wherein the display device and the smart terminal are connected by using a wireless connection, and the method includes:
检测所述智能终端从第一状态翻转至第二状态时的状态变化信息;Detecting state change information when the smart terminal is flipped from the first state to the second state;
将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令,其中每一个所述预设移动状态对应一个输出控制指令;And comparing the state change information with the plurality of preset movement states, and determining that the state change information meets one of the preset movement states, and determining the preset movement state corresponding to the state change information Outputting a control instruction, wherein each of the preset movement states corresponds to an output control instruction;
向所述显示装置输出输出控制指令,使所述显示装置上的光标根据输出控制指令进行移动。An output control command is output to the display device to cause the cursor on the display device to move according to the output control command.
可选的,所述检测所述智能终端从第一状态翻转至第二状态时的状态变化信息的步骤包括: Optionally, the step of detecting state change information when the smart terminal is flipped from the first state to the second state includes:
检测所述智能终端的第一边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第一转动方向和第一转动角度;Detecting a rotation direction and a rotation angle when the first edge of the smart terminal is turned from the first state to the second state, to obtain a first rotation direction and a first rotation angle;
根据所述第一转动方向和所述第一转动角度获得所述状态变化信息。The state change information is obtained according to the first rotation direction and the first rotation angle.
可选的,所述将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令包括:Optionally, the state change information is compared with the plurality of preset movement states, and when it is determined that the state change information meets one of the preset movement states, determining that the state change information conforms to the state change information The output control commands corresponding to the preset movement state include:
判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内;Determining whether the first rotation direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is within a first preset value range;
当判断出所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第一坐标方向移动第一像素距离;When it is determined that the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determining that the output control instruction is to move the cursor to the first coordinate direction by the first pixel distance;
当判断出所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第一坐标方向相反的方向移动所述第一像素距离。When it is determined that the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within the first preset value range, determining an output control instruction is to move the cursor toward The first pixel distance is moved in a direction opposite to the first coordinate direction.
可选的,所述检测所述智能终端从第一状态翻转至第二状态时的状态变化信息的步骤还包括:Optionally, the step of detecting the state change information when the smart terminal is flipped from the first state to the second state further includes:
检测所述智能终端的第二边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第二转动方向和第二转动角度,其中所述第二边缘垂直于所述第一边缘;Detecting a rotation direction and a rotation angle when the second edge of the smart terminal is flipped from the first state to the second state, obtaining a second rotation direction and a second rotation angle, wherein the second edge is perpendicular to the first An edge
根据所述第一转动方向、所述第二转动方向、所述第一转动角度和所述第二转动角度获得所述状态变化信息。The state change information is obtained according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
可选的,所述将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令包括:Optionally, the state change information is compared with the plurality of preset movement states, and when it is determined that the state change information meets one of the preset movement states, determining that the state change information conforms to the state change information The output control commands corresponding to the preset movement state include:
判断所述第一转动角度是否在预定角度范围,当所述第一转动角度在预定角度范围内时,判断所述第二转动方向是否为第三预设方向或为与第三预设方向相反的第四预设方向,且所述第二转动角度是否在第一预设数值范围内; Determining whether the first rotation angle is within a predetermined angle range, and determining whether the second rotation direction is a third preset direction or opposite to a third preset direction when the first rotation angle is within a predetermined angle range a fourth preset direction, and whether the second rotation angle is within a first preset value range;
当判断出所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第二坐标方向移动第二像素距离,其中所述第二坐标方向垂直于所述第一坐标方向;When it is determined that the second rotation direction is the third preset direction, and the second rotation angle is within the first preset value range, determining that the output control instruction is to move the cursor to the second coordinate direction by moving the second pixel a distance, wherein the second coordinate direction is perpendicular to the first coordinate direction;
当判断出所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第二坐标方向相反的方向移动所述第二像素距离。When it is determined that the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range, determining an output control instruction is to move the cursor toward The second pixel distance is moved in a direction opposite to the second coordinate direction.
可选的,所述将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令的步骤中:Optionally, the state change information is compared with the plurality of preset movement states, and when it is determined that the state change information meets one of the preset movement states, determining that the state change information conforms to the state change information In the step of the output control command corresponding to the preset movement state:
当所述第一转动角度不在预定角度范围内时,判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内;When the first rotation angle is not within the predetermined angle range, determining whether the first rotation direction is a first preset direction or a second preset direction opposite to the first preset direction, and the first rotation Whether the angle is within the first preset value range;
当判断出所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,确定光标的第一坐标分量的移动方向为第一坐标方向,移动距离为第一像素距离;When it is determined that the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determining that the movement direction of the first coordinate component of the cursor is the first coordinate direction, moving The distance is the first pixel distance;
当判断出所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,确定光标的第一坐标分量的移动方向为第一坐标方向相反的方向,移动距离为第一像素距离;Determining movement of the first coordinate component of the cursor when it is determined that the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within the first preset value range The direction is a direction in which the first coordinate direction is opposite, and the moving distance is a first pixel distance;
当判断出所述第二转动方向为第三预设方向,且所述第二转动角度达到第一预设数值范围时,确定光标的第二坐标分量的移动方向为第二坐标方向,移动距离为第二像素距离;When it is determined that the second rotation direction is the third preset direction, and the second rotation angle reaches the first preset value range, determining the moving direction of the second coordinate component of the cursor is the second coordinate direction, and the moving distance Is the second pixel distance;
当判断出所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,确定光标的第二坐标分量的移动方向为第二坐标方向相反的方向,移动距离为第二像素距离;Determining movement of the second coordinate component of the cursor when it is determined that the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range The direction is the opposite direction of the second coordinate direction, and the moving distance is the second pixel distance;
根据确定的所述第一坐标分量的移动方向和所述第二坐标分量的移动方向确定光标的最终移动方向,根据第一坐标分量的移动距离和第二坐标分量的移动距离确定光标的最终移动像素距离,确定出输出控制指令为将光标朝最终移动方向移动最终移动像素距离。 Determining a final moving direction of the cursor according to the determined moving direction of the first coordinate component and a moving direction of the second coordinate component, and determining a final movement of the cursor according to a moving distance of the first coordinate component and a moving distance of the second coordinate component The pixel distance determines that the output control command is to move the cursor to the final moving direction by moving the final moving pixel distance.
可选的,所述方法还包括:Optionally, the method further includes:
显示鼠标按键展示界面;Display mouse button display interface;
根据用户触发所述鼠标按键展示界面得到相应按键指令,向所述显示装置发送所述按键指令,使所述显示装置根据所述按键指令进行操作。And according to the user triggering the mouse button display interface to obtain a corresponding button instruction, sending the button instruction to the display device, so that the display device operates according to the button instruction.
本发明的实施例还提供一种智能终端,所述智能终端与显示装置通过无线连接,所述智能终端包括:The embodiment of the present invention further provides an intelligent terminal, where the smart terminal is connected to the display device by using a wireless connection, and the smart terminal includes:
状态检测模块,设置为检测所述智能终端从第一状态翻转至第二状态时的状态变化信息;a state detecting module, configured to detect state change information when the smart terminal is flipped from the first state to the second state;
指令确定模块,设置为将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令,其中每一个所述预设移动状态对应一个输出控制指令;The command determining module is configured to compare the state change information with the plurality of preset moving states respectively, and when determining that the state change information meets one of the preset moving states, determining that the state change information is consistent with the state change information An output control command corresponding to the preset movement state, wherein each of the preset movement states corresponds to an output control instruction;
第一指令输出模块,设置为向所述显示装置输出输出控制指令,使所述显示装置上的光标根据输出控制指令进行移动。The first command output module is configured to output an output control command to the display device to cause the cursor on the display device to move according to the output control command.
可选的,所述状态检测模块包括:Optionally, the state detection module includes:
第一检测子模块,设置为检测所述智能终端的第一边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第一转动方向和第一转动角度;a first detecting sub-module, configured to detect a rotation direction and a rotation angle when the first edge of the smart terminal is turned from the first state to the second state, to obtain a first rotation direction and a first rotation angle;
第一获取子模块,设置为根据所述第一转动方向和所述第一转动角度获得所述状态变化信息。The first acquisition submodule is configured to obtain the state change information according to the first rotation direction and the first rotation angle.
可选的,所述指令确定模块包括:Optionally, the instruction determining module includes:
第一判断子模块,设置为判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内;The first determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is in the first preset Set the value range;
第一指令子模块,设置为当所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第一坐标方向移动第一像素距离; The first instruction sub-module is configured to: when the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determine that the output control instruction is to move the cursor toward the first Moving the first pixel distance in the coordinate direction;
第二指令子模块,设置为当所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第一坐标方向相反的方向移动所述第一像素距离。a second command sub-module, configured to determine an output when the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within a first preset value range The control command is to move the first pixel distance by moving the cursor in a direction opposite to the first coordinate direction.
可选的,所述状态检测模块还包括:Optionally, the status detection module further includes:
第二检测子模块,设置为检测所述智能终端的第二边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第二转动方向和第二转动角度,其中所述第二边缘垂直于所述第一边缘;a second detecting submodule configured to detect a rotation direction and a rotation angle when the second edge of the smart terminal is turned from the first state to the second state, to obtain a second rotation direction and a second rotation angle, wherein the a second edge perpendicular to the first edge;
第二获取子模块,设置为根据所述第一转动方向、所述第二转动方向、所述第一转动角度和所述第二转动角度获得所述状态变化信息。The second acquisition submodule is configured to obtain the state change information according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
可选的,所述指令确定模块还包括:Optionally, the instruction determining module further includes:
第二判断子模块,设置为判断所述第一转动角度是否在预定角度范围,当所述第一转动角度在预定角度范围内时,判断所述第二转动方向是否为第三预设方向或为与第三预设方向相反的第四预设方向,且所述第二转动角度是否在第一预设数值范围内;a second determining sub-module, configured to determine whether the first rotation angle is within a predetermined angle range, and when the first rotation angle is within a predetermined angle range, determining whether the second rotation direction is a third preset direction or a fourth preset direction opposite to the third preset direction, and the second rotation angle is within a first preset value range;
第三指令子模块,设置为当所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第二坐标方向移动第二像素距离,其中所述第二坐标方向垂直于所述第一坐标方向;a third instruction sub-module, configured to: when the second rotation direction is a third preset direction, and the second rotation angle is within the first preset value range, determining that the output control instruction is to move the cursor toward the second Moving a second pixel distance in a coordinate direction, wherein the second coordinate direction is perpendicular to the first coordinate direction;
第四指令子模块,设置为当所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第二坐标方向相反的方向移动所述第二像素距离。a fourth instruction sub-module, configured to determine an output when the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range The control command is to move the second pixel distance by moving the cursor in a direction opposite to the second coordinate direction.
可选的,所述指令确定模块还包括:Optionally, the instruction determining module further includes:
第三判断子模块,设置为当所述第一转动角度不在预定角度范围内时,判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内;The third determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset opposite to the first preset direction when the first rotation angle is not within a predetermined angle range Direction, and whether the first rotation angle is within a first preset value range;
第五指令子模块,设置为当所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,确定光标的第一坐标分量的移动方向为第一坐标方向,移动距离为第一像素距离; The fifth command sub-module is configured to: when the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determine a movement direction of the first coordinate component of the cursor is a first coordinate direction, the moving distance is a first pixel distance;
第六指令子模块,设置为当所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,确定光标的第一坐标分量的移动方向为第一坐标方向相反的方向,移动距离为第一像素距离;a sixth instruction sub-module, configured to determine a cursor when the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within a first preset value range The moving direction of the first coordinate component is a direction opposite to the first coordinate direction, and the moving distance is a first pixel distance;
第七指令子模块,设置为当所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,确定光标的第二坐标分量的移动方向为第二坐标方向,移动距离为第二像素距离;a seventh command sub-module, configured to determine that a moving direction of the second coordinate component of the cursor is when the second rotation direction is a third preset direction, and the second rotation angle is within the first preset value range a second coordinate direction, the moving distance is a second pixel distance;
第八指令子模块,设置为当所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,确定光标的第二坐标分量的移动方向为第二坐标方向相反的方向,移动距离为第二像素距离;The eighth command sub-module is configured to determine the cursor when the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range The moving direction of the second coordinate component is a direction opposite to the second coordinate direction, and the moving distance is a second pixel distance;
第九指令子模块,设置为根据第一坐标分量的移动距离和第二坐标分量的移动距离确定光标的最终移动像素距离,确定出输出控制指令为将光标朝最终移动方向移动最终移动像素距离。The ninth instruction sub-module is configured to determine a final moving pixel distance of the cursor according to the moving distance of the first coordinate component and the moving distance of the second coordinate component, and determine that the output control instruction is to move the cursor to the final moving pixel distance in the final moving direction.
可选的,所述智能终端还包括:Optionally, the smart terminal further includes:
显示模块,设置为显示鼠标按键展示界面;a display module configured to display a mouse button display interface;
第二指令输出模块,设置为根据用户触发所述鼠标按键展示界面得到相应按键指令,向所述显示装置发送所述按键指令,使所述显示装置根据所述按键指令进行操作。The second instruction output module is configured to: according to the user triggering the mouse button display interface to obtain a corresponding button instruction, send the button instruction to the display device, so that the display device operates according to the button instruction.
本发明实施例的上述技术方案的有益效果如下:The beneficial effects of the above technical solutions of the embodiments of the present invention are as follows:
本发明实施例的上述技术方案通过检测用户操作智能终端翻转的状态变化信息与多个预设移动状态进行比对,确定与其中的一个预设移动状态对应的输出控制指令;再向显示装置输出该输出控制指令,使显示装置上的光标根据该输出控制指令进行移动,使用便利,同时提高了用户操作体验,并且无需另购空中飞鼠等额外装置,节约了用户的使用成本。The foregoing technical solution of the embodiment of the present invention compares the state change information of the user operation of the smart terminal and the plurality of preset movement states, and determines an output control instruction corresponding to one of the preset movement states; and outputs the output control instruction to the display device. The output control command causes the cursor on the display device to move according to the output control command, which is convenient to use, and improves the user operation experience, and does not need to purchase an additional device such as a flying squirrel, thereby saving the user's use cost.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述 BRIEF abstract
图1表示本发明实施例的对显示装置进行鼠标输入的方法的流程框线图;1 is a flow chart showing a method of performing mouse input on a display device according to an embodiment of the present invention;
图2表示本发明实施例的智能终端的结构框图;2 is a block diagram showing the structure of an intelligent terminal according to an embodiment of the present invention;
图3表示本发明一具体实施例的智能手机展示示意图;3 is a schematic diagram showing the display of a smart phone according to an embodiment of the present invention;
图4表示本发明一具体实施例中显示装置上坐标移动位置确定的示意图。Figure 4 is a diagram showing the determination of the coordinate movement position on the display device in an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下面将结合附图及具体实施例进行详细描述。The detailed description will be made below in conjunction with the accompanying drawings and specific embodiments.
本发明实施例针对相关的在操作显示装置时,遥控器装置使用不便,或另购额外操作装置带来额外使用成本增加的问题,提供一种对显示装置进行鼠标输入的方法和智能终端,通过对检测到的用户对智能终端进行操作使得智能终端翻转的状态变化信息与多个预设移动状态进行比对,确定与其中的一个与状态变化信息匹配的预设移动状态对应的输出控制指令;再向显示装置输出该输出控制指令,使显示装置上的光标根据该输出控制指令进行移动,使用便利,同时提高用户操作体验,并且无需另购额外装置,节约了用户的使用成本。The embodiment of the present invention provides a method for injecting mouse input to a display device and an intelligent terminal through the inconvenience of using the remote control device when the display device is operated, or the additional operation device is added to bring additional use cost. Performing, by the detected user, operating the smart terminal, comparing the state change information of the smart terminal to the plurality of preset movement states, and determining an output control instruction corresponding to the preset movement state that matches the state change information; The output control command is output to the display device to move the cursor on the display device according to the output control command, which is convenient to use, and improves the user operation experience, and does not need to purchase an additional device, thereby saving the user's use cost.
本发明实施例所述的智能终端指运行安卓(Android)、IOS等智能操作系统的Android智能手机、Android平板电脑、iPhone、iPad等。The smart terminal according to the embodiment of the present invention refers to an Android smart phone, an Android tablet computer, an iPhone, an iPad, and the like that run an intelligent operating system such as Android (Android) and IOS.
如图1所示为本发明实施例的对显示装置进行鼠标输入的方法的流程框线图,本发明实施例的一种对显示装置进行鼠标输入的方法,应用于智能终端,其中所述显示装置与所述智能终端之间通过无线连接,所述方法包括:FIG. 1 is a flow diagram of a method for performing mouse input on a display device according to an embodiment of the present invention. A method for performing mouse input on a display device according to an embodiment of the present invention is applied to a smart terminal, wherein the display is The device is connected to the smart terminal by using a wireless connection, and the method includes:
步骤101,检测所述智能终端从第一状态翻转至第二状态时的状态变化信息。Step 101: Detect state change information when the smart terminal is flipped from the first state to the second state.
该第一状态和该第二状态可以为智能终端所处的任意一个位置状态,即可以为智能终端处于水平位置、竖直位置或相对水平位置和相对竖直位置之间的任一位置。The first state and the second state may be any one of the location states in which the smart terminal is located, that is, the smart terminal may be in a horizontal position, a vertical position, or any position between a relative horizontal position and a relatively vertical position.
在该步骤中,假想智能终端处在第一状态位置建立有一个空间坐标系, 该空间坐标系以智能终端的触摸屏幕的第一边缘或与第一边缘平行的方向为x轴、以智能终端的触摸屏幕的与第一边缘垂直的第二边缘或与第二边缘平行的方向为y轴,以垂直智能终端的触摸屏幕朝上方向为z轴,通过智能终端在该空间坐标系中的翻转角度检测获取智能终端的第一边缘从第一状态翻转至第二状态时的转动方向和转动角度,获得第一边缘对应的第一转动方向及第一转动角度;然后获得所述状态变化信息。同理,可得到第二边缘从第一状态翻转至第二状态时的转动方向和转动角度,获得对应的第二转动方向及第二转动角度。该第一边缘可以为经预先设定的智能终端的周边边缘中任意一个或者除周边边缘外的任意一个参照线,第二边缘为垂直于第一边缘的周边边缘或除周边边缘外垂直于第一边缘的任意一个参照线。In this step, the virtual intelligent terminal is in a first state position to establish a spatial coordinate system. The spatial coordinate system is a first edge of the touch screen of the smart terminal or a direction parallel to the first edge is an x-axis, a second edge perpendicular to the first edge of the touch screen of the smart terminal, or a direction parallel to the second edge For the y-axis, the touch screen of the vertical smart terminal is the z-axis upward direction, and the rotation of the smart terminal in the spatial coordinate system detects the rotation of the first edge of the smart terminal from the first state to the second state. Direction and rotation angle, obtaining a first rotation direction corresponding to the first edge and a first rotation angle; and then obtaining the state change information. Similarly, the rotation direction and the rotation angle when the second edge is turned from the first state to the second state can be obtained, and the corresponding second rotation direction and the second rotation angle are obtained. The first edge may be any one of the peripheral edges of the preset smart terminal or any reference line other than the peripheral edge, and the second edge is perpendicular to the peripheral edge of the first edge or perpendicular to the peripheral edge Any reference line at one edge.
其中,状态变化信息包括:第一转动方向、第一转动角度;或者,第二转动方向和第二转动角度。The state change information includes: a first rotation direction, a first rotation angle; or a second rotation direction and a second rotation angle.
步骤102,将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令,其中每一个所述预设移动状态对应一个输出控制指令。Step 102: Compare the state change information with a plurality of preset movement states, and when determining that the state change information meets one of the preset movement states, determine a preset movement that matches the state change information. The state corresponds to an output control command, wherein each of the preset movement states corresponds to an output control command.
在步骤102中,判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内;当判断出第一转动方向为第一预设方向(例如,第一边缘相对第一状态时朝上翻转),且所述第一转动角度在第一预设数值范围内时,判断出所述状态变化信息符合预设移动状态中的一个,确定出输出控制指令为将光标朝第一坐标方向移动第一像素距离;当判断出第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,判断出状态变化信息符合预设移动状态中的一个,确定出输出控制指令为将光标朝第一坐标方向相反的方向移动所述第一像素距离。In step 102, it is determined whether the first rotation direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is in a first preset value range. When it is determined that the first rotation direction is the first preset direction (for example, the first edge is turned upward when the first edge is opposite to the first state), and the first rotation angle is within the first preset value range, it is determined The state change information is consistent with one of the preset movement states, and the output control command is determined to move the cursor to the first coordinate direction by the first pixel distance; and when the first rotation direction is determined to be opposite to the first preset direction When the first rotation angle is within the first preset value range, it is determined that the state change information conforms to one of the preset movement states, and the output control command is determined to be opposite to the first coordinate direction. The direction moves the first pixel distance.
当第一转动角度为第一预设数值范围的边界时,认为第一转动角度在第一预设数值范围内,也可以认为第一转动角度不在第一预设数值范围内。When the first rotation angle is the boundary of the first preset value range, it is considered that the first rotation angle is within the first preset value range, and the first rotation angle may be considered not to be within the first preset value range.
这里假定第一状态时智能终端位于水平位置,且第一预设方向为第一边缘相对第一状态时朝上翻转,其对应的输出控制指令中坐标方向为显示装置 中光标朝下移动,则第二预设方向为第一边缘相对第一状态朝下翻转,对应的输出控制指令中坐标方向为显示装置中光标朝上移动。这样,即为当用户翻转智能终端使第一边缘相对水平位置朝上翻转角度a,且角度a在第一预设数值范围内,则输出控制指令为将光标相对初始位置朝下移动a’个像素距离,a’与a所在的第一预设数值范围对应;当用户翻转智能终端使第一边缘相对水平位置朝下翻转角度a,则输出控制指令为将光标相对初始位置朝上移动a’个像素距离。It is assumed here that the smart terminal is in the horizontal position in the first state, and the first preset direction is that the first edge is turned upside down relative to the first state, and the coordinate direction of the corresponding output control command is the display device. When the middle cursor moves downward, the second preset direction is that the first edge is turned downward with respect to the first state, and the coordinate direction of the corresponding output control command is that the cursor moves upward in the display device. In this way, when the user flips the smart terminal so that the first edge is turned upward by an angle a with respect to the horizontal position, and the angle a is within the first preset value range, the output control command is to move the cursor downward relative to the initial position by a' The pixel distance, a' corresponds to the first preset value range in which a is located; when the user flips the smart terminal to flip the first edge relative to the horizontal position downward by an angle a, the output control command is to move the cursor upward relative to the initial position a' Pixel distance.
同理,假定第二转动方向对应的第三预设方向为第二边缘相对第一状态时朝上翻转,其对应的输出控制指令中坐标方向为显示装置中光标朝右移动,与第三预设方向相反的第四预设方向为第二边缘相对第一状态时朝下翻转,其对应的输出控制指令中坐标方向为显示装置中光标朝左移动,则当用户翻转智能终端使第二边缘相对水平位置朝上翻转角度b,且角度b在预设数值范围内,则输出控制指令为将光标相对初始位置朝右移动b’个像素距离,b’与b所在预设数值范围对应;当用户翻转智能终端使第二边缘相对水平位置朝下翻转角度b,则输出控制指令为将光标相对初始位置朝左移动b’个像素距离。Similarly, it is assumed that the third preset direction corresponding to the second rotation direction is that the second edge is turned upward relative to the first state, and the coordinate direction of the corresponding output control command is that the cursor moves to the right in the display device, and the third pre- The fourth preset direction opposite to the opposite direction is that the second edge is turned downward with respect to the first state, and the coordinate direction of the corresponding output control command is that the cursor moves to the left in the display device, when the user flips the smart terminal to make the second edge When the relative horizontal position is turned upward by the angle b, and the angle b is within the preset value range, the output control command is to move the cursor to the right relative to the initial position by b' pixel distance, where b' corresponds to the preset numerical range of b; When the user flips the smart terminal so that the second edge flips the angle b downward with respect to the horizontal position, the output control command is to move the cursor to the left by b' pixel distance from the initial position.
步骤103,向所述显示装置输出输出控制指令,使所述显示装置上的光标根据输出控制指令进行移动。Step 103: Output an output control command to the display device, so that the cursor on the display device moves according to the output control command.
在上述实施例中,将显示装置与智能终端之间通过wifi、蓝牙等无线连接方式连接,当用户操作智能终端翻转,则智能终端检测到从第一状态翻转至第二状态时的状态变化信息,并将该状态变化信息与多个预设移动状态进行比对,确定与其中的一个预设移动状态对应的输出控制指令;再向显示装置输出该输出控制指令,使显示装置上的光标根据该输出控制指令进行移动。这样用户通过翻转智能终端使智能终端翻转的状态变化信息符合预设移动状态即可通过对应的输出控制指令操作显示装置上的光标移动,操作简单,且可以给用户带来良好的用户体验。In the above embodiment, the display device and the smart terminal are connected by a wireless connection manner such as wifi or Bluetooth. When the user operates the smart terminal to flip, the smart terminal detects the state change information when the user is turned from the first state to the second state. And comparing the state change information with the plurality of preset movement states, determining an output control instruction corresponding to one of the preset movement states; and outputting the output control instruction to the display device to cause the cursor on the display device to be The output control command moves. In this way, the user can reverse the state change information of the smart terminal by flipping the smart terminal to meet the preset movement state, and can operate the cursor movement on the display device through the corresponding output control instruction, which is simple in operation and can bring a good user experience to the user.
在本发明的另一实施例中,步骤102,检测所述智能终端从第一状态翻转至第二状态时的状态变化信息的步骤还包括:In another embodiment of the present invention, in step 102, the step of detecting state change information when the smart terminal is flipped from the first state to the second state further includes:
检测所述智能终端的第二边缘从所述第一状态翻转至第二状态时的转动 方向和转动角度,获得第二转动方向和第二转动角度,其中所述第二边缘垂直于所述第一边缘;Detecting rotation of the second edge of the smart terminal when flipping from the first state to the second state a direction of rotation and a second angle of rotation, wherein the second edge is perpendicular to the first edge;
根据所述第一转动方向、所述第二转动方向、所述第一转动角度和所述第二转动角度获得所述状态变化信息。The state change information is obtained according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令还包括:And comparing the state change information with the plurality of preset movement states, and determining that the state change information meets one of the preset movement states, and determining the preset movement state corresponding to the state change information The output control instructions also include:
判断所述第一转动角度是否在预定角度范围,当判断出第一转动角度在预定角度范围内时,判断所述第二转动方向是否为第三预设方向或为与第三预设方向相反的第四预设方向,且所述第二转动角度是否在第一预设数值范围内;Determining whether the first rotation angle is within a predetermined angle range, and determining that the second rotation direction is within a predetermined angle range, determining whether the second rotation direction is a third preset direction or opposite to the third preset direction a fourth preset direction, and whether the second rotation angle is within a first preset value range;
当判断出所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,判断出状态变化信息符合预设移动状态中的一个,确定出输出控制指令为将光标朝第二坐标方向移动第二像素距离,其中所述第二坐标方向垂直于所述第一坐标方向;When it is determined that the second rotation direction is the third preset direction, and the second rotation angle is within the first preset value range, determining that the state change information conforms to one of the preset movement states, determining an output Controlling the command to move the cursor to the second coordinate direction in a second coordinate direction, wherein the second coordinate direction is perpendicular to the first coordinate direction;
当判断出第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,判断出状态变化信息符合预设移动状态中的一个,确定出输出控制指令为将光标朝第二坐标方向相反的方向移动所述第二像素距离。When it is determined that the second rotation direction is the fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range, determining that the state change information conforms to the preset movement state And determining that the output control command is to move the second pixel distance by moving the cursor in a direction opposite to the second coordinate direction.
在该实施例中,当检测到智能终端存在翻转时,首先判断智能终端是否为单侧方向发生翻转,如该实施例中检测到第二边缘发生翻转,则判断第一转动角度是否在预设角度范围,该预设角度范围为智能终端翻转设定的允许翻转存在的角度误差范围,即当第一转动角度在预定角度范围内时,智能终端仅存在以第二边缘作为参考的方向上的翻转,这时判断第二边缘翻转的第二转动方向以及第二转动角度;参照前一实施例中的假定的第一状态、每一个预设方向以及翻转角度,当第二转动角度b在第一预设数值范围内时,如果第二转动方向是第三预设方向(例如,第二边缘相对水平位置朝上翻转),确定出与状态变化信息符合的预设移动状态对应的输出控制指令为将光标相对初始位置朝右移动第二像素距离b’;如果第二转动方向是第四预设方向(例 如,第二边缘相对水平位置朝下翻转),确定出与状态变化信息符合的预设移动状态对应的输出控制指令为将光标相对初始位置朝左移动第二像素距离b’。In this embodiment, when it is detected that the smart terminal has a flip, it is first determined whether the smart terminal is flipped in a single direction. If the second edge is detected to be reversed in the embodiment, it is determined whether the first rotation angle is preset. An angle range, which is an angular error range of the smart terminal flip setting that allows the flip to exist, that is, when the first rotation angle is within a predetermined angle range, the smart terminal only has a direction with the second edge as a reference. Inverting, at this time judging the second rotation direction of the second edge inversion and the second rotation angle; referring to the assumed first state, each of the preset directions and the flip angle in the previous embodiment, when the second rotation angle b is in the When the second rotation direction is the third preset direction (for example, the second edge is turned up with respect to the horizontal position), the output control instruction corresponding to the preset movement state corresponding to the state change information is determined. To move the cursor to the right relative to the initial position by a second pixel distance b'; if the second rotation direction is the fourth preset direction (eg, For example, the second edge is flipped downward relative to the horizontal position, and the output control command corresponding to the preset movement state corresponding to the state change information is to move the cursor to the left by a second pixel distance b' relative to the initial position.
当所述第一转动角度不在预定角度范围内时,即智能终端的第一边缘和第二边缘都相对第一状态发生了翻转,判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内;When the first rotation angle is not within the predetermined angle range, that is, the first edge and the second edge of the smart terminal are reversed relative to the first state, determining whether the first rotation direction is the first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is within a first preset value range;
当所述第一转动方向为第一预设方向(例如,第一边缘相对第一状态时朝上翻转),且所述第一转动角度a在第一预设数值范围内时,判断出状态变化信息符合预设移动状态中的一个,确定光标的第一坐标分量的移动方向为朝下,移动距离为第一像素距离a’;Determining the state when the first rotation direction is the first preset direction (for example, the first edge is turned upward when the first edge is opposite to the first state), and the first rotation angle a is within the first preset value range The change information conforms to one of the preset movement states, and determines that the moving direction of the first coordinate component of the cursor is downward, and the moving distance is the first pixel distance a';
当所述第一转动方向为与第一预设方向相反的第二预设方向(例如,第一边缘相对水平位置朝下翻转),且所述第一转动角度a在第一预设数值范围内时,判断出状态变化信息符合预设移动状态中的一个,确定光标的第一坐标分量的移动方向为相对初始位置朝上,移动距离为第一像素距离a’;When the first rotation direction is a second preset direction opposite to the first preset direction (for example, the first edge is turned downward with respect to the horizontal position), and the first rotation angle a is in the first preset value range When it is determined internally, it is determined that the state change information conforms to one of the preset movement states, and the moving direction of the first coordinate component of the cursor is determined to be upward relative to the initial position, and the moving distance is the first pixel distance a';
当所述第二转动方向为第三预设方向(例如,第二边缘相对水平位置朝上翻转),且所述第二转动角度b在第一预设数值范围内时,判断出状态变化信息符合预设移动状态中的一个,确定光标的第二坐标分量的移动方向为相对初始位置朝右,移动距离为第二像素距离b’;Determining the state change information when the second rotation direction is the third preset direction (for example, the second edge is reversed with respect to the horizontal position), and the second rotation angle b is within the first preset value range Corresponding to one of the preset moving states, determining that the moving direction of the second coordinate component of the cursor is opposite to the initial position, and the moving distance is the second pixel distance b';
当所述第二转动方向为与第三预设方向相反的第四预设方向(例如,第二边缘相对水平位置朝下翻转),且所述第二转动角度b在第一预设数值范围内时,判断出状态变化信息符合预设移动状态中的一个,确定光标的第二坐标分量的移动方向为相对初始位置朝左,移动距离为第二像素距离b’;When the second rotation direction is a fourth preset direction opposite to the third preset direction (for example, the second edge is turned downward with respect to the horizontal position), and the second rotation angle b is in the first preset value range When the inner state is determined, the state change information is determined to be one of the preset moving states, and the moving direction of the second coordinate component of the cursor is determined to be relative to the initial position to the left, and the moving distance is the second pixel distance b';
根据第一坐标分量的移动距离和第二坐标分量的移动距离确定光标的最终移动像素距离,确定出输出控制指令为将光标朝最终移动方向移动最终移动像素距离。这里可以采用通过将第一坐标分量和第二坐标分量对应的矢量相加的方式获取光标的最终移动方向及最终移动像素距离。The final moving pixel distance of the cursor is determined according to the moving distance of the first coordinate component and the moving distance of the second coordinate component, and the output control command is determined to move the cursor to the final moving pixel distance in the final moving direction. Here, it is possible to acquire the final moving direction of the cursor and the final moving pixel distance by adding the vectors corresponding to the first coordinate component and the second coordinate component.
其中,光标的第一坐标分量或第二坐标分量可以是任意方向的分量。 Wherein, the first coordinate component or the second coordinate component of the cursor may be a component in an arbitrary direction.
在该实施例中,通过设置预定角度范围,即用户在操作智能终端翻转时允许存在一定的角度误差,使用户在操作时存在可控空间,减少了用户的误操作行为的发生,操作更符合用户体验。In this embodiment, by setting a predetermined angle range, that is, the user allows a certain angular error when the smart terminal is turned over, the user has a controllable space during operation, which reduces the occurrence of the user's misoperation behavior, and the operation is more consistent. user experience.
可选的,本发明上述实施例的所述方法还包括:Optionally, the method of the foregoing embodiment of the present invention further includes:
显示鼠标按键展示界面;Display mouse button display interface;
根据用户触发所述鼠标按键展示界面得到相应按键指令,向所述显示装置发送所述按键指令,使所述显示装置根据所述按键指令进行操作。And according to the user triggering the mouse button display interface to obtain a corresponding button instruction, sending the button instruction to the display device, so that the display device operates according to the button instruction.
用户可以触发鼠标按键展示界面的按键,该按键可以包括鼠标左键、鼠标右键、以及其他一些基于设备需要的控制按键,然后智能终端根据用户触发得到相应按键指令,将该按键指令发送至显示装置,使显示装置根据该按键指令执行相应的指令操作。The user can trigger a button of the mouse button display interface, and the button can include a left mouse button, a right mouse button, and other control buttons based on the needs of the device, and then the smart terminal obtains a corresponding button command according to the user trigger, and sends the button command to the display device. And causing the display device to perform a corresponding instruction operation according to the button instruction.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
如图2所示为本发明实施例的智能终端的结构框图,本发明的实施例还提供一种智能终端,所述智能终端与显示装置通过无线连接,所述智能终端包括:FIG. 2 is a structural block diagram of an intelligent terminal according to an embodiment of the present invention. The embodiment of the present invention further provides an intelligent terminal, where the smart terminal and the display device are connected by using a wireless connection, and the smart terminal includes:
状态检测模块21,设置为检测所述智能终端从第一状态翻转至第二状态时的状态变化信息;The state detecting module 21 is configured to detect state change information when the smart terminal is flipped from the first state to the second state;
指令确定模块22,设置为将所述状态变化信息与多个预设移动状态分别进行比对,当判断出状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的第一输出控制指令,其中每一个预设移动状态对应一个输出控制指令;The command determining module 22 is configured to compare the state change information with the plurality of preset moving states respectively, and when determining that the state change information meets one of the preset moving states, determining the pre-compliance with the state change information Setting a first output control instruction corresponding to the moving state, wherein each preset moving state corresponds to an output control instruction;
第一指令输出模块23,设置为向所述显示装置输出输出控制指令,使所述显示装置上的光标根据输出控制指令进行移动。The first command output module 23 is configured to output an output control command to the display device to cause the cursor on the display device to move according to the output control command.
在上述实施例中,将显示装置与智能终端之间通过wifi、蓝牙等无线连接方式无线连接,当用户操作智能终端翻转,则智能终端的状态检测模块21检测到从第一状态翻转至第二状态时的状态变化信息,指令确定模块22将该状态变化信息与多个预设移动状态进行比对,确定与状态变化信息符合的预 设移动状态对应的输出控制指令;然后由第一指令输出模块23向显示装置输出该输出控制指令,使显示装置上的光标根据该输出控制指令进行移动。这样用户通过翻转智能终端使智能终端翻转的状态变化信息符合预设移动状态即可通过对应的输出控制指令操作显示装置上的光标移动,操作简单,且可以给用户带来良好的用户体验。In the above embodiment, the display device and the smart terminal are wirelessly connected through a wireless connection manner such as wifi or Bluetooth. When the user operates the smart terminal to reverse, the state detecting module 21 of the smart terminal detects that the state is reversed from the first state to the second state. The state change information in the state, the command determining module 22 compares the state change information with a plurality of preset movement states, and determines a pre-compliance with the state change information. An output control command corresponding to the movement state is set; then the first command output module 23 outputs the output control command to the display device to cause the cursor on the display device to move according to the output control command. In this way, the user can reverse the state change information of the smart terminal by flipping the smart terminal to meet the preset movement state, and can operate the cursor movement on the display device through the corresponding output control instruction, which is simple in operation and can bring a good user experience to the user.
可选的,所述状态检测模块21包括:Optionally, the state detecting module 21 includes:
第一检测子模块,设置为检测所述智能终端的第一边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第一转动方向和第一转动角度;a first detecting sub-module, configured to detect a rotation direction and a rotation angle when the first edge of the smart terminal is turned from the first state to the second state, to obtain a first rotation direction and a first rotation angle;
第一获取子模块,设置为根据所述第一转动方向和所述第一转动角度获得所述状态变化信息。The first acquisition submodule is configured to obtain the state change information according to the first rotation direction and the first rotation angle.
可选的,所述指令确定模块22包括:Optionally, the instruction determining module 22 includes:
第一判断子模块,设置为判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内,并在当所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,触发第一指令子模块,以及当所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,触发第二指令子模块;The first determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is in the first preset Setting a value range, and when the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, triggering the first instruction sub-module, and when the first a second instruction sub-module is triggered when a rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within the first preset value range;
第一指令子模块,设置为根据所述第一判断子模块的触发,确定出输出控制指令为将光标朝第一坐标方向移动第一像素距离;The first instruction submodule is configured to determine, according to the triggering of the first determining submodule, that the output control command is to move the cursor to the first coordinate direction by the first pixel distance;
第二指令子模块,设置为根据所述第一判断子模块的触发,确定出输出控制指令为将光标朝第一坐标方向相反的方向移动所述第一像素距离。The second instruction sub-module is configured to determine, according to the trigger of the first determining sub-module, that the output control command is to move the first pixel distance in a direction opposite to the first coordinate direction.
可选的,所述状态检测模块21还包括:Optionally, the state detecting module 21 further includes:
第二检测子模块,设置为检测所述智能终端的第二边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第二转动方向和第二转动角度,其中所述第二边缘垂直于所述第一边缘;a second detecting submodule configured to detect a rotation direction and a rotation angle when the second edge of the smart terminal is turned from the first state to the second state, to obtain a second rotation direction and a second rotation angle, wherein the a second edge perpendicular to the first edge;
第二获取子模块,设置为根据所述第一转动方向、所述第二转动方向、所述第一转动角度和所述第二转动角度获得所述状态变化信息。 The second acquisition submodule is configured to obtain the state change information according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
可选的,所述指令确定模块22还包括:Optionally, the instruction determining module 22 further includes:
第二判断子模块,设置为判断所述第一转动角度是否在预定角度范围,当所述第一转动角度在预定角度范围内时,判断所述第二转动方向是否为第三预设方向或为与第三预设方向相反的第四预设方向,且所述第二转动角度是否在第一预设数值范围内,并在当所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,触发第三指令子模块,以及当所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,触发第四指令子模块;a second determining sub-module, configured to determine whether the first rotation angle is within a predetermined angle range, and when the first rotation angle is within a predetermined angle range, determining whether the second rotation direction is a third preset direction or a fourth preset direction opposite to the third preset direction, and the second rotation angle is within a first preset value range, and when the second rotation direction is a third preset direction, and When the second rotation angle is within the first preset value range, triggering the third instruction sub-module, and when the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second When the rotation angle is within the first preset value range, triggering the fourth instruction sub-module;
第三指令子模块,设置为根据所述第二判断子模块的触发,确定出输出控制指令为将光标朝第二坐标方向移动第二像素距离,其中所述第二坐标方向垂直于所述第一坐标方向;The third instruction sub-module is configured to determine, according to the triggering of the second determining sub-module, that the output control command is to move the cursor to the second coordinate direction by the second pixel distance, wherein the second coordinate direction is perpendicular to the first a coordinate direction;
第四指令子模块,设置为根据所述第二判断子模块的触发,确定出输出控制指令为将光标朝第二坐标方向相反的方向移动所述第二像素距离。The fourth instruction submodule is configured to determine, according to the trigger of the second determining submodule, that the output control command is to move the second pixel distance in a direction opposite to the second coordinate direction.
可选的,所述指令确定模块22还包括:Optionally, the instruction determining module 22 further includes:
第三判断子模块,设置为当所述第一转动角度不在预定角度范围内时,判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内,以及判断所述第二转动方向是否为第三预设方向或为与第三预设方向相反的第四预设方向,且所述第二转动角度是否在第一预设数值范围内,并在当所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,触发第五指令子模块,在当所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,触发第六指令子模块,在当所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,触发第七指令子模块,以及当所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,触发第八指令子模块;The third determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset opposite to the first preset direction when the first rotation angle is not within a predetermined angle range a direction, and whether the first rotation angle is within a first preset value range, and determining whether the second rotation direction is a third preset direction or a fourth preset direction opposite to the third preset direction, And whether the second rotation angle is within a first preset value range, and when the first rotation direction is a first preset direction, and the first rotation angle is within a first preset value range, Triggering the fifth instruction sub-module, when the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within the first preset value range, triggering the sixth The command sub-module triggers the seventh command sub-module when the second rotation direction is the third preset direction, and the second rotation angle is within the first preset value range, and when the second rotation The direction is opposite to the third preset direction Four predetermined direction, and the second rotation angle is within a first predetermined range of values, to trigger an eighth sub-module command;
第五指令子模块,设置为根据所述第三判断子模块的触发,确定光标的第一坐标分量的移动方向为第一坐标方向,移动距离为第一像素距离; The fifth instruction sub-module is configured to determine, according to the triggering of the third determining sub-module, that the moving direction of the first coordinate component of the cursor is the first coordinate direction, and the moving distance is the first pixel distance;
第六指令子模块,设置为根据所述第三判断子模块的触发,确定光标的第一坐标分量的移动方向为第一坐标方向相反的方向,移动距离为第一像素距离;The sixth instruction sub-module is configured to determine, according to the triggering of the third determining sub-module, that the moving direction of the first coordinate component of the cursor is a direction opposite to the first coordinate direction, and the moving distance is a first pixel distance;
第七指令子模块,设置为根据所述第三判断子模块的触发,确定光标的第二坐标分量的移动方向为第二坐标方向,移动距离为第二像素距离;The seventh instruction sub-module is configured to determine, according to the triggering of the third determining sub-module, that the moving direction of the second coordinate component of the cursor is the second coordinate direction, and the moving distance is the second pixel distance;
第八指令子模块,设置为根据所述第三判断子模块的触发,确定光标的第二坐标分量的移动方向为第二坐标方向相反的方向,移动距离为第二像素距离;The eighth instruction sub-module is configured to determine, according to the triggering of the third determining sub-module, that the moving direction of the second coordinate component of the cursor is a direction opposite to the second coordinate direction, and the moving distance is a second pixel distance;
第九指令子模块,设置为根据第一坐标分量的移动距离和第二坐标分量的移动距离确定光标的最终移动像素距离,确定出输出控制指令为将光标朝最终移动方向移动最终移动像素距离。The ninth instruction sub-module is configured to determine a final moving pixel distance of the cursor according to the moving distance of the first coordinate component and the moving distance of the second coordinate component, and determine that the output control instruction is to move the cursor to the final moving pixel distance in the final moving direction.
较佳的,所述智能终端还包括:Preferably, the smart terminal further includes:
显示模块,设置为显示鼠标按键展示界面;a display module configured to display a mouse button display interface;
第二指令输出模块,设置为根据用户触发所述鼠标按键展示界面得到相应按键指令,向所述显示装置发送所述按键指令,使所述显示装置根据所述按键指令进行操作。The second instruction output module is configured to: according to the user triggering the mouse button display interface to obtain a corresponding button instruction, send the button instruction to the display device, so that the display device operates according to the button instruction.
为使本发明实施例更具体详细,本发明提供一具体实施例示例,如图3所示的本发明一具体实施例的智能手机展示示意图,以Android系统的智能手机作为本发明实施例的智能终端。在该具体实施例的智能手机中,状态检测模块包括方向传感器,第一指令输出模块和第二指令输出模块包括定时器,且为方便描述,以方向传感器作为状态检测模块的执行主体,以定时器作为第一指令输出模块和第二指令输出模块的执行主体;定时器会定时(高频率)或当接受到按键指令、以及接收到输出控制指令时向显示装置的服务端软件发送相关指令。In order to make the embodiment of the present invention more specific and detailed, the present invention provides an example of a specific embodiment, as shown in FIG. 3, a schematic diagram of a smart phone display according to an embodiment of the present invention, and a smart phone of an Android system is used as an intelligent embodiment of the present invention. terminal. In the smartphone of the specific embodiment, the state detecting module includes a direction sensor, and the first command output module and the second command output module include a timer, and for convenience of description, the direction sensor is used as an execution body of the state detecting module to time The device acts as an execution body of the first instruction output module and the second instruction output module; the timer sends a relevant instruction to the server software of the display device when timing (high frequency) or when receiving the button command and receiving the output control command.
在该具体实施例中,智能手机预先通过wifi与显示装置上服务端软件建立连接,在智能手机的触摸屏幕(显示模块设置于触摸屏幕)上显示有鼠标按键展示界面,如图3所示意的左键和右键的按键展示,用户可通过点击该左键和右键的按键,进而使智能终端获取相应按键指令,并通过定时器传输 至显示装置,使显示装置上根据左右键指令执行相应操作。智能手机初始位置为置于水平位置,触摸屏幕朝上,即第一状态为水平,假定图3所示的智能手机置于水平位置;并且以图3中所示意的智能手机的下边缘作为第一边缘,以图3中示意的智能手机的左边缘作为第二边缘;同时假想智能手机处在第一状态,即本具体实施例中位于水平位置时,存在一空间坐标系,分别以平行于第一边缘的轴心为y轴,以平行于第二边缘的轴心为x轴,垂直智能手机的触摸屏幕朝上(垂直纸面向上)方向为z轴。In this embodiment, the smart phone establishes a connection with the server software on the display device through wifi in advance, and displays a mouse button display interface on the touch screen of the smart phone (the display module is disposed on the touch screen), as shown in FIG. The left button and the right button are displayed, and the user can click the left button and the right button to enable the smart terminal to obtain the corresponding button command and transmit it through the timer. To the display device, the corresponding operation is performed on the display device according to the left and right key commands. The initial position of the smartphone is placed in a horizontal position, the touch screen is facing upward, that is, the first state is horizontal, and it is assumed that the smartphone shown in FIG. 3 is placed in a horizontal position; and the lower edge of the smartphone illustrated in FIG. 3 is taken as the first An edge, with the left edge of the smartphone illustrated in FIG. 3 as the second edge; and while the imaginary smartphone is in the first state, that is, in the horizontal position in the specific embodiment, there is a spatial coordinate system, which is parallel to The axis of the first edge is the y-axis, the axis parallel to the second edge is the x-axis, and the touch screen of the vertical smartphone is facing upward (the vertical paper faces up) in the z-axis.
当用户仅对智能手机进行单侧翻转或者其中一侧翻转的角度在允许的误差角度范围(预定角度范围)内时,方向传感器检测到单边翻转:当检测智能手机的第一边缘从水平位置向上(即相对纸面向上)翻转角度a,则翻转后的智能手机在x-z坐标系上发生了角度变化,对应的输出控制指令为确定光标朝下移动a’个像素距离,假设a的绝对值在[10,20]范围内,假定[10,20]范围为预设数值范围之一,对应的输出控制指令为确定光标朝下移动5个像素距离;相对的,当检测智能手机的第一边缘从水平位置向下(即相对纸面向下)翻转角度a,对应的输出控制指令为确定光标朝上移动a’个像素距离,同样假设a的绝对值在[10,20]范围内,对应的输出控制指令为确定光标朝上移动5个像素距离;当检测智能手机的第二边缘从水平位置向上(即相对纸面向上)翻转角度b,则翻转后的智能手机在y-z坐标系上发生了角度变化,对应的输出控制指令为确定光标朝右移动b’个像素距离,假设b的绝对值在[10,20]范围内,对应的输出控制指令为确定光标朝右移动5个像素距离;相对的,当检测智能手机的第二边缘从水平位置向下(即相对纸面向下)翻转角度b,则翻转后的智能手机在y-z坐标系上发生了角度变化,对应的输出控制指令为确定光标朝左移动b’个像素距离,假设b的绝对值在[10,20]范围内,对应的输出控制指令为确定光标朝左移动5个像素距离;这时,检查定时器是否开启,未开启则启动定时器,并通过定时器向显示装置发送相应的输出控制指令,使光标作相应移动。When the user only flips the smartphone on one side or the angle at which one side is flipped within the allowable error angle range (predetermined angle range), the direction sensor detects a one-sided flip: when detecting the first edge of the smartphone from the horizontal position If the angle a is turned up (ie, facing the paper face up), the inverted smartphone has an angle change on the xz coordinate system, and the corresponding output control command is to determine that the cursor moves downward by a' pixel distance, assuming the absolute value of a In the range of [10,20], assuming that the [10,20] range is one of the preset value ranges, the corresponding output control command is to determine that the cursor is moving downward by 5 pixels; in contrast, when detecting the first of the smartphone The edge flips the angle a from the horizontal position downward (ie, facing the paper face down), and the corresponding output control command is to determine that the cursor moves upward by a' pixel distance, and also assumes that the absolute value of a is in the range of [10, 20], corresponding to The output control command is to determine that the cursor is moved upward by 5 pixels; when the second edge of the smart phone is detected to be turned upward from the horizontal position (ie, opposite to the paper), the inverted wisdom is The mobile phone has an angular change in the yz coordinate system, and the corresponding output control command is to determine that the cursor moves to the right by b' pixel distances, assuming that the absolute value of b is in the range of [10, 20], and the corresponding output control command is the determining cursor. Moving 5 pixels to the right; in contrast, when detecting the second edge of the smartphone from the horizontal position downward (ie, facing the paper facing down), the angle b changes after the inverted smartphone changes in the yz coordinate system. The corresponding output control command is to determine that the cursor moves to the left by b' pixel distances, assuming that the absolute value of b is in the range of [10, 20], and the corresponding output control command is to determine that the cursor is moved 5 pixels to the left; Check whether the timer is turned on, start the timer when it is not turned on, and send a corresponding output control command to the display device through the timer to make the cursor move accordingly.
当用户对智能手机在两个参考方向上同时进行翻转,且两侧翻转的角度都不在允许的误差角度范围(预定角度范围)内,假设检测智能手机的第一边缘从水平位置向下(即相对纸面向下)翻转角度a,检测智能手机的第二边 缘从水平位置向上(即相对纸面向上)翻转角度b,对应的输出控制指令为光标的第一坐标分量为光标朝上移动a’个像素距离,第二坐标分量为光标朝右移动b’个像素距离,则如图4所示的,光标的最终移动方向和移动的像素距离根据第一坐标分量和所述第二坐标分量确定。另外,当智能手机在两个参考方向或其中一个方向上有一定翻转,但翻转角度在误差角度范围(预定角度范围)内,此时仍判定智能手机处在水平位置(第一状态),光标不发生移动。When the user flips the smartphone in two reference directions at the same time, and the angles of the two sides are not within the allowable error angle range (predetermined angle range), it is assumed that the first edge of the detected smartphone is from the horizontal position (ie, Detecting the second side of the smartphone by flipping the angle a relative to the paper facing down The angle is upward from the horizontal position (ie, opposite to the paper surface), and the corresponding output control command is that the first coordinate component of the cursor moves the cursor upward by a' pixel distance, and the second coordinate component moves the cursor to the right b' For the pixel distance, as shown in FIG. 4, the final moving direction of the cursor and the moving pixel distance are determined according to the first coordinate component and the second coordinate component. In addition, when the smartphone has a certain flip in two reference directions or one of the directions, but the flip angle is within the error angle range (predetermined angle range), it is still determined that the smartphone is in the horizontal position (first state), the cursor No movement occurs.
当智能手机的翻转角度越大,光标移动地就越快,并且翻转角度处于越大的预设数值范围内,对应的光标移动像素距离越大;同时光标的移动像素距离值的划分大小参考显示装置的屏幕自动设置,即智能手机同样的翻转角度,显示装置的屏幕越大,光标相应的移动像素距离值越大,显示装置的屏幕大小可以在智能手机(智能终端)与显示装置服务端软件连接后从服务端软件获取。When the flip angle of the smartphone is larger, the cursor moves faster, and the flip angle is within a larger preset value range, and the corresponding cursor moving pixel distance is larger; and the moving pixel distance value of the cursor is divided and displayed. The screen of the device is automatically set, that is, the same flip angle of the smart phone. The larger the screen of the display device is, the larger the distance value of the corresponding moving pixel of the cursor is, and the screen size of the display device can be in the smart phone (smart terminal) and the display device server software. Obtained from the server software after connection.
需要说明的是,在上述具体实施例中,选取智能手机置于水平位置为第一状态仅出于方便对实施例的描述,并非对本发明中智能终端的第一状态的位置设置进行限定。It should be noted that, in the above specific embodiment, the selection of the smart phone in the horizontal position is the first state for the convenience of the description of the embodiment, and the location setting of the first state of the smart terminal in the present invention is not limited.
本发明的上述实施例,用户通过翻转智能终端使智能终端翻转的状态变化信息符合预设移动状态即可通过对应的输出控制指令操作显示装置上的光标移动,操作简单,且可以给用户带来良好的用户体验。In the above embodiment of the present invention, the user can perform the cursor movement on the display device through the corresponding output control command by inverting the smart terminal to make the state change information of the smart terminal inversion conform to the preset movement state, and the operation is simple and can be brought to the user. Good user experience.
在本发明的描述中,光标移动中使用的“左”“右”“上”“下”等术语的仅是为方便描述本实施例而作的光标相对其初始位置的方位描述,并非对本发明相应技术方案的限制。除此之外,在本发明实施例中第一边缘和第二边缘的选取、坐标设定等所描述使用的“上”“下”“左”术语,以及对于智能手机翻转方向描述中使用的“向上”“向下”术语为基于附图所示的方位或位置关系,并非对本发明中具有特定的方位或以特定方位构造和操作,不能理解为对本发明保护范围的限制。In the description of the present invention, the terms "left", "right", "upper", "lower" and the like used in the movement of the cursor are merely descriptions of the orientation of the cursor relative to its initial position for convenience of describing the present embodiment, and are not intended to be the present invention. The limitations of the corresponding technical solutions. In addition, in the embodiment of the present invention, the selection of the first edge and the second edge, the coordinate setting, and the like are described using the terms "upper", "down", and "left", and the description used in the description of the flip direction of the smartphone. The terms "upward" and "downward" are used to refer to the orientation or positional relationship shown in the drawings, and are not intended to be a particular orientation or a particular orientation of the invention, and are not to be construed as limiting the scope of the invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储 介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储与存储器中的程序/指令来实现其相应功能。本发明不限于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or part of the steps in the above methods may be performed by a program to instruct related hardware, such as a processor, which may be stored in computer readable storage. In media, such as read-only memory, disk or optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
工业实用性Industrial applicability
上述技术方案提高了用户操作体验,节约了用户的使用成本。 The above technical solution improves the user operation experience and saves the user's use cost.

Claims (14)

  1. 一种对显示装置进行鼠标输入的方法,应用于智能终端,其中所述显示装置与所述智能终端之间通过无线连接,所述方法包括:A method for performing mouse input on a display device is applied to a smart terminal, wherein the display device and the smart terminal are connected by using a wireless connection, and the method includes:
    检测所述智能终端从第一状态翻转至第二状态时的状态变化信息;Detecting state change information when the smart terminal is flipped from the first state to the second state;
    将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令,其中每一个所述预设移动状态对应一个输出控制指令;And comparing the state change information with the plurality of preset movement states, and determining that the state change information meets one of the preset movement states, and determining the preset movement state corresponding to the state change information Outputting a control instruction, wherein each of the preset movement states corresponds to an output control instruction;
    向所述显示装置输出输出控制指令,使所述显示装置上的光标根据输出控制指令进行移动。An output control command is output to the display device to cause the cursor on the display device to move according to the output control command.
  2. 如权利要求1所述的方法,其中,所述检测所述智能终端从第一状态翻转至第二状态时的状态变化信息的步骤包括:The method of claim 1, wherein the detecting the state change information when the smart terminal is flipped from the first state to the second state comprises:
    检测所述智能终端的第一边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第一转动方向和第一转动角度;Detecting a rotation direction and a rotation angle when the first edge of the smart terminal is turned from the first state to the second state, to obtain a first rotation direction and a first rotation angle;
    根据所述第一转动方向和所述第一转动角度获得所述状态变化信息。The state change information is obtained according to the first rotation direction and the first rotation angle.
  3. 如权利要求2所述的方法,其中,所述将所述状态变化信息与多个预设移动状态分别进行比对包括:The method of claim 2, wherein the comparing the state change information with the plurality of preset movement states respectively comprises:
    判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内;Determining whether the first rotation direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is within a first preset value range;
    所述判断出状态变化信息符合预设移动状态中的一个包括:The determining that the state change information conforms to one of the preset moving states includes:
    当判断出所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,判断出所述状态变化信息符合预设移动状态中的一个;When it is determined that the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determining that the state change information conforms to one of the preset movement states;
    所述确定与与状态变化信息符合的预设移动状态对应的输出控制指令包括:The output control instruction corresponding to the preset movement state that is consistent with the state change information includes:
    确定出输出控制指令为将光标朝第一坐标方向移动第一像素距离;Determining that the output control instruction is to move the cursor by the first pixel distance in the first coordinate direction;
    或者, Or,
    所述判断出状态变化信息符合预设移动状态中的一个包括:The determining that the state change information conforms to one of the preset moving states includes:
    判断出所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,判断出所述状态变化信息符合预设移动状态中的一个;Determining that the first rotation direction is a second preset direction opposite to the first preset direction, and when the first rotation angle is within the first preset value range, determining that the state change information conforms to the preset One of the moving states;
    所述确定与与状态变化信息符合的预设移动状态对应的输出控制指令包括:确定出输出控制指令为将光标朝第一坐标方向相反的方向移动所述第一像素距离。The determining, by the output control instruction corresponding to the preset movement state that is consistent with the state change information, determining that the output control instruction is to move the first pixel distance in a direction opposite to the first coordinate direction.
  4. 如权利要求2所述的方法,所述检测所述智能终端从第一状态翻转至第二状态时的状态变化信息的步骤还包括:The method of claim 2, the step of detecting state change information when the smart terminal is flipped from the first state to the second state further comprises:
    检测所述智能终端的第二边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第二转动方向和第二转动角度,其中所述第二边缘垂直于所述第一边缘;Detecting a rotation direction and a rotation angle when the second edge of the smart terminal is flipped from the first state to the second state, obtaining a second rotation direction and a second rotation angle, wherein the second edge is perpendicular to the first An edge
    根据所述第一转动方向、所述第二转动方向、所述第一转动角度和所述第二转动角度获得所述状态变化信息。The state change information is obtained according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
  5. 如权利要求4所述的方法,其中,所述将所述状态变化信息与多个预设移动状态分别进行比对包括:The method of claim 4, wherein the comparing the state change information with the plurality of preset movement states respectively comprises:
    判断所述第一转动角度是否在预定角度范围,当所述第一转动角度在预定角度范围内时,判断所述第二转动方向是否为第三预设方向或为与第三预设方向相反的第四预设方向,且所述第二转动角度是否在第一预设数值范围内;Determining whether the first rotation angle is within a predetermined angle range, and determining whether the second rotation direction is a third preset direction or opposite to a third preset direction when the first rotation angle is within a predetermined angle range a fourth preset direction, and whether the second rotation angle is within a first preset value range;
    所述判断出所述状态变化信息符合预设移动状态中的一个包括:The determining that the state change information conforms to one of the preset moving states includes:
    判断出所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内;Determining that the second rotation direction is a third preset direction, and the second rotation angle is within a first preset value range;
    所述确定与与状态变化信息符合的预设移动状态对应的输出控制指令包括:确定出所述输出控制指令为将光标朝第二坐标方向移动第二像素距离,其中,所述第二坐标方向垂直于第一坐标方向;The determining, by the determining, the output control instruction corresponding to the preset movement state that is consistent with the state change information includes: determining that the output control instruction is to move the cursor to the second coordinate direction by a second pixel distance, wherein the second coordinate direction Vertical to the first coordinate direction;
    或者,所述判断出所述状态变化信息符合预设移动状态中的一个包括:Alternatively, the determining that the state change information conforms to one of the preset moving states includes:
    判断出所述第二转动方向为与第三预设方向相反的第四预设方向,且所 述第二转动角度在第一预设数值范围内;Determining that the second rotation direction is a fourth preset direction opposite to the third preset direction, and The second rotation angle is within a first preset value range;
    所述确定与与状态变化信息符合的预设移动状态对应的输出控制指令包括:确定出所述输出控制指令为将光标朝第二坐标方向相反的方向移动所述第二像素距离。The determining, by the output control instruction corresponding to the preset movement state that is consistent with the state change information, determining that the output control instruction is to move the second pixel distance by moving the cursor in a direction opposite to the second coordinate direction.
  6. 如权利要求5所述的方法,其中,所述将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与状态变化信息符合的预设移动状态对应的输出控制指令还包括:The method according to claim 5, wherein the comparing the state change information with the plurality of preset movement states, and determining that the state change information conforms to one of the preset movement states, determining The output control instruction corresponding to the preset movement state that is consistent with the state change information further includes:
    当所述第一转动角度不在预定角度范围内时,判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否达到第一预设数值范围;When the first rotation angle is not within the predetermined angle range, determining whether the first rotation direction is a first preset direction or a second preset direction opposite to the first preset direction, and the first rotation Whether the angle reaches the first preset value range;
    当判断出所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,确定光标的第一坐标分量的移动方向为第一坐标方向,移动距离为第一像素距离;When it is determined that the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determining that the movement direction of the first coordinate component of the cursor is the first coordinate direction, moving The distance is the first pixel distance;
    当判断出所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度装置第一预设数值范围内时,确定光标的第一坐标分量的移动方向为第一坐标方向相反的方向,移动距离为第一像素距离;Determining movement of the first coordinate component of the cursor when it is determined that the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle device is within the first preset value range The direction is a direction in which the first coordinate direction is opposite, and the moving distance is a first pixel distance;
    当判断出所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,确定光标的第二坐标分量的移动方向为第二坐标方向,移动距离为第二像素距离;When it is determined that the second rotation direction is the third preset direction, and the second rotation angle is within the first preset value range, determining that the moving direction of the second coordinate component of the cursor is the second coordinate direction, moving The distance is the second pixel distance;
    当判断出所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,确定光标的第二坐标分量的移动方向为第二坐标方向相反的方向,移动距离为第二像素距离;Determining movement of the second coordinate component of the cursor when it is determined that the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range The direction is the opposite direction of the second coordinate direction, and the moving distance is the second pixel distance;
    根据第一坐标分量的移动距离和第二坐标分量的移动距离确定光标的最终移动像素距离,确定出输出控制指令为将光标朝最终移动方向移动最终移动像素距离。The final moving pixel distance of the cursor is determined according to the moving distance of the first coordinate component and the moving distance of the second coordinate component, and the output control command is determined to move the cursor to the final moving pixel distance in the final moving direction.
  7. 如权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    显示鼠标按键展示界面; Display mouse button display interface;
    根据用户触发所述鼠标按键展示界面得到相应按键指令,向所述显示装置发送所述按键指令,使所述显示装置根据所述按键指令进行操作。And according to the user triggering the mouse button display interface to obtain a corresponding button instruction, sending the button instruction to the display device, so that the display device operates according to the button instruction.
  8. 一种智能终端,所述智能终端与显示装置通过无线连接,所述智能终端包括:An intelligent terminal, the smart terminal and the display device are connected by using a wireless device, and the smart terminal includes:
    状态检测模块,设置为检测所述智能终端从第一状态翻转至第二状态时的状态变化信息;a state detecting module, configured to detect state change information when the smart terminal is flipped from the first state to the second state;
    指令确定模块,设置为将所述状态变化信息与多个预设移动状态分别进行比对,当判断出所述状态变化信息符合预设移动状态中的一个时,确定与与所述状态变化信息符合的预设移动状态对应的输出控制指令,其中每一个所述预设移动状态对应一个输出控制指令;The command determining module is configured to compare the state change information with the plurality of preset moving states, and determine that the state change information meets the state change information when determining that the state change information meets one of the preset moving states The output control command corresponding to the preset preset movement state, wherein each of the preset movement states corresponds to an output control instruction;
    第一指令输出模块,设置为向所述显示装置输出所述输出控制指令,使所述显示装置上的光标根据所述输出控制指令进行移动。The first command output module is configured to output the output control command to the display device to cause the cursor on the display device to move according to the output control command.
  9. 如权利要求8所述的智能终端,其中,所述状态检测模块包括:The intelligent terminal of claim 8, wherein the state detecting module comprises:
    第一检测子模块,设置为检测所述智能终端的第一边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第一转动方向和第一转动角度;a first detecting sub-module, configured to detect a rotation direction and a rotation angle when the first edge of the smart terminal is turned from the first state to the second state, to obtain a first rotation direction and a first rotation angle;
    第一获取子模块,设置为根据所述第一转动方向和所述第一转动角度获得所述状态变化信息。The first acquisition submodule is configured to obtain the state change information according to the first rotation direction and the first rotation angle.
  10. 如权利要求9所述的智能终端,其中,所述指令确定模块包括:The intelligent terminal of claim 9, wherein the instruction determining module comprises:
    第一判断子模块,设置为判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否在第一预设数值范围内;The first determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset direction opposite to the first preset direction, and whether the first rotation angle is in the first preset Set the value range;
    第一指令子模块,设置为当所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,确定出输出控制指令为将光标朝第一坐标方向移动第一像素距离;The first instruction sub-module is configured to: when the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determine that the output control instruction is to move the cursor toward the first Moving the first pixel distance in the coordinate direction;
    第二指令子模块,设置为当所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围内时,确定出所述输出控制指令为将光标朝第一坐标方向相反的方向移动所述第一像素距离。 a second instruction sub-module, configured to determine the location when the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is within the first preset value range The output control command is to move the first pixel distance by moving the cursor in a direction opposite to the first coordinate direction.
  11. 如权利要求9或10所述的智能终端,所述状态检测模块还包括:The smart terminal according to claim 9 or 10, wherein the state detecting module further comprises:
    第二检测子模块,设置为检测所述智能终端的第二边缘从所述第一状态翻转至第二状态时的转动方向和转动角度,获得第二转动方向和第二转动角度,其中所述第二边缘垂直于所述第一边缘;a second detecting submodule configured to detect a rotation direction and a rotation angle when the second edge of the smart terminal is turned from the first state to the second state, to obtain a second rotation direction and a second rotation angle, wherein the a second edge perpendicular to the first edge;
    第二获取子模块,设置为根据所述第一转动方向、所述第二转动方向、所述第一转动角度和所述第二转动角度获得所述状态变化信息。The second acquisition submodule is configured to obtain the state change information according to the first rotation direction, the second rotation direction, the first rotation angle, and the second rotation angle.
  12. 如权利要求11所述的智能终端,所述指令确定模块还包括:The intelligent terminal of claim 11, the instruction determining module further comprising:
    第二判断子模块,设置为判断所述第一转动角度是否在预定角度范围,当所述第一转动角度在预定角度范围内时,判断所述第二转动方向是否为第三预设方向或为与第三预设方向相反的第四预设方向,且所述第二转动角度是否在第一预设数值范围内;a second determining sub-module, configured to determine whether the first rotation angle is within a predetermined angle range, and when the first rotation angle is within a predetermined angle range, determining whether the second rotation direction is a third preset direction or a fourth preset direction opposite to the third preset direction, and the second rotation angle is within a first preset value range;
    第三指令子模块,设置为当所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,确定出所述输出控制指令为将光标朝第二坐标方向移动第二像素距离,其中所述第二坐标方向垂直于第一坐标方向;a third instruction sub-module, configured to: when the second rotation direction is a third preset direction, and the second rotation angle is within a first preset value range, determining that the output control instruction is to move the cursor toward Moving a second pixel distance in a second coordinate direction, wherein the second coordinate direction is perpendicular to the first coordinate direction;
    第四指令子模块,设置为当所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,确定出第一输出控制指令为将光标朝第二坐标方向相反的方向移动所述第二像素距离。a fourth instruction sub-module, configured to determine that when the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range An output control command is to move the second pixel distance by moving the cursor in a direction opposite to the second coordinate direction.
  13. 如权利要求12所述的智能终端,所述指令确定模块还包括:The intelligent terminal of claim 12, the instruction determining module further comprising:
    第三判断子模块,设置为当所述第一转动角度不在预定角度范围内时,判断所述第一转动方向是否为第一预设方向或为与第一预设方向相反的第二预设方向,且所述第一转动角度是否达到第一预设数值范围;The third determining sub-module is configured to determine whether the first rotating direction is a first preset direction or a second preset opposite to the first preset direction when the first rotation angle is not within a predetermined angle range a direction, and whether the first rotation angle reaches a first preset value range;
    第五指令子模块,设置为当所述第一转动方向为第一预设方向,且所述第一转动角度在第一预设数值范围内时,确定光标的第一坐标分量的移动方向为第一坐标方向,移动距离为第一像素距离;The fifth command sub-module is configured to: when the first rotation direction is the first preset direction, and the first rotation angle is within the first preset value range, determine a movement direction of the first coordinate component of the cursor is a first coordinate direction, the moving distance is a first pixel distance;
    第六指令子模块,设置为当所述第一转动方向为与第一预设方向相反的第二预设方向,且所述第一转动角度在第一预设数值范围时时,确定光标的第一坐标分量的移动方向为第一坐标方向相反的方向,移动距离为第一像素 距离;a sixth command sub-module, configured to determine a cursor position when the first rotation direction is a second preset direction opposite to the first preset direction, and the first rotation angle is in a first preset value range The moving direction of a coordinate component is the opposite direction of the first coordinate direction, and the moving distance is the first pixel distance;
    第七指令子模块,设置为当所述第二转动方向为第三预设方向,且所述第二转动角度在第一预设数值范围内时,确定光标的第二坐标分量的移动方向为第二坐标方向,移动距离为第二像素距离;a seventh command sub-module, configured to determine that a moving direction of the second coordinate component of the cursor is when the second rotation direction is a third preset direction, and the second rotation angle is within the first preset value range a second coordinate direction, the moving distance is a second pixel distance;
    第八指令子模块,设置为当所述第二转动方向为与第三预设方向相反的第四预设方向,且所述第二转动角度在第一预设数值范围内时,确定光标的第二坐标分量的移动方向为第二坐标方向相反的方向,移动距离为第二像素距离;The eighth command sub-module is configured to determine the cursor when the second rotation direction is a fourth preset direction opposite to the third preset direction, and the second rotation angle is within the first preset value range The moving direction of the second coordinate component is a direction opposite to the second coordinate direction, and the moving distance is a second pixel distance;
    第九指令子模块,设置为根据第一坐标分量的移动距离和第二坐标分量的移动距离确定光标的最终移动像素距离,确定出输出控制指令为将光标朝最终移动方向移动最终移动像素距离。The ninth instruction sub-module is configured to determine a final moving pixel distance of the cursor according to the moving distance of the first coordinate component and the moving distance of the second coordinate component, and determine that the output control instruction is to move the cursor to the final moving pixel distance in the final moving direction.
  14. 如权利要求8所述的智能终端,所述智能终端还包括:The smart terminal of claim 8, the smart terminal further comprising:
    显示模块,设置为显示鼠标按键展示界面;a display module configured to display a mouse button display interface;
    第二指令输出模块,设置为根据用户触发所述鼠标按键展示界面得到相应按键指令,向所述显示装置发送所述按键指令,使所述显示装置根据所述按键指令进行操作。 The second instruction output module is configured to: according to the user triggering the mouse button display interface to obtain a corresponding button instruction, send the button instruction to the display device, so that the display device operates according to the button instruction.
PCT/CN2016/084167 2015-09-21 2016-05-31 Method and intelligent terminal for performing mouse input on display apparatus WO2017049947A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510603695.7 2015-09-21
CN201510603695.7A CN106557184A (en) 2015-09-21 2015-09-21 A kind of method and intelligent terminal that mouse input is carried out to display device

Publications (1)

Publication Number Publication Date
WO2017049947A1 true WO2017049947A1 (en) 2017-03-30

Family

ID=58385811

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084167 WO2017049947A1 (en) 2015-09-21 2016-05-31 Method and intelligent terminal for performing mouse input on display apparatus

Country Status (2)

Country Link
CN (1) CN106557184A (en)
WO (1) WO2017049947A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234760B (en) * 2017-12-28 2020-12-15 湖南塔澳通信有限公司 Motion gesture recognition method, mobile terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034447A (en) * 2012-12-14 2013-04-10 深圳市夏瑞电子有限公司 Method for controlling remote device by simulating mouse or touch panel and mobile terminal
CN103167338A (en) * 2012-10-09 2013-06-19 深圳市金立通信设备有限公司 System and method for input control of smart television based on mobile terminal
US20130218346A1 (en) * 2007-10-22 2013-08-22 Timothy D. Root Method & apparatus for remotely operating a robotic device linked to a communications network
CN104254011A (en) * 2013-06-28 2014-12-31 中国电信股份有限公司 Set-top box cursor move control method and device and cellphone
CN104298461A (en) * 2014-09-10 2015-01-21 海信集团有限公司 Method for controlling intelligent device through mobile terminal and mobile terminal of method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130218346A1 (en) * 2007-10-22 2013-08-22 Timothy D. Root Method & apparatus for remotely operating a robotic device linked to a communications network
CN103167338A (en) * 2012-10-09 2013-06-19 深圳市金立通信设备有限公司 System and method for input control of smart television based on mobile terminal
CN103034447A (en) * 2012-12-14 2013-04-10 深圳市夏瑞电子有限公司 Method for controlling remote device by simulating mouse or touch panel and mobile terminal
CN104254011A (en) * 2013-06-28 2014-12-31 中国电信股份有限公司 Set-top box cursor move control method and device and cellphone
CN104298461A (en) * 2014-09-10 2015-01-21 海信集团有限公司 Method for controlling intelligent device through mobile terminal and mobile terminal of method

Also Published As

Publication number Publication date
CN106557184A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
AU2020201096B2 (en) Quick screen splitting method, apparatus, and electronic device, display UI, and storage medium
US10122917B2 (en) Systems and methods for capturing images from a lock screen
KR102348947B1 (en) Method and apparatus for controlling display on electronic devices
TWI557637B (en) Method for adjusting screen displaying mode and electronic device
EP3477432B1 (en) Electronic device, input/output apparatus, and use method of input/output apparatus
US9690334B2 (en) Adaptive visual output based on change in distance of a mobile device to a user
KR20160012410A (en) Electronic device and method for controlling output thereof
US9377901B2 (en) Display method, a display control method and electric device
US20140152593A1 (en) Method And System For Operating Portable Devices
US9429987B2 (en) Electronic device capable of rotating display image and display image rotating method thereof
US9678703B2 (en) Information processing method and electronic device thereof
CN107562335B (en) Display area adjusting method and mobile terminal
WO2015131630A1 (en) Replacement method and device for desktop icon
WO2016179912A1 (en) Application program control method and apparatus, and mobile terminal
CN103412720A (en) Method and device for processing touch-control input signals
CN113874828A (en) Electronic device, method, and computer-readable medium for providing screen sharing service through external electronic device
US20140176458A1 (en) Electronic device, control method and storage medium
US20140258923A1 (en) Apparatus and method for displaying screen image
US20150160841A1 (en) Desktop-like device and method for displaying user interface
WO2017049947A1 (en) Method and intelligent terminal for performing mouse input on display apparatus
US20170140508A1 (en) Method, apparatus, and terminal for controlling screen auto-rotation
KR102248741B1 (en) Display appaeatus and control method thereof
TW201430676A (en) System and method for operating pages
US10241659B2 (en) Method and apparatus for adjusting the image display
JP2017049720A (en) Information processing device, electronic apparatus including information processing device control method of information processing device, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16847829

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16847829

Country of ref document: EP

Kind code of ref document: A1