CN110262739A - Switching method, device and electronic equipment - Google Patents
Switching method, device and electronic equipment Download PDFInfo
- Publication number
- CN110262739A CN110262739A CN201910587114.3A CN201910587114A CN110262739A CN 110262739 A CN110262739 A CN 110262739A CN 201910587114 A CN201910587114 A CN 201910587114A CN 110262739 A CN110262739 A CN 110262739A
- Authority
- CN
- China
- Prior art keywords
- input
- track
- data
- mode
- input mode
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03543—Mice or pucks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present application discloses a kind of switching method, device and electronic equipment, obtain input data, when input data meets condition, the second input pattern is switched to from the first input pattern, wherein, under the first input pattern, the track data from input equipment is with the response of the first response mode for the first track content;Under the second input pattern, for the track data from input equipment with the response of the second response mode for the second track content, the first response mode and the second response mode are different.Through the above scheme, the switching for realizing the response mode of the track data of input equipment for increases input equipment and the interactive mode of user, improves the convenience that user uses input equipment.
Description
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a switching method, an apparatus, and an electronic device.
Background
Currently, a user usually uses an input device (such as a mouse) with a position indication function to indicate a position in another device (such as a computer). However, the current input device and user interaction mode is single, taking a mouse as an example, a user can only switch functions of left and right buttons of the mouse, and the convenience of using the input device by the user is poor.
Therefore, how to improve the convenience of the user using the input device becomes an urgent technical problem to be solved.
Disclosure of Invention
The application aims to provide a switching method, a switching device and electronic equipment, and the switching method, the switching device and the electronic equipment comprise the following technical scheme:
a method of handover, comprising:
obtaining input data;
switching from a first input mode to a second input mode if the input data satisfies a condition;
in the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, and the first response mode and the second response mode are different.
In the method, preferably, in the first input mode, the track data from the input device responds as the first track content in a first response manner; in the second input mode, the track data from the input device responds to the second track content in a second response mode, including:
under the first input mode, performing first adjustment on the track data from the input equipment to obtain first track data, wherein the first track data is matched with the first track content; in the second input mode, the track data from the input device matches the second track content; or,
in the first input mode, the track data from the input device matches the first track content; in the second input mode, second adjustment is carried out on the track data from the input equipment to obtain second track data, and the second track data is matched with the second track content; or,
under the first input mode, performing first adjustment on the track data from the input equipment to obtain first track data, wherein the first track data is matched with the first track content; and under the second input mode, performing second adjustment on the track data from the input equipment to obtain second track data, wherein the second track data is matched with the second track content, and the first adjustment and the second adjustment are different.
In the method, preferably, an included angle between the first track content and the reference direction in the preset direction is a first value; the included angle between the second track content and the reference direction in the preset direction is a second value; the first value and the second value are different.
The method above, preferably, the obtaining input data; switching from a first input mode to a second input mode if the input data satisfies a condition, comprising:
obtaining input selection operation data;
and if the selection operation data represents that the target information is selected from the candidate information, switching from the first input mode to the second input mode.
The method above, preferably, the obtaining of the input selection operation data; if the selection operation data indicates that the target information is selected from the candidate information, switching from the first input mode to the second input mode includes:
displaying an interactive interface on which at least two candidate gestures of the input device are displayed; different candidate poses correspond to different angle adjustment increments, and the angle adjustment increments are used for adjusting the angles of the track data from the input device;
obtaining input selection operation data based on the interactive interface;
and if the selection operation data indicates that the target gesture is selected from the at least two candidate gestures, switching from the first input mode to the second input mode.
The method above, preferably, the obtaining input data; switching from a first input mode to a second input mode if the input data satisfies a condition, comprising:
obtaining track data or track content input by the input equipment;
and if the track data is target track data or the track content is target track content, switching from a first input mode to a second input mode based on the target track data or the target track content.
In the above method, preferably, the track content input by the input device is obtained; if the track content is the target track content, switching from a first input mode to a second input mode based on the target track content, including:
displaying an interactive interface;
obtaining track content input by the input equipment on the interactive interface;
and if the track content is a straight line in the target direction, switching from the first input mode to the second input mode based on the straight line in the target direction.
Preferably, the method for switching the straight line based on the target direction from the first input mode to the second input mode includes:
and determining an angle adjustment increment according to the reference straight line of the target direction and the straight line of the target direction, and determining a second input mode based on the angle adjustment increment.
A switching device, comprising:
an obtaining module for obtaining input data;
the switching module is used for switching from a first input mode to a second input mode if the input data meets the condition;
in the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, and the first response mode and the second response mode are different.
An electronic device, comprising:
a memory for storing at least one set of instructions;
a processor for invoking and executing the set of instructions in the memory, by executing the set of instructions:
obtaining input data;
switching from a first input mode to a second input mode if the input data satisfies a condition;
in the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, and the first response mode and the second response mode are different.
According to the scheme, the switching method, the switching device and the electronic equipment, input data are obtained, and when the input data meet the condition, the first input mode is switched to the second input mode, wherein in the first input mode, track data from the input equipment responds to first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, the first response mode and the second response mode being different. By the aid of the scheme, switching of response modes of the track data of the input equipment is achieved, interaction modes of the input equipment and a user are increased, and convenience of the user in using the input equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of a handover method according to an embodiment of the present application;
FIG. 2 is a flow chart of an implementation of obtaining input data and switching from a first input mode to a second input mode if the input data satisfies a condition, according to an embodiment of the present disclosure;
FIG. 3 is an exemplary diagram of an interactive interface provided by an embodiment of the present application;
FIG. 4 is a diagram of another example of an interactive interface provided by an embodiment of the present application;
FIG. 5 is a flowchart of another implementation of obtaining input data and switching from a first input mode to a second input mode if the input data satisfies a condition, according to an embodiment of the present disclosure;
FIG. 6 is a diagram of yet another example of an interactive interface provided by an embodiment of the present application;
FIG. 7 is a diagram illustrating an example of a user inputting a straight line through a mouse when the input mode provided by the embodiment of the present application is the default input mode;
fig. 8 is a schematic structural diagram of a switching device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present disclosure.
The switching method provided by the application can be used in electronic equipment, and the electronic equipment can be connected with an input device, so that the input device can perform position indication in the electronic equipment. The electronic device may be a computer, such as a desktop computer, a notebook computer, a kiosk, or the like. The input device may be an external or internal mouse, a track input device such as a track point, a touch pad or a track ball.
As shown in fig. 1, an implementation flowchart of the handover method provided in the present application may include:
step S11: input data is obtained.
The input data may be data input by a user performing a preset operation. Optionally:
the input data may be location-related data input by the user via an input device; or,
data selected through input equipment or touch operation; or,
the input data obtained by other methods, for example, the sensing data obtained by gesture operation, such as the sensing data collected by the user holding the input device and shaking the input device, and further such as the trajectory data of the operation body collected by the touch screen. But also voice input data collected by a microphone, etc.
Step S12: and if the input data meets the condition, switching from the first input mode to the second input mode. In the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, the first response mode and the second response mode being different.
If the input data meets the condition, the user wants to switch the input mode.
The user can determine whether to switch the input mode for the input device according to the use habit of the user, and if the input mode needs to be switched for the input device, preset operation can be executed to input data so as to indicate the switching of the input mode. Taking the example of obtaining the sensing data through the gesture operation, if the sensing data represents that the input device does reciprocating motion (for example, the user holds the input device to swing left and right), it indicates that the input data meets the condition, and at this time, the input mode can be switched from the first input mode to the second input mode. For example, the user can know the current input mode conveniently, after the input mode is switched to the second input mode, prompt information can be popped up to prompt the user what the second input mode is, and some description information of the second input mode can be prompted to help the user know the second input mode in more detail, so that the user can determine whether to continue to switch the input mode conveniently.
The trajectory data from the input device is the position data of the input device that is collected by sensors (e.g., displacement sensors, photosensors, etc.) within the input device based on the movement of the input device.
According to the switching method, the input data are obtained, when the input data meet the conditions, the first input mode is switched to the second input mode, and under different input modes, the response modes of the track data from the input equipment are different. The switching of the response mode of the track data from the input equipment is realized, the interaction mode of the input equipment and a user is increased, and the convenience of using the input equipment by the user is improved.
In an alternative embodiment, the difference between the first response mode and the second response mode may be embodied as whether to adjust the trajectory data from the input device, or may be embodied as a difference between the trajectory data from the input device and the adjustment mode. Specifically, in the first input mode, the track data from the input device responds in a first response manner as first track content; in the second input mode, the response of the track data from the input device to the second track content in the second response mode may include:
under a first input mode, performing first adjustment on track data from input equipment to obtain first track data, wherein the first track data is matched with first track content; in the second input mode, the trajectory data from the input device matches the second trajectory content.
In this embodiment, in the first input mode, the trajectory data from the input device is first adjusted to obtain adjusted trajectory data (hereinafter, referred to as adjusted trajectory data), and then the first trajectory content is obtained from the adjusted trajectory data, while in the second input mode, the trajectory data from the input device is not adjusted (or the adjustment amount is zero, which is equivalent to no adjustment), and the second trajectory content is directly obtained from the original trajectory data from the input device.
Or,
in a first input mode, the trajectory data from the input device matches the first trajectory content; and under a second input mode, performing second adjustment on the track data from the input equipment to obtain second track data, wherein the second track data is matched with second track content.
In this embodiment, in the first input mode, the trajectory data from the input device is not adjusted (or the adjustment amount is zero, which is equivalent to no adjustment), and the first trajectory content is directly obtained from the original trajectory data from the input device, while in the second input mode, the trajectory data from the input device is first adjusted to obtain the adjusted trajectory data, and then the second trajectory content is obtained from the adjusted trajectory data.
Or,
under a first input mode, performing first adjustment on track data from input equipment to obtain first track data, wherein the first track data is matched with first track content; and under a second input mode, performing second adjustment on the track data from the input equipment to obtain second track data, wherein the second track data is matched with second track content, and the first adjustment and the second adjustment are different.
In this embodiment, in the first input mode, the trajectory data from the input device is first adjusted to obtain the adjusted trajectory data, and then the first trajectory content is obtained from the adjusted trajectory data, and in the second input mode, the trajectory data from the input device is also first adjusted to obtain the adjusted trajectory data, and then the second trajectory content is obtained from the adjusted trajectory data. However, in both input modes, the adjustment of the trajectory data from the input device is different.
In an optional embodiment, an angle between the first track content and the reference direction in the preset direction is a first value, and an angle between the second track content and the reference direction in the preset direction is a second value. The first value and the second value are different. That is, if the input mode is switched while the user is using the input device, the angle between the track content input by the input device and the reference direction in the preset direction is also changed.
Optionally, the preset direction may be different according to the shape of the track content. In particular, the method comprises the following steps of,
if the track content is a straight line, the preset direction is the extending direction of the track content (i.e. the direction away from the starting point of the track content).
If the track content is a curve, the preset direction is as follows: a tangential direction on the track content at a preset distance from a reference position (e.g., a start point of the track content). Assuming that a position on the track content, which is a preset distance from the reference position, is a point a, the preset distance refers to a length of the track content between the point a and the reference position.
For example, if the first track content is a straight line, the preset direction is the extending direction of the first track content, and similarly, if the second track content is a straight line, the preset direction is the extending direction of the second track content. If the first track content is a curve, the preset direction may refer to a tangential direction of a position on the first track content, which is away from the starting point of the first track by a preset distance.
In an alternative embodiment, the obtaining input data; if the input data satisfies the condition, an implementation flowchart for switching from the first input mode to the second input mode is shown in fig. 2, and may include:
step S21: input selection operation data is obtained.
The selection operation data may be gesture operation data or may be voice operation data.
Step S22: and if the selection operation data represents that the target information is selected from the candidate information, switching from the first input mode to the second input mode.
In the embodiment of the application, a plurality of candidate information are preset for a user to select. Different candidate information corresponds to different input modes.
The one-to-one correspondence relationship between the gesture operation and the candidate information may be preset, so that when a user performs the preset gesture operation, the corresponding candidate information (i.e., target information) may be determined, and in order to facilitate the user operation, the selected information may be displayed, so that the user may determine whether to select the desired information.
In addition to obtaining selection operation data through gesture operation, the selection operation data may also be obtained based on an interactive interface, and specifically, one implementation manner of obtaining the input selection operation data may be:
displaying an interactive interface on which at least two candidate gestures of an input device are displayed; the different candidate poses correspond to different angular adjustment increments used to adjust the angle of the trajectory data from the input device.
The inventor has found that different users may hold the input device with different gestures of the input device. Based on this, in the embodiment of the present application, the at least two candidate gestures may be various gestures that are commonly found in the input device when different users hold the input device.
In addition, the inventor also finds that when the postures of the input devices are different, the precision of the input track content is different. Taking the example of drawing a horizontal straight line through a mouse, usually, a horizontal straight line with higher precision can be drawn only when the orientation of the mouse is parallel to the horizontal straight line on the plane where the scroll wheel on the mouse is located, and when the orientation of the mouse is in other directions, the drawn horizontal line is inclined, the straight line precision is reduced, the higher the mouse resolution is, the more obvious the mouse resolution is, and particularly for a game player with higher requirement on pointer positioning, the problem is greater. Based on this, in the embodiment of the present application, for different candidate poses, different angle adjustment increments are correspondingly set, where the adjustment increments include adjustment directions and adjustment angles.
Generally, when different users hold the input device, the tilt angles of the input device are different, and therefore, the size of the adjustment angle in the angle adjustment increment corresponding to the posture of the input device can be obtained through big data statistics, for example, the size of the adjustment angle can be the average value of the tilt angles of the input device when several users hold the input device in the same or similar postures.
And obtaining input selection operation data based on the interactive interface.
The user can determine the posture of the input equipment when the user holds the input equipment according to the habit of holding the input equipment, and then, the user selects the input equipment with the same posture in the interactive interface.
Fig. 3 is a diagram of an example of an interactive interface provided in the embodiment of the present application, in which three common gestures of a mouse are listed. If the user holds the mouse, the orientation of the mouse is inclined by a certain angle in the counterclockwise direction, the posture a can be selected, if the user holds the mouse, the orientation of the mouse is parallel to the horizontal direction on the plane where the upper roller of the mouse is located, the posture b can be selected, and if the user holds the mouse, the orientation of the mouse is inclined by a certain angle in the clockwise direction, the posture c can be selected.
Correspondingly, if the selection operation data represents that the target information is selected from the candidate information, switching from the first input mode to the second input mode may specifically include:
and if the selection operation data represents that the target gesture is selected from at least two candidate gestures, switching from the first input mode to a second input mode, and responding to the track data from the input device based on the angle adjustment increment corresponding to the target gesture in the second input mode.
In this embodiment, the angle adjustment increment may be used to adjust the trajectory data acquired in real time by moving the input device according to the first movement trajectory (the first movement trajectory may be any movement trajectory that the input device can realize), that is, calibrate the trajectory data acquired in real time by the input device, so that the adjusted trajectory data coincides or approximately coincides with the trajectory data acquired by moving the input device according to the first movement trajectory in the preset posture, and the trajectory content is obtained based on the adjusted trajectory data, so as to realize accurate positioning in different postures. The preset posture is a posture at which the position indication accuracy of the input device is highest.
In the above embodiment, the angle adjustment increment corresponding to the posture of the input device is obtained in advance through big data statistics. In an alternative embodiment, the angle increment corresponding to the posture of the input device can also be determined in real time according to the operation of the user. Specifically, after selecting the target pose, the method may further include:
and obtaining the track content input by the input device. The track content may be track content input by a user moving an input device. When the user moves the input device, the posture of the input device is the same as or similar to the target posture.
And if the obtained track content is the target track content, determining the angle adjustment increment based on the track content input by the input equipment and the reference track content. The reference trajectory content may refer to trajectory content input while the input device is in the target pose. The preset gesture may be a gesture at which the position indication accuracy of the input device is highest. The obtaining of the track content as the target track content may include: the difference between the obtained track content and the reference track content is within a preset range.
And establishing a corresponding relation between the angle adjustment increment and the target posture.
Fig. 4 is a diagram illustrating another example of an interactive interface provided in an embodiment of the present application. The interactive interface comprises a gesture candidate area used for a user to select a gesture of the input device, and a track content input area, wherein the gesture candidate area is provided with prompt information to prompt the user to input specified track content, as shown in fig. 4, the 'X-axis setting start' prompt the user to input a straight line in the X-axis direction, the user clicks the 'X-axis setting start' to trigger a setting process in the horizontal direction, and after the user inputs the straight line in the X-axis direction, the system determines an angle adjustment increment corresponding to the X-axis direction. Similarly, the user is prompted to input the straight line in the Y-axis direction by the 'Y-axis setting start', the user clicks the 'Y-axis setting start', a setting flow in the vertical direction is triggered, and after the user inputs the straight line in the Y-axis direction, the system determines the angle adjustment increment corresponding to the Y-axis direction.
By determining the angle adjustment increment corresponding to the posture of the input device in real time, more accurate position indication can be realized.
In the foregoing embodiment, the input mode is switched based on the posture of the input device. In an optional embodiment, the input mode may be switched by the track data or the track content input by the input device. Optionally, the obtaining input data; another implementation flowchart for switching from the first input mode to the second input mode if the input data satisfies the condition is shown in fig. 5, and may include:
step S51: track data or track content input by an input device is obtained.
The track data input by the input device refers to the track data acquired by the input device in real time, and the track content input by the input device refers to the track content matched with the track data acquired by the input device in real time.
Step S52: and if the track data input by the input equipment is the target track data or the track content input by the input equipment is the target track content, switching from the first input mode to the second input mode based on the target track data or the target track content.
The target trajectory data is the trajectory data input by the input device, which means that the difference between the trajectory data input by the input device and the reference trajectory data is within a first preset range. The difference between the trajectory data may refer to an angular difference between the trajectory data. Specifically, the trajectory data is a coordinate sequence formed by a series of coordinate data, and then the angle difference between the corresponding coordinate data in different coordinate sequences can be calculated, and finally, all the angle differences are fused (for example, averaged) to obtain the angle difference between the trajectory data. The corresponding coordinate data in the different coordinate sequences refer to coordinate data with the same serial number in the different coordinate sequences.
The fact that the track content input by the input device is the target track content means that the difference between the track content input by the input device and the target track content is within a second preset range. The difference between the track contents may refer to an angular difference between the track contents.
In an optional embodiment, one implementation manner of obtaining the track content input by the input device may be:
and displaying the interactive interface. The interactive interface may have prompt information to prompt the user to input the specified track content. Referring to fig. 6, fig. 6 is a diagram illustrating another example of an interactive interface according to an embodiment of the present disclosure.
And obtaining the track content input by the input device on the interactive interface.
And if the input track content is a straight line in the target direction, switching from the first input mode to the second input mode based on the straight line in the target direction.
The straight line of the target direction may be a straight line having an angle with the target direction within a preset range. For example, the target direction is the X-axis direction (i.e., the horizontal direction), and then the straight line of the target direction may be a straight line having an angle in the range of (-10 ° to 10 °) with the X-axis direction.
Optionally, the target direction may have two directions, for example, the target direction is two directions perpendicular to each other, which are an X-axis direction and a Y-axis direction, respectively, and the straight line of the target direction may be a straight line having an included angle with one of the target directions within a preset range, that is, the trajectory input by the input device is a straight line, and the straight line is the straight line of the target direction as long as the included angle with one of the X-axis direction and the Y-axis direction is within the preset range.
Optionally, one implementation manner of switching the straight line based on the target direction from the first input mode to the second input mode may be:
and determining an angle adjustment increment according to the reference straight line of the target direction and the straight line of the target direction, and determining a second input mode based on the angle adjustment increment. That is, in the second input mode, the trajectory data from the input device is responded to based on the determined angular adjustment increments. Specifically, the track data acquired in real time by the input device moving according to the first moving track can be adjusted based on the determined angle adjustment increment, so that the adjusted track data coincides or approximately coincides with the track data acquired by the input device moving according to the first moving track in the preset posture, track content is obtained based on the adjusted track data, and accurate positioning under different postures can be realized. The preset posture is a posture at which the position indication accuracy of the input device is highest.
The reference straight line in the target direction is a straight line parallel to the target direction.
In an alternative embodiment, the straight lines in the target direction are parallel or approximately parallel straight lines; or,
the straight lines of the target direction include a first type straight line and a second type straight line, wherein the first type straight line and the second type straight line are perpendicular or approximately perpendicular. If the first straight line and the second straight line both include a plurality of straight lines, the plurality of straight lines of the first type are parallel or approximately parallel to each other, and the plurality of straight lines of the second type are parallel or approximately parallel to each other.
In the case of including a plurality of parallel or approximately parallel straight lines, determining an angle adjustment increment based on a reference straight line of the target direction and the straight line of the target direction, including:
fitting straight lines according to the straight lines which are parallel or approximately parallel to each other; and comparing the reference straight line with the straight line obtained by fitting to determine the angle adjustment increment. Or,
comparing the reference straight line with each straight line respectively, and determining an initial angle adjustment increment corresponding to each straight line;
the initial angle adjustment increments corresponding to all the straight lines are fused (e.g., averaged) to obtain the angle adjustment increment.
Under the condition of including a first type straight line and a second type straight line, a first angle adjustment increment can be determined according to the first type straight line, and a second angle adjustment increment can be determined according to the second type straight line; the first and second angle adjustment increments are fused (e.g., averaged) to a final angle adjustment increment.
In an optional embodiment, in the second input mode, responding to the trajectory data from the input device based on the angle adjustment increment may specifically include:
adjusting the angle of the track data from the input equipment by the angle adjustment increment to obtain adjusted track data; the adjustment process may be performed on the input device side or on the electronic device side.
And responding the adjusted track data as second track content.
If the adjustment process is executed on the input device side, the input device sends the adjusted track data to the electronic device, and the electronic device directly responds the received track data to be the second track content.
If the adjustment process is executed on the electronic equipment side, the input equipment directly sends the acquired track data to the electronic equipment, the electronic equipment adjusts the angle adjustment increment on the received track data, and then responds the adjusted track data to second track content.
The following describes embodiments of the present application with reference to specific application scenarios.
In this example, the input device is a mouse, and there are three specific input modes, as shown in fig. 3, which respectively correspond to three different gestures of the mouse: the mouse is tilted a certain angle in a counterclockwise direction (fig. 3-a), the mouse is not tilted (fig. 3-b), or the mouse is tilted a certain angle in a clockwise direction (fig. 3-c). Wherein the mouse pose shown in fig. 3-a corresponds to a first angular adjustment increment, the mouse pose shown in fig. 3-b corresponds to a second angular adjustment increment (typically zero or near zero), and the mouse pose shown in fig. 3-c corresponds to a third angular adjustment increment.
Since the position indication accuracy of the mouse is highest when the mouse is in the mouse posture shown in fig. 3-b, the default input mode is the input mode corresponding to the mouse posture shown in fig. 3-b.
Referring to fig. 7, fig. 7 is a diagram illustrating an example of a case where a user inputs a straight line through a mouse when an input mode provided by an embodiment of the present application is a default input mode. If the user a operates the mouse in the posture shown in fig. 3-b, the straight line drawn is horizontal as shown in fig. 7-a. If the user a operates the mouse in a posture as shown in fig. 3-a, the drawn straight line is inclined as shown in fig. 7-b or fig. 7-c. Similarly, if the user A operates the mouse in the posture shown in FIG. 3-c, the straight line drawn may also be inclined as shown in FIG. 7-b or FIG. 7-c.
If the user A is familiar with operating the mouse with the right hand and the posture of the mouse is as shown in the figure 3-a when operating the mouse, the input mode is switched to the input mode corresponding to the posture of the mouse as shown in the figure 3-a before using the mouse, and under the input mode, the first angle adjustment increment is adjusted for the track data collected by the mouse in the moving process of the mouse. When the user a operates the mouse to draw a horizontal straight line, the drawn horizontal straight line is not inclined or is not substantially inclined as shown in fig. 7-a.
If the user a is familiar with operating the mouse with the right hand and the posture of the mouse is as shown in fig. 3-b when the user a operates the mouse, the user a may not switch the input mode, and when the user a operates the mouse to draw a horizontal straight line, the drawn horizontal straight line is as shown in fig. 7-a and is a horizontal straight line.
If the user B is used to operate the mouse with the left hand and the gesture of the mouse is shown in fig. 3-B when the user B operates the mouse, if the user B uses the mouse before using the mouse and switches the input mode to the input mode corresponding to the gesture shown in fig. 3-a, if the user B does not switch the input mode, when the user B operates the mouse to draw a horizontal straight line, the drawn straight line will be shown in fig. 7-B or fig. 7-c, and a tilt phenomenon occurs. If the user B switches the input mode to the input mode corresponding to the gesture shown in fig. 3-B, when the user B operates the mouse to draw a horizontal straight line, the drawn straight line will be as shown in fig. 7-a, and will not be inclined or will not be inclined substantially.
If the user B is used to operate the mouse with the left hand and the posture of the mouse is as shown in fig. 3-c when the user B operates the mouse, if the user B uses the mouse before using the mouse and switches the input mode to the input mode corresponding to the posture shown in fig. 3-a, if the user B does not switch the input mode, when the user B operates the mouse to draw a horizontal straight line, the drawn straight line may be inclined. If the user B switches the input mode to the input mode corresponding to the gesture shown in fig. 3-c, when the user B operates the mouse to draw a horizontal straight line, the drawn straight line is not inclined or is not inclined substantially.
Corresponding to the embodiment of the method, the present application further provides a switching device, and a schematic structural diagram of the switching device provided by the present application is shown in fig. 8, and the switching device may include:
an obtaining module 81 and a switching module 82; wherein,
the obtaining module 81 is used for obtaining input data;
the switching module 82 is configured to switch from a first input mode to a second input mode if the input data satisfies a condition;
in the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, and the first response mode and the second response mode are different.
The switching device obtains input data, and when the input data meet conditions, the switching device is switched from a first input mode to a second input mode, and under different input modes, response modes of track data from input equipment are different. The switching of the response mode of the track data from the input equipment is realized, the interaction mode of the input equipment and a user is increased, and the convenience of using the input equipment by the user is improved.
In an optional embodiment, further comprising:
the response module is used for carrying out first adjustment on the track data from the input equipment in the first input mode to obtain first track data, and the first track data is matched with the first track content; in the second input mode, the track data from the input device matches the second track content; or,
in the first input mode, the track data from the input device matches the first track content; in the second input mode, second adjustment is carried out on the track data from the input equipment to obtain second track data, and the second track data is matched with the second track content; or,
under the first input mode, performing first adjustment on the track data from the input equipment to obtain first track data, wherein the first track data is matched with the first track content; and under the second input mode, performing second adjustment on the track data from the input equipment to obtain second track data, wherein the second track data is matched with the second track content, and the first adjustment and the second adjustment are different.
In an optional embodiment, an angle between the first track content and the reference direction in the preset direction is a first value; the included angle between the second track content and the reference direction in the preset direction is a second value; the first value and the second value are different.
In an alternative embodiment, the obtaining module 81 may be specifically configured to obtain input selection operation data;
the switching module 82 may be specifically configured to switch from the first input mode to the second input mode if the selection operation data indicates that the target information is selected from the candidate information.
In an alternative embodiment, the obtaining module 81 may specifically be configured to: displaying an interactive interface on which at least two candidate gestures of the input device are displayed; different candidate poses correspond to different angle adjustment increments, and the angle adjustment increments are used for adjusting the angles of the track data from the input device; obtaining input selection operation data based on the interactive interface;
the switching module 82 may be specifically configured to switch from the first input mode to the second input mode if the selection operation data characterizes a selection of a target gesture from the at least two candidate gestures.
In an alternative embodiment, the obtaining module 81 may specifically be configured to: obtaining track data or track content input by the input equipment;
the switching module 82 may specifically be configured to: and if the track data is target track data or the track content is target track content, switching from a first input mode to a second input mode based on the target track data or the target track content.
In an alternative embodiment, the obtaining module 81 may specifically be configured to: displaying an interactive interface; obtaining track content input by the input equipment on the interactive interface;
the switching module 82 may specifically be configured to: and if the track content is a straight line in the target direction, switching from the first input mode to the second input mode based on the straight line in the target direction.
In an optional embodiment, when the switching module 82 switches from the first input mode to the second input mode based on the straight line of the target direction, the switching module may specifically be configured to: and determining an angle adjustment increment according to the reference straight line of the target direction and the straight line of the target direction, and determining a second input mode based on the angle adjustment increment.
Corresponding to the method embodiment, the present application further provides an electronic device, a schematic structural diagram of which is shown in fig. 9, and the electronic device may include:
a memory 91 for storing at least one set of instructions;
a processor 92 for invoking and executing the set of instructions in the memory, by executing the set of instructions:
obtaining input data;
switching from a first input mode to a second input mode if the input data satisfies a condition;
in the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, and the first response mode and the second response mode are different.
The electronic equipment obtains input data, when the input data meet conditions, the input data are switched from a first input mode to a second input mode, and under different input modes, response modes of the electronic equipment to track data from the input equipment are different. The switching of the response mode of the track data from the input equipment is realized, the interaction mode of the input equipment and a user is increased, and the convenience of using the input equipment by the user is improved.
In an optional embodiment, the processor 92 performs a first adjustment on the trajectory data from the input device in the first input mode to obtain first trajectory data, where the first trajectory data matches the first trajectory content; in the second input mode, the track data from the input device matches the second track content; or,
in the first input mode, the track data from the input device matches the first track content; in the second input mode, second adjustment is carried out on the track data from the input equipment to obtain second track data, and the second track data is matched with the second track content; or,
under the first input mode, performing first adjustment on the track data from the input equipment to obtain first track data, wherein the first track data is matched with the first track content; and under the second input mode, performing second adjustment on the track data from the input equipment to obtain second track data, wherein the second track data is matched with the second track content, and the first adjustment and the second adjustment are different.
In an optional embodiment, an angle between the first track content and the reference direction in the preset direction is a first value; the included angle between the second track content and the reference direction in the preset direction is a second value; the first value and the second value are different.
In an alternative embodiment, the processor 92 is obtaining input data; if the input data meets the condition, when switching from the first input mode to the second input mode, the method may specifically be used to:
obtaining input selection operation data;
and if the selection operation data represents that the target information is selected from the candidate information, switching from the first input mode to the second input mode.
In an alternative embodiment, the processor 92 obtains the input selection operation data; if the selection operation data represents that the target information is selected from the candidate information, when switching from the first input mode to the second input mode, the method may be specifically configured to:
displaying an interactive interface on which at least two candidate gestures of the input device are displayed; different candidate poses correspond to different angle adjustment increments, and the angle adjustment increments are used for adjusting the angles of the track data from the input device;
obtaining input selection operation data based on the interactive interface;
and if the selection operation data indicates that the target gesture is selected from the at least two candidate gestures, switching from the first input mode to the second input mode.
In an alternative embodiment, the processor 92 is obtaining input data; if the input data meets the condition, when switching from the first input mode to the second input mode, the method may specifically be used to:
obtaining track data or track content input by the input equipment;
and if the track data is target track data or the track content is target track content, switching from a first input mode to a second input mode based on the target track data or the target track content.
In an alternative embodiment, the processor 92 obtains the track content input by the input device; if the track content is the target track content, when the track content is switched from the first input mode to the second input mode based on the target track content, the method may specifically be configured to:
displaying an interactive interface;
obtaining track content input by the input equipment on the interactive interface;
and if the track content is a straight line in the target direction, switching from the first input mode to the second input mode based on the straight line in the target direction.
In an alternative embodiment, when the processor 92 switches from the first input mode to the second input mode based on the straight line of the target direction, the processor may specifically be configured to:
and determining an angle adjustment increment according to the reference straight line of the target direction and the straight line of the target direction, and determining a second input mode based on the angle adjustment increment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be understood that the technical problems can be solved by combining and combining the features of the embodiments from the claims.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method of handover, comprising:
obtaining input data;
switching from a first input mode to a second input mode if the input data satisfies a condition;
in the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, and the first response mode and the second response mode are different.
2. The method of claim 1, wherein in the first input mode, trace data from an input device responds in a first responsive manner as first trace content; in the second input mode, the track data from the input device responds to the second track content in a second response mode, including:
under the first input mode, performing first adjustment on the track data from the input equipment to obtain first track data, wherein the first track data is matched with the first track content; in the second input mode, the track data from the input device matches the second track content; or,
in the first input mode, the track data from the input device matches the first track content; in the second input mode, second adjustment is carried out on the track data from the input equipment to obtain second track data, and the second track data is matched with the second track content; or,
under the first input mode, performing first adjustment on the track data from the input equipment to obtain first track data, wherein the first track data is matched with the first track content; and under the second input mode, performing second adjustment on the track data from the input equipment to obtain second track data, wherein the second track data is matched with the second track content, and the first adjustment and the second adjustment are different.
3. The method of claim 1, wherein the first track content is at a first value in an angle to a reference direction in a preset direction; the included angle between the second track content and the reference direction in the preset direction is a second value; the first value and the second value are different.
4. The method of claim 1, the obtaining input data; switching from a first input mode to a second input mode if the input data satisfies a condition, comprising:
obtaining input selection operation data;
and if the selection operation data represents that the target information is selected from the candidate information, switching from the first input mode to the second input mode.
5. The method of claim 4, the obtaining input selection operation data; if the selection operation data indicates that the target information is selected from the candidate information, switching from the first input mode to the second input mode includes:
displaying an interactive interface on which at least two candidate gestures of the input device are displayed; different candidate poses correspond to different angle adjustment increments, and the angle adjustment increments are used for adjusting the angles of the track data from the input device;
obtaining input selection operation data based on the interactive interface;
and if the selection operation data indicates that the target gesture is selected from the at least two candidate gestures, switching from the first input mode to the second input mode.
6. The method of claim 1, the obtaining input data; switching from a first input mode to a second input mode if the input data satisfies a condition, comprising:
obtaining track data or track content input by the input equipment;
and if the track data is target track data or the track content is target track content, switching from a first input mode to a second input mode based on the target track data or the target track content.
7. The method of claim 6, obtaining track content input by the input device; if the track content is the target track content, switching from a first input mode to a second input mode based on the target track content, including:
displaying an interactive interface;
obtaining track content input by the input equipment on the interactive interface;
and if the track content is a straight line in the target direction, switching from the first input mode to the second input mode based on the straight line in the target direction.
8. The method of claim 7, the switching from a first input mode to a second input mode based on the line of the target direction comprising:
and determining an angle adjustment increment according to the reference straight line of the target direction and the straight line of the target direction, and determining a second input mode based on the angle adjustment increment.
9. A switching device, comprising:
an obtaining module for obtaining input data;
the switching module is used for switching from a first input mode to a second input mode if the input data meets the condition;
in the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, and the first response mode and the second response mode are different.
10. An electronic device, comprising:
a memory for storing at least one set of instructions;
a processor for invoking and executing the set of instructions in the memory, by executing the set of instructions:
obtaining input data;
switching from a first input mode to a second input mode if the input data satisfies a condition;
in the first input mode, the track data from the input device responds to the first track content in a first response mode; in the second input mode, the track data from the input device responds as second track content in a second response mode, and the first response mode and the second response mode are different.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910587114.3A CN110262739A (en) | 2019-07-01 | 2019-07-01 | Switching method, device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910587114.3A CN110262739A (en) | 2019-07-01 | 2019-07-01 | Switching method, device and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110262739A true CN110262739A (en) | 2019-09-20 |
Family
ID=67923846
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910587114.3A Pending CN110262739A (en) | 2019-07-01 | 2019-07-01 | Switching method, device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110262739A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112925571A (en) * | 2021-03-01 | 2021-06-08 | 联想(北京)有限公司 | Control method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08263197A (en) * | 1995-03-22 | 1996-10-11 | Nec Corp | Rotational operation measuring instrument |
| JP2012008862A (en) * | 2010-06-25 | 2012-01-12 | Kyushu Institute Of Technology | Motion controlling device, method for the same, and program |
| CN102375567A (en) * | 2010-08-23 | 2012-03-14 | 圆展科技股份有限公司 | Pen-shaped pointing device, displacement information providing method, and displacement information providing system |
| CN105607764A (en) * | 2015-12-22 | 2016-05-25 | 汉王科技股份有限公司 | Track input device and track input method |
| CN107787477A (en) * | 2015-06-26 | 2018-03-09 | 三星电子株式会社 | Input equipment, electronic equipment and its control method for receiving the signal from input equipment |
-
2019
- 2019-07-01 CN CN201910587114.3A patent/CN110262739A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08263197A (en) * | 1995-03-22 | 1996-10-11 | Nec Corp | Rotational operation measuring instrument |
| JP2012008862A (en) * | 2010-06-25 | 2012-01-12 | Kyushu Institute Of Technology | Motion controlling device, method for the same, and program |
| CN102375567A (en) * | 2010-08-23 | 2012-03-14 | 圆展科技股份有限公司 | Pen-shaped pointing device, displacement information providing method, and displacement information providing system |
| CN107787477A (en) * | 2015-06-26 | 2018-03-09 | 三星电子株式会社 | Input equipment, electronic equipment and its control method for receiving the signal from input equipment |
| CN105607764A (en) * | 2015-12-22 | 2016-05-25 | 汉王科技股份有限公司 | Track input device and track input method |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112925571A (en) * | 2021-03-01 | 2021-06-08 | 联想(北京)有限公司 | Control method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10216407B2 (en) | Display control apparatus, display control method and display control program | |
| US10684673B2 (en) | Apparatus and control method based on motion | |
| US12478872B2 (en) | Method and apparatus for controlling interface display, device, and storage medium | |
| CN106843739B (en) | A kind of display control method and mobile terminal of mobile terminal | |
| US10055064B2 (en) | Controlling multiple devices with a wearable input device | |
| KR102109649B1 (en) | Method for correcting coordination of electronic pen and potable electronic device supporting the same | |
| CN104932809B (en) | Apparatus and method for controlling display panel | |
| US9891816B2 (en) | Method and mobile terminal for processing touch input in two different states | |
| US20150185953A1 (en) | Optimization operation method and apparatus for terminal interface | |
| CN106527693A (en) | Application control method and mobile terminal | |
| WO2013143454A1 (en) | Desktop container switching control method and terminal | |
| JP5222967B2 (en) | Mobile device | |
| CN108920066B (en) | Touch screen sliding adjustment method and device and touch equipment | |
| US10140002B2 (en) | Information processing apparatus, information processing method, and program | |
| US20190227688A1 (en) | Head mounted display device and content input method thereof | |
| WO2017032016A1 (en) | Interface operating method and electronic terminal | |
| CN108174014A (en) | A kind of screenshotss method and device | |
| CN108920055A (en) | Touch operation method, device, storage medium and electronic device | |
| CN108027667A (en) | Information processing device, information processing method and program | |
| JP2019175239A (en) | Program and information processing apparatus | |
| CN107613193A (en) | A kind of camera control method and mobile terminal | |
| JP2019170802A (en) | Program and information processing apparatus | |
| CN106708389B (en) | A kind of method and mobile terminal of control display interface scaling | |
| CN104978030A (en) | Left and right hand based software and method for automatically adjusting display interface of mobile phone | |
| CN107580126A (en) | A kind of air navigation aid and mobile terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |