CN104571883B - Information processing method and electronic equipment - Google Patents
Information processing method and electronic equipment Download PDFInfo
- Publication number
- CN104571883B CN104571883B CN201310516890.7A CN201310516890A CN104571883B CN 104571883 B CN104571883 B CN 104571883B CN 201310516890 A CN201310516890 A CN 201310516890A CN 104571883 B CN104571883 B CN 104571883B
- Authority
- CN
- China
- Prior art keywords
- mouse
- motion information
- preset
- posture
- judgment result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 10
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims description 31
- 238000011084 recovery Methods 0.000 claims description 9
- 238000006073 displacement reaction Methods 0.000 claims description 8
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 230000036544 posture Effects 0.000 description 74
- 230000008569 process Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 12
- 230000008859 change Effects 0.000 description 11
- 230000001133 acceleration Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 230000005484 gravity Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 210000004247 hand Anatomy 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
- 210000000707 wrist Anatomy 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses an information processing method and electronic equipment, wherein the information processing method is applied to the electronic equipment and comprises the following steps: obtaining motion information of a mouse connected with the electronic equipment; judging whether the motion information meets a preset condition or not, and obtaining a first judgment result; and when the first judgment result shows that the motion information meets the preset condition, adjusting the current working state of the electronic equipment to be a non-working state. Through the technical scheme, when the electronic equipment judges that the motion information of the mouse meets the preset condition, the electronic equipment is adjusted from the current working state to the non-working state, and therefore the combination keys on the keyboard do not need to be operated simultaneously, so that the technical problem that the operation speed is low when the electronic equipment is adjusted in the running state in the prior art is solved, and the beneficial effect of improving the operation speed is further achieved.
Description
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an information processing method and an electronic device.
Background
With the continuous development of scientific technology, the chip platform capability of the electronic device is continuously enhanced, the provided functions are more and more, such as standby, screen capture, timing on and off, and the like, and the electronic device also provides a plurality of shortcuts through a keyboard, so that a user can be helped to quickly complete certain operations to realize corresponding functions.
Nowadays, people often adjust the working state of electronic equipment due to sudden departure, electronic equipment failure, debugging requirements and the like in the process of using the electronic equipment. If the electronic equipment needs to be adjusted to the standby state when the electronic equipment is temporarily left, the operation needs to be completed by simultaneously operating a designated key combination such as "ctrl + F12" on the keyboard.
However, in the process of implementing the technical solution in the embodiment of the present application, the inventor of the present application finds that in the prior art, the key combinations on the keyboard are simultaneously operated to adjust the operating state of the electronic device, and needs to search for corresponding keys on the keyboard, such as "ctrl" and "F12", and when the corresponding keys "ctrl" and "F12" are found, two hands are needed to simultaneously press the key combinations "ctrl" and "F12" with a relatively long distance, so that the technical problem of low operation rate exists. Therefore, the technical problem that the operation speed is low when the electronic equipment adjusts the running state in the prior art is solved.
Disclosure of Invention
The embodiment of the invention provides an information processing method and electronic equipment, which are used for solving the technical problem of low operation rate when the electronic equipment adjusts the running state in the prior art.
The embodiment of the application provides an information processing method, which is applied to electronic equipment and comprises the following steps:
obtaining motion information of a mouse connected with the electronic equipment; judging whether the motion information meets a preset condition or not, and obtaining a first judgment result; and when the first judgment result shows that the motion information meets the preset condition, adjusting the current working state of the electronic equipment to be a non-working state.
Optionally, the determining whether the motion information meets a preset condition to obtain a first determination result specifically includes:
obtaining a first posture of the mouse after the mouse moves, wherein the first posture corresponds to the movement information;
when the first posture is different from a second posture of the mouse before movement, judging whether the first posture is a preset posture or not, and obtaining a first judgment result;
when the first posture is the preset posture, the first judgment result shows that the motion information meets the preset condition; and when the first posture is not the preset posture, the first judgment result shows that the motion information does not meet the preset condition.
Optionally, when the mouse is in the preset posture, an angle of a first surface of the mouse relative to a reference surface is greater than a preset angle threshold, wherein a displacement sensor is disposed on the first surface.
Optionally, when the motion information includes a motion trajectory of the mouse during motion, determining whether the motion information satisfies a preset condition to obtain a first determination result, which specifically includes:
judging whether a first graph formed by the motion trail contains a set graph or not, and obtaining a first judgment result;
when a first graph formed by the motion track contains the set graph, the first judgment result shows that the motion information meets the preset condition; and when the first graph formed by the motion trail does not contain the set graph, the first judgment result shows that the motion information does not meet the preset condition.
Optionally, when the motion information includes a maximum height value from a reference plane when the mouse moves, the determining unit determines whether the motion information satisfies a preset condition to obtain a first determination result, and the determining unit specifically includes:
judging whether the maximum height value is larger than a set threshold value or not, and obtaining a first judgment result;
when the maximum height value is larger than the set threshold value, the first judgment result shows that the motion information meets the preset condition; and when the maximum height value is not greater than the set threshold, the first judgment result shows that the motion information does not meet the preset condition.
Optionally, the working state is a non-screen-locking state, and the non-working state is a screen-locking state.
An embodiment of the present application further provides an electronic device, including:
the first acquisition unit is used for acquiring the motion information of a mouse connected with the electronic equipment;
the first judging unit is used for judging whether the motion information meets a preset condition or not and obtaining a first judging result;
and the adjusting unit is used for adjusting the electronic equipment from the current working state to the non-working state when the first judgment result shows that the motion information meets the preset condition.
Optionally, the first determining unit specifically includes:
the first obtaining subunit is configured to obtain a first posture, after the mouse moves, corresponding to the movement information;
the first judgment subunit is used for judging whether the first posture is a preset posture or not when the first posture is different from a second posture before the mouse moves, and obtaining a first judgment result;
when the first posture is the preset posture, the first judgment result shows that the motion information meets the preset condition; and when the first posture is not the preset posture, the first judgment result shows that the motion information does not meet the preset condition.
Optionally, when the mouse is in the preset posture, an angle of a first surface of the mouse relative to a reference surface is greater than a preset angle threshold, wherein a displacement sensor is disposed on the first surface.
Optionally, the first determining unit specifically includes:
the second judging subunit is configured to, when the motion information includes a motion trajectory during the mouse motion, judge whether a first graph formed by the motion trajectory includes a set graph, and obtain a first judgment result;
when a first graph formed by the motion track contains the set graph, the first judgment result shows that the motion information meets the preset condition; and when the first graph formed by the motion trail does not contain the set graph, the first judgment result shows that the motion information does not meet the preset condition.
Optionally, the first determining unit specifically includes:
the third judgment subunit is configured to, when the motion information includes a maximum height value from a reference surface during the movement of the mouse, judge whether the maximum height value is greater than a set threshold value, and obtain a first judgment result;
when the maximum height value is larger than the set threshold value, the first judgment result shows that the motion information meets the preset condition; and when the maximum height value is not greater than the set threshold, the first judgment result shows that the motion information does not meet the preset condition.
Optionally, the working state is a non-screen-locking state, and the non-working state is a screen-locking state.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
1. the method comprises the steps of obtaining motion information of a mouse connected to the electronic equipment, judging whether the motion information of the mouse meets preset conditions or not, adjusting the electronic equipment from a current working state to a non-working state when the motion information of the mouse meets the preset conditions, enabling the electronic equipment to be adjusted from the working state to the non-working state by operating the mouse according to a mode specified by the preset conditions for the purpose, and avoiding the need of simultaneously operating combination keys on a keyboard, so that the technical problem that the operation speed is low when the electronic equipment is adjusted to the working state in the prior art is solved, and the beneficial effect of improving the operation speed is further achieved.
2. The electronic equipment judges whether the motion information of the mouse meets the preset condition through any one of the first posture after the mouse moves, the motion track during the motion and the motion height during the motion, namely, a user can trigger the electronic equipment to be adjusted from a working state to a non-working state through changing the posture of the mouse, changing the height of the mouse or controlling the motion track of the mouse, so that various operation modes are provided for the user, and the user experience is improved.
3. Because the operating condition of electronic equipment can be for not locking the screen state, when electronic equipment judged that the motion information of mouse satisfies the preset condition, the automatic adjustment of the current state of locking the screen is the lock screen state, quick realization lock screen operation promptly has improved the speed of electronic equipment lock screen operation, and the user only need control mouse and then can lock the screen fast in order to satisfy the mode motion of preset condition simultaneously, convenient operation and nature have better user experience.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a change from the second posture to the first posture according to a second embodiment of the present application;
fig. 3 is a schematic diagram illustrating a height change of a mouse during movement according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of a movement trajectory of a mouse according to a fourth embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
In the technical scheme provided by the embodiment of the application, the motion information of the mouse connected with the electronic equipment is obtained, and whether the state of the electronic equipment is adjusted or not is judged according to the motion information of the mouse, so that a user can trigger the electronic equipment to be adjusted from the working state to the non-working state by controlling the mouse to move according to the specified rule, the technical problem that the operation speed is low when the electronic equipment is adjusted to the running state in the prior art is solved, and the operation speed is further improved.
The main implementation principle, the specific implementation mode and the corresponding beneficial effects of the technical scheme of the embodiment of the present application are explained in detail with reference to the accompanying drawings.
Example one
Referring to fig. 1, an embodiment of the present application provides an information processing method applied to an electronic device, where the method includes:
s101: obtaining motion information of a mouse connected with the electronic equipment;
s102: judging whether the motion information meets a preset condition or not, and obtaining a first judgment result;
s103: and when the first judgment result shows that the motion information meets the preset condition, adjusting the current working state of the electronic equipment to be a non-working state.
In a specific implementation process, the electronic device implementing the method may be an electronic device such as a desktop, a notebook, an all-in-one machine, and a smart television, and the electronic device may access a mouse and perform corresponding operations on the electronic device through the mouse. The electronic device may be connected to the mouse by a wire or wirelessly, for example, by bluetooth or other wireless means. The mouse can be a mechanical, optical or photoelectric mouse, and other electronic devices that realize the mouse function, such as a mobile phone and other electronic devices that realize the mouse function. When the electronic device detects the mouse access, S101 is executed to obtain the motion information of the mouse, where the motion information of the mouse is the motion information of the mouse on a reference surface, and the reference surface is a plane on which the mouse is placed, such as a pad surface of a mouse pad, a desktop, and the like. The motion information may include start and stop position information, direction information, motion posture information, such as turning, rotation, etc., of the mouse motion, speed or acceleration information during the mouse motion, height information from a reference surface during the mouse motion, etc. After the electronic device performs S101 to obtain the motion information, the electronic device continues to perform S102.
In S102, in order to distinguish whether the purpose of controlling the mouse movement by the user is to move a cursor or adjust the operating state of the electronic device, the electronic device needs to determine whether the obtained movement information satisfies a preset condition, and obtains a first determination result. If the obtained motion information is acceleration information, the corresponding preset condition is a threshold range of an acceleration value of the designated mouse or a change of the acceleration, including a change of the magnitude and/or direction of the acceleration, when the running state of the electronic device needs to be adjusted. The first judgment result for judging whether the motion information meets the preset condition is as follows: the motion information does not meet the preset condition, the purpose that the user controls the mouse to move at the moment is to move the cursor, and then the electronic equipment correspondingly moves the cursor at the moment; on the contrary, if the motion information satisfies the preset condition, which indicates that the user operates the mouse at this time to adjust the operation state of the electronic device, the process continues to execute S103.
S103: and when the first judgment result shows that the motion information meets the preset condition, adjusting the electronic equipment from the current working state to the non-working state. Specifically, the working state of the electronic device may specifically be a full-function working state in which a computer memory, a display, and peripheral hardware of the electronic device are all powered on and operable, such as a normal use state after a user performs a power-on operation on the computer and the computer is powered on; on the contrary, the non-working state can be a standby state in which the electronic device only maintains the minimum operation of the CPU, the memory and the hard disk; the non-working state can also be a dormant state that the power supply is turned off, the CPU, the memory and the hard disk stop running, but running information before the system exits is stored in the hard disk. Of course, the working state of the electronic device may also be a non-screen-locking state in which the display screen of the electronic device can respond to user input operation at any time and display a corresponding operation interface; correspondingly, the non-working state may be a screen locking state in which the content displayed on the display screen of the electronic device is kept at a certain specified content, and the displayed content is not changeable and/or does not accept input from a mouse, a keyboard and the like of a user before activation.
For example: the preset conditions are as follows: acceleration of mouse motion is more than 0.05m/s2The working state of the electronic equipment is a full-function working state, and the non-working state is a standby state. After the electronic equipment detects that the mouse is connected, S101 is executed to acquire the motion information of the mouse, and the acceleration is 0.08m/S within 2S2Next, the electronic device continues to execute S102 to determine whether the motion information of the mouse satisfies a preset condition: judging that 0.08m/s2Greater than 0.05m/s2And if the first judgment result shows that the motion information of the mouse meets the preset condition and shows that the current running state of the electronic equipment needs to be adjusted, executing S103 to adjust the current full-function working state of the electronic equipment to a standby state.
In a specific implementation process, after the operation state of the electronic device is adjusted to be the non-operation state, in order to facilitate a user to operate the electronic device to recover the operation state, the electronic device obtains motion information of the mouse when being in the non-operation state, judges whether the motion information meets a preset recovery condition, and automatically adjusts the non-operation state to be the operation state when the motion information meets the preset recovery condition. Therefore, the user can switch the running state of the electronic equipment between the working state and the non-working state through the same operation, and the operation is convenient and quick. Moreover, the preset recovery condition can be the same as, similar to or opposite to the preset condition, so that the electronic equipment can recover the working state more conveniently and naturally, the interestingness is achieved, the operation experience of a user is improved, and certainly, the electronic equipment can be adjusted from the non-working state to the working state and can also be triggered by other operations, such as the key on a keyboard is knocked, the power key of the electronic equipment is lightly pressed, and the like.
In the above embodiment, the motion information of the mouse connected to the electronic device is obtained, and whether the motion information of the mouse meets the preset condition is determined, and when the motion information of the mouse meets the preset condition, the electronic device is adjusted from the current working state to the non-working state.
Moreover, when a user operates an electronic device such as a desktop computer, the user often needs to lock a screen quickly, and the user cannot find a shortcut key on a keyboard quickly in an emergency, which causes information leakage or time waste. In the embodiment that the non-working state of the electronic equipment is the screen locking state, the working state of the electronic equipment can be the non-screen locking state, when the electronic equipment judges that the motion information of the mouse meets the preset conditions, the current non-screen locking state is automatically adjusted to be the screen locking state, namely, the screen locking operation is quickly realized, the screen locking operation speed of the electronic equipment is improved, meanwhile, the user only needs to control the mouse to move in a mode of meeting the preset conditions, the screen locking operation can be quickly realized, the operation is convenient and natural, the information leakage is prevented, the user time is saved, and better user experience is achieved.
Example two
The specific implementation process of the present application will be described in detail below by taking as an example the preset condition that "the posture after the mouse moves meets the preset posture", the operating state of the electronic device is the non-screen-locking state, and the non-operating state of the electronic device is the screen-locking state.
The embodiment of the application provides a mouse that embeds there is gravity sensor, can respond to the change of mouse gesture when the motion, and mouse is at the in-process of motion, acquires the motion information of mouse through gravity sensor: the inclination angle of the mouse relative to the horizontal plane before and after the movement is obtained, and the obtained movement information is input into the electronic equipment. After the electronic equipment obtains the motion information of the mouse, the specific steps of judging whether the motion information meets the preset conditions are as follows:
the first step is as follows: and acquiring a first posture of the mouse after the movement corresponding to the movement information. Because the motion information of the mouse comprises the inclination angle of the mouse relative to the horizontal plane in the motion process, the inclination angle of the mouse relative to the horizontal plane at the last moment is obtained from the motion information and is used as the first posture of the mouse. Referring to fig. 2, for example, if the user turns the horizontally-placed mouse 180 degrees, the motion information obtained by the gravity sensor includes an inclination angle of 0 degree with respect to the horizontal plane when the mouse starts to move and an inclination angle of 180 degrees with respect to the horizontal plane after the mouse starts to move.
The second step is that: and when the first posture is different from a second posture of the mouse before movement, judging whether the first posture is a preset posture or not, and obtaining a first judgment result. Specifically, the preset posture is that the angle of the first surface of the mouse relative to the reference surface is larger than a preset angle threshold, wherein the preset angle threshold can be 60 degrees, 90 degrees or other angles, the first surface of the mouse is the surface provided with a displacement sensor or a rolling ball, and the reference surface can be a pad surface or a desktop of a mouse pad. The displacement sensor arranged in the mouse can be a photoelectric sensor and is usually arranged on the surface of the mouse ground opposite to the curved surface where the left mouse button and the right mouse button are arranged. During the use of the mouse, the user usually puts the first surface, i.e. the ground, flat on the mouse pad or the desktop of the computer desk, and the inclination angle with the horizontal plane is usually 0 degree. When a user does not need to use the mouse or needs to adjust the electronic equipment to be in a non-working state, the mouse can be turned over naturally and conveniently to change the posture of the mouse, so that when the first posture of the mouse after movement is different from the second posture of the mouse after movement, whether the first posture is a preset posture or not is judged, and if the first posture is judged, whether the inclination angle between the mouse and the horizontal plane after movement is more than or equal to 90 degrees or not is judged, and a first judgment result is obtained.
When the first posture is the preset posture, the first judgment result shows that the motion information meets the preset condition; and when the first posture is not the preset posture, the first judgment result shows that the motion information does not meet the preset condition. For example: if the mouse horizontally placed in fig. 2 is turned over 180 degrees, the first posture corresponding to the obtained motion information is 180 degrees relative to the horizontal plane, and then it is determined that the 180 degrees are greater than 90 degrees, that is, if the first posture is the preset posture, the obtained first determination result indicates that the motion information of the mouse meets the preset condition, so that the current non-screen-locked state of the electronic device is adjusted to the screen-locked state.
In the specific implementation process, besides the gravity sensor is arranged in the mouse to obtain the motion information representing the posture change of the mouse when the mouse moves, the mouse can detect the posture change of the mouse when the mouse moves through the original photoelectric sensor of the mouse, and the detection of the posture change of the mouse when the mouse moves is not limited to the adoption of the gravity sensor, and a distance sensor, an infrared sensor, an acceleration sensor and the like can also be used.
When the preset posture is the overturning of the mouse, the overturning shaft of the mouse is not limited to the long shaft of the mouse, but also can be the short shaft of the mouse, and meanwhile is not limited to overturning towards one direction, so that the first surface of the mouse can be overturned towards the left, or can be overturned towards the right, forwards or backwards, the overturning action can be one or a plurality of combinations, for example, the first surface is overturned towards the left and then overturned downwards, or the first surface is overturned towards the left and then overturned downwards, and then overturned towards the right, so that the mouse can shake.
In addition, the preset gesture may further include a time for holding the gesture of the mouse, for example, the first side of the mouse is kept facing upward, and after a predetermined time, for example, 0.1s, 1s or 1 minute, it is determined that the preset condition is met, otherwise, it is determined that the preset condition is not met. The maintained posture may be within a certain angle range, for example, 5 degrees, so as to prevent a small change in posture caused by shaking of the user within a certain range from being recognized by mistake, resulting in failure of the preset condition judgment. The technical effect of delaying triggering and adjusting the electronic equipment to be in the non-working state can be obtained by keeping the posture for a certain time as the preset posture, for example, a mouse in the turning state is set to be kept in the preset posture for 30s, the mouse is turned over and placed on a desktop when a user leaves a station, and the electronic equipment adjusts the working state to be in the non-working state after 30s, so that the energy-saving mode is started when the user does not work for a long time, and the energy-saving effect of the electronic equipment is realized. And if the user returns to the station within 30s, the mouse is turned back to the normal state, the mouse can continue to work without being switched to the non-working state and then switched back, and the working efficiency is improved.
Meanwhile, the preset posture is not limited to flipping, and may be tilting, or may be a direction of the mouse, and a change of the direction, such as rotation, or may be a combination of multiple postures, which is not limited herein.
In the above embodiment, when the user turns the mouse over a certain angle, the electronic device may be adjusted from the current working state to the non-working state without searching for a corresponding shortcut key on the keyboard or clicking a related button in the screen display interface by using a mouse cursor. In an emergency, a user cannot easily and mentally find a shortcut key on a keyboard or accurately click a button in a software interface, so that the embodiment provides a faster and more convenient operation mode which accords with the psychological state of the user in the emergency, and the operation experience of the user is improved. Meanwhile, the rotation operation of the mouse can increase the wrist movement of the user, thereby increasing the interest and being helpful for preventing the fatigue of the user and preventing diseases such as 'mouse hands' and the like.
EXAMPLE III
The specific implementation process of the present application will be described in detail below by taking as examples that "the maximum height value from the reference surface during the movement of the mouse is greater than the set threshold value", the operating state of the electronic device is the non-screen-locked state, and the non-operating state of the electronic device is the screen-locked state.
When a sensor for detecting the height of the mouse away from a reference surface (such as a desktop) is installed in the mouse, the maximum height value from the reference surface during movement can be obtained through the mouse when the movement information of the mouse is obtained. The sensor for detecting the height may be an acceleration sensor, an infrared sensor, or the like. Then, when the obtained motion information includes the maximum height value, a specific process of determining whether the motion information satisfies the preset condition is as follows:
after the subsequent motion information, first, it is determined whether the maximum height value from the reference surface during the movement of the mouse included in the motion information is greater than a set threshold value. Specifically, the set threshold may be set by a designer according to the performance of the mouse, and may be set to 2cm, 3cm, 5cm, or the like. Please refer to fig. 3, for example: the method comprises the steps that a user takes a mouse up from a mouse pad, the distance between the mouse and the mouse pad is increased from 0cm to 3cm, then the electronic equipment obtains the maximum height value of the mouse from a reference surface in motion information of the mouse and is 3cm, whether the maximum height value is larger than a set threshold value is further judged, if the set threshold value is 2cm, the maximum height value is judged to be larger than the set threshold value, a first judgment result is obtained, the motion information of the mouse meets a preset condition, and therefore the current non-screen-locking state of the electronic equipment is adjusted to be a screen-locking state; if the set threshold value is 5cm, the maximum height value is judged to be not larger than the set threshold value, and the obtained first judgment result shows that the motion information of the mouse does not meet the preset condition, so that the operation state of the electronic equipment is not adjusted. Therefore, the screen locking operation is triggered by the distance between the mouse and the reference surface, so that the method and the device are convenient and quick, and the use of other functions of the mouse cannot be influenced. In the specific implementation process, when the electronic equipment is in the screen locking state, the motion information of the mouse can be obtained through detection, and when the motion information meets the preset condition, the current screen locking state of the electronic equipment is adjusted to be a non-screen locking state, namely, the user can automatically capture the screen when the user picks up the mouse again to operate the electronic equipment, and the use experience of the user is enhanced.
Example four
The specific implementation process of the present application will be described in detail below by taking as an example that the preset condition is "the movement trajectory does not include the set image when the mouse moves", the operating state of the electronic device is the non-screen-locked state, and the non-operating state of the electronic device is the screen-locked state.
The mouse connected with the electronic equipment maps the displacement information of the mouse controlled by the user to the movement of the mouse pointer in the electronic equipment, so that the electronic equipment can obtain the movement information containing the mouse movement track through the movement track of the mouse pointer.
After the electronic equipment obtains the motion information containing the motion track of the mouse, whether a first graph formed by the motion track of the mouse contains a set graph or not is judged, and a first judgment result is obtained. Specifically, the setting pattern may be a circle, a heart, an ellipse, and the like, and the setting pattern of the present embodiment is set to be an ellipse for the convenience of user operation, i.e., detection of the electronic device. When a first graph formed by the motion track of the mouse contains a set graph, the first judgment result shows that the motion information meets a preset condition; when the first graph formed by the motion track of the mouse does not contain the set graph, the first judgment result shows that the motion information does not meet the preset condition.
Please refer to fig. 4, for example: a user controls a mouse to draw a circle on a mouse pad, so that a mouse pointer on a display screen of the electronic equipment moves correspondingly, and the electronic equipment can obtain the movement track of the mouse pointer to obtain the movement information of the mouse; after the motion information is obtained, whether a first graph formed by the motion track of the mouse contains a set graph or not is judged. As shown in fig. 4, a graph formed by a moving track of a mouse pointer on a display screen includes an ellipse and a triangle with an opening, and at this time, the electronic device correspondingly determines that a first graph formed by the moving track of the mouse includes the ellipse, and then obtains a first determination result indicating that the motion information of the mouse meets a preset condition, so that the current non-screen-locked state of the electronic device is adjusted to the screen-locked state.
In this embodiment, the second embodiment and the third embodiment, the electronic device determines whether the motion information of the mouse meets the preset condition through any one of the first posture after the mouse moves, the motion track during the motion, and the motion height during the motion, that is, the user can trigger the electronic device to adjust from the working state to the non-working state by changing the posture of the mouse, changing the height of the mouse, or controlling the motion track of the mouse, so that a plurality of operation modes are provided for the user, and the user experience is improved.
EXAMPLE five
Referring to fig. 5, an embodiment of the present application provides an electronic device, including:
a first obtaining unit 501, configured to obtain motion information of a mouse connected to the electronic device;
a first determining unit 502, configured to determine whether the motion information meets a preset condition, and obtain a first determination result;
an adjusting unit 503, configured to adjust the electronic device from a current working state to a non-working state when the first determination result indicates that the motion information satisfies the preset condition.
In a specific implementation process, in order to determine whether the motion information satisfies a preset condition according to the posture of the mouse, the first determining unit 502 specifically includes:
the first obtaining subunit is configured to obtain a first posture, after the mouse moves, corresponding to the movement information;
the first judgment subunit is used for judging whether the first posture is a preset posture or not when the first posture is different from a second posture before the mouse moves, and obtaining a first judgment result;
when the first posture is the preset posture, the first judgment result shows that the motion information meets the preset condition; and when the first posture is not the preset posture, the first judgment result shows that the motion information does not meet the preset condition.
In a specific implementation process, when the mouse is in the preset posture, an angle of a first surface of the mouse relative to a reference surface is larger than a preset angle threshold, wherein a displacement sensor is arranged on the first surface.
In order to determine whether the user needs to adjust the motion state of the electronic device according to the motion trajectory of the mouse, the first determining unit 502 specifically includes:
the second judging subunit is configured to, when the motion information includes a motion trajectory during the mouse motion, judge whether a first graph formed by the motion trajectory includes a set graph, and obtain a first judgment result;
when a first graph formed by the motion track contains the set graph, the first judgment result shows that the motion information meets the preset condition; and when the first graph formed by the motion trail does not contain the set graph, the first judgment result shows that the motion information does not meet the preset condition.
The embodiment of the present application may further determine height information of the mouse during movement to determine whether the operation state of the electronic device needs to be adjusted, where the first determining unit 502 specifically includes:
the third judgment subunit is configured to, when the motion information includes a maximum height value from a reference surface during the movement of the mouse, judge whether the maximum height value is greater than a set threshold value, and obtain a first judgment result;
when the maximum height value is larger than the set threshold value, the first judgment result shows that the motion information meets the preset condition; and when the maximum height value is not greater than the set threshold, the first judgment result shows that the motion information does not meet the preset condition.
In a specific implementation process, the working state is a non-screen-locking state, and the non-working state is a screen-locking state.
Through one or more technical solutions in the embodiments of the present application, one or more of the following technical effects can be achieved:
1. the method comprises the steps of obtaining motion information of a mouse connected to the electronic equipment, judging whether the motion information of the mouse meets preset conditions or not, adjusting the electronic equipment from a current working state to a non-working state when the motion information of the mouse meets the preset conditions, enabling the electronic equipment to be adjusted from the working state to the non-working state by operating the mouse according to a mode specified by the preset conditions for the purpose, and avoiding the need of simultaneously operating combination keys on a keyboard, so that the technical problem that the operation speed is low when the electronic equipment is adjusted to the working state in the prior art is solved, and the beneficial effect of improving the operation speed is further achieved.
2. The electronic equipment judges whether the motion information of the mouse meets the preset condition through any one of the first posture after the mouse moves, the motion track during the motion and the motion height during the motion, namely, a user can trigger the electronic equipment to be adjusted from a working state to a non-working state through changing the posture of the mouse, changing the height of the mouse or controlling the motion track of the mouse, so that various operation modes are provided for the user, and the user experience is improved.
3. Because the operating condition of electronic equipment can be for not locking the screen state, when electronic equipment judged that the motion information of mouse satisfies the preset condition, the automatic adjustment of the current state of locking the screen is the lock screen state, quick realization lock screen operation promptly has improved the speed of electronic equipment lock screen operation, and the user only need control mouse and then can lock the screen fast in order to satisfy the mode motion of preset condition simultaneously, convenient operation and nature have better user experience.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. An information processing method applied to an electronic device, the method comprising:
obtaining motion information of a mouse connected with the electronic equipment;
judging whether the motion information meets a preset condition or not, and obtaining a first judgment result; the method specifically comprises the following steps:
obtaining a first posture of the mouse after the mouse moves, wherein the first posture corresponds to the movement information; when the first posture is different from a second posture of the mouse before movement, judging whether the first posture is a preset posture or not, and obtaining a first judgment result; the preset posture is that the angle of the first surface of the mouse relative to the reference surface is larger than a preset angle threshold value;
when the first judgment result shows that the motion information meets the preset condition, the electronic equipment is adjusted from the current working state to the non-working state; wherein the preset gesture at least comprises one of the following modes:
flipping, rotating, or a combination of flipping and rotating; wherein,
after the working state of the electronic equipment is adjusted to be in a non-working state, the electronic equipment obtains the motion information of the mouse when being in the non-working state, judges whether the motion information meets a preset recovery condition or not, automatically adjusts the non-working state to be in the working state when the motion information meets the preset recovery condition, and the preset recovery condition can be the same as, similar to or opposite to the preset condition.
2. The method of claim 1, wherein an angle of a first face of the mouse relative to a reference surface when the mouse is in the preset pose is greater than a preset angle threshold, wherein a displacement sensor is disposed on the first face.
3. The method of claim 1, wherein when the motion information includes a motion trajectory of the mouse during motion, the determining whether the motion information satisfies a preset condition to obtain a first determination result specifically includes:
judging whether a first graph formed by the motion trail contains a set graph or not, and obtaining a first judgment result;
when a first graph formed by the motion track contains the set graph, the first judgment result shows that the motion information meets the preset condition; and when the first graph formed by the motion trail does not contain the set graph, the first judgment result shows that the motion information does not meet the preset condition.
4. The method according to claim 1, wherein when the motion information includes a maximum height value from a reference plane during the movement of the mouse, the determining whether the motion information satisfies a preset condition to obtain a first determination result specifically includes:
judging whether the maximum height value is larger than a set threshold value or not, and obtaining a first judgment result;
when the maximum height value is larger than the set threshold value, the first judgment result shows that the motion information meets the preset condition; and when the maximum height value is not greater than the set threshold, the first judgment result shows that the motion information does not meet the preset condition.
5. The method according to any one of claims 1 to 4, wherein the operating state is a non-screen-lock state, and the non-operating state is a screen-lock state.
6. An electronic device, comprising:
the first acquisition unit is used for acquiring the motion information of a mouse connected with the electronic equipment;
the first judging unit is used for judging whether the motion information meets a preset condition or not and obtaining a first judging result; the first judging unit specifically includes: the first obtaining subunit is configured to obtain a first posture, after the mouse moves, corresponding to the movement information; the first judgment subunit is used for judging whether the first posture is a preset posture or not when the first posture is different from a second posture before the mouse moves, and obtaining a first judgment result; the preset posture is that the angle of the first surface of the mouse relative to the reference surface is larger than a preset angle threshold value;
the adjusting unit is used for adjusting the electronic equipment from the current working state to the non-working state when the first judgment result shows that the motion information meets the preset condition; wherein the preset gesture at least comprises one of the following modes:
flipping, rotating, or a combination of flipping and rotating; wherein,
after the working state of the electronic equipment is adjusted to be in a non-working state, the electronic equipment obtains the motion information of the mouse when being in the non-working state, judges whether the motion information meets a preset recovery condition or not, automatically adjusts the non-working state to be in the working state when the motion information meets the preset recovery condition, and the preset recovery condition can be the same as, similar to or opposite to the preset condition.
7. The electronic device of claim 6, wherein an angle of a first face of the mouse relative to a reference surface when the mouse is in the preset pose is greater than a preset angle threshold, wherein a displacement sensor is disposed on the first face.
8. The electronic device according to claim 6, wherein the first determining unit specifically includes:
the second judging subunit is configured to, when the motion information includes a motion trajectory during the mouse motion, judge whether a first graph formed by the motion trajectory includes a set graph, and obtain a first judgment result;
when a first graph formed by the motion track contains the set graph, the first judgment result shows that the motion information meets the preset condition; and when the first graph formed by the motion trail does not contain the set graph, the first judgment result shows that the motion information does not meet the preset condition.
9. The electronic device according to claim 6, wherein the first determining unit specifically includes:
the third judgment subunit is configured to, when the motion information includes a maximum height value from a reference surface during the movement of the mouse, judge whether the maximum height value is greater than a set threshold value, and obtain a first judgment result;
when the maximum height value is larger than the set threshold value, the first judgment result shows that the motion information meets the preset condition; and when the maximum height value is not greater than the set threshold, the first judgment result shows that the motion information does not meet the preset condition.
10. The electronic device according to any one of claims 6 to 9, wherein the operating state is a non-screen-locking state, and the non-operating state is a screen-locking state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310516890.7A CN104571883B (en) | 2013-10-28 | 2013-10-28 | Information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310516890.7A CN104571883B (en) | 2013-10-28 | 2013-10-28 | Information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104571883A CN104571883A (en) | 2015-04-29 |
CN104571883B true CN104571883B (en) | 2020-09-25 |
Family
ID=53088089
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310516890.7A Active CN104571883B (en) | 2013-10-28 | 2013-10-28 | Information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104571883B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111192374B (en) * | 2020-01-02 | 2022-07-08 | 湖南映客互娱网络信息有限公司 | Real-time online monitoring method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1743996A (en) * | 2005-09-27 | 2006-03-08 | 向一再 | Method and programme for encrypting and protecting computer and its monitor |
CN1790262A (en) * | 2005-12-20 | 2006-06-21 | 无锡永中科技有限公司 | Method for controlling computer software running based on mouse track data |
CN101398722A (en) * | 2007-09-26 | 2009-04-01 | 昆盈企业股份有限公司 | Cursor moving direction switching method for air mouse |
CN101630204A (en) * | 2009-08-24 | 2010-01-20 | 华中科技大学 | Wireless mouse |
KR20120105678A (en) * | 2011-03-16 | 2012-09-26 | 엘지전자 주식회사 | Mobile terminal and method of controlling the same |
CN103197839A (en) * | 2013-03-26 | 2013-07-10 | 北京小米科技有限责任公司 | Unlocking method, device and facility |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030179183A1 (en) * | 2002-03-20 | 2003-09-25 | Yuan-Chen Lee | Wireless mouse having a micro movement sensor for sensing a movement thereof |
US20080126629A1 (en) * | 2006-08-11 | 2008-05-29 | Aten International Co., Ltd. | Method of wake-up scan for kvm switch |
JP2013149093A (en) * | 2012-01-19 | 2013-08-01 | Toshiba Corp | Control device, control method, program, and electronic apparatus |
-
2013
- 2013-10-28 CN CN201310516890.7A patent/CN104571883B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1743996A (en) * | 2005-09-27 | 2006-03-08 | 向一再 | Method and programme for encrypting and protecting computer and its monitor |
CN1790262A (en) * | 2005-12-20 | 2006-06-21 | 无锡永中科技有限公司 | Method for controlling computer software running based on mouse track data |
CN101398722A (en) * | 2007-09-26 | 2009-04-01 | 昆盈企业股份有限公司 | Cursor moving direction switching method for air mouse |
CN101630204A (en) * | 2009-08-24 | 2010-01-20 | 华中科技大学 | Wireless mouse |
KR20120105678A (en) * | 2011-03-16 | 2012-09-26 | 엘지전자 주식회사 | Mobile terminal and method of controlling the same |
CN103197839A (en) * | 2013-03-26 | 2013-07-10 | 北京小米科技有限责任公司 | Unlocking method, device and facility |
Non-Patent Citations (2)
Title |
---|
动动鼠标,就能关机、注销;陈健康;《电脑爱好者》;20101231;第2010年卷(第21期);说明书第1-2段 * |
陈健康.动动鼠标,就能关机、注销.《电脑爱好者》.2010,第2010年卷(第21期),说明书第1-2段. * |
Also Published As
Publication number | Publication date |
---|---|
CN104571883A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20250138767A1 (en) | Devices, Methods, and Graphical User Interfaces for Wireless Pairing with Peripheral Devices and Displaying Status Information Concerning the Peripheral Devices | |
EP3420443B1 (en) | Mobile device with touch screens and method of controlling the same | |
US10416789B2 (en) | Automatic selection of a wireless connectivity protocol for an input device | |
CN109144181B (en) | Lift gesture detection in a device | |
US20130057472A1 (en) | Method and system for a wireless control device | |
US10031586B2 (en) | Motion-based gestures for a computing device | |
TWI629636B (en) | Method for controlling an electronic device, electronic device and non-transitory computer-readable storage medium | |
US9857838B2 (en) | Information processing method and electronic device with auto adjustable working mode with different wearing positions | |
US9600120B2 (en) | Device, method, and graphical user interface for orientation-based parallax display | |
Cheng et al. | iRotate: automatic screen rotation based on face orientation | |
US20140006994A1 (en) | Device, Method, and Graphical User Interface for Displaying a Virtual Keyboard | |
JP6658518B2 (en) | Information processing apparatus, information processing method and program | |
CN102939578A (en) | Method, device and system for receiving user input | |
CN104090649A (en) | Intelligent watchband and operating control method thereof | |
US20190095068A1 (en) | Portable terminal device | |
US12121797B2 (en) | Program, electronic device, and method | |
CN104965667A (en) | Method and mobile terminal for controlling screen-on of mobile terminal | |
CN112764647B (en) | Display method, device, electronic device and readable storage medium | |
CN104571883B (en) | Information processing method and electronic equipment | |
US20170140508A1 (en) | Method, apparatus, and terminal for controlling screen auto-rotation | |
CN104615377B (en) | A kind of information processing method and electronic equipment | |
CN111813280A (en) | Display interface control method, device, electronic device and readable storage medium | |
KR102307354B1 (en) | Electronic device and Method for controlling the electronic device | |
US20160342280A1 (en) | Information processing apparatus, information processing method, and program | |
CN113476822B (en) | Touch method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |