CN110262739A - Switching method, device and electronic equipment - Google Patents

Switching method, device and electronic equipment Download PDF

Info

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
input pattern
content
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
Application number
CN201910587114.3A
Other languages
Chinese (zh)
Inventor
陈明广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910587114.3A priority Critical patent/CN110262739A/en
Publication of CN110262739A publication Critical patent/CN110262739A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing 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/03543Mice or pucks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

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

Switching method, device and electronic equipment
Technical field
This application involves technical field of information processing, set more specifically to a kind of switching method, device and electronics It is standby.
Background technique
Currently, user would generally use with position indicating function input equipment (such as mouse) other equipment (such as Computer etc.) in carry out position instruction.However, the mode that current input equipment is interacted with user is single, by taking mouse as an example, use Family is only capable of switching over for the function of the left and right buttons of mouse, and user is poor using the convenience of input equipment.
Therefore, how to improve user becomes technical problem urgently to be resolved using the convenience of input equipment.
Summary of the invention
The purpose of the application is to provide a kind of switching method, device and electronic equipment, including following technical solution:
A kind of switching method, comprising:
Obtain input data;
If the input data meets condition, the second input pattern is switched to from the first input pattern;
Wherein, under first input pattern, the track data from input equipment is with the response of the first response mode First track content;Under second input pattern, the track data from the input equipment is rung with the second response mode It should be the second track content, first response mode is different with second response mode.
The above method, it is preferred that described under first input pattern, the track data from input equipment is with first Response mode response is the first track content;Under second input pattern, the track data from the input equipment with The response of second response mode is the second track content, comprising:
Under first input pattern, the first adjustment is carried out to the track data from input equipment, obtains the One track data, first track data match first track content;It is described to come under second input pattern The track data of input equipment matches second track content;Alternatively,
Under first input pattern, the track data from input equipment matches first track content; Under second input pattern, second adjustment is carried out to the track data from input equipment, obtains the second track number According to second track data matches second track content;Alternatively,
Under first input pattern, the first adjustment is carried out to the track data from input equipment, obtains the One track data, first track data match first track content;Under second input pattern, to described next Second adjustment is carried out from the track data of input equipment, obtains the second track data, the second track data matching described the Two track contents, the first adjustment are different with the second adjustment.
The above method, it is preferred that first track content is the first value with the angle of reference direction in preset direction; Second track content is second value with the angle of the reference direction in the preset direction;First value and described Second value is different.
The above method, it is preferred that the acquisition input data;If the input data meets condition, from the first input Pattern switching is to the second input pattern, comprising:
Obtain the selection of data of input;
If the selection of data characterization has selected target information from candidate information, switched to from the first input pattern Second input pattern.
The above method, it is preferred that the selection of data for obtaining input;If the selection of data is characterized from time It selects and has selected target information in information, switch to the second input pattern from the first input pattern, comprising:
It shows interactive interface, at least two candidate attitudes of the input equipment is shown on the interactive interface;It is different Candidate attitudes correspond to different angle adjustment increments, the angle adjustment increment is used for the track from input equipment The angle of data is adjusted;
The selection of data of input is obtained based on the interactive interface;
If the selection of data characterization has selected targeted attitude from least two candidate attitudes, defeated from first Enter pattern switching to the second input pattern.
The above method, it is preferred that the acquisition input data;If the input data meets condition, from the first input Pattern switching is to the second input pattern, comprising:
Obtain the track data or track content of the input equipment input;
If the track data is target trajectory data or the track content is target trajectory content, it is based on the target Track data or the target trajectory content switch to the second input pattern from the first input pattern.
The above method, it is preferred that obtain the track content of the input equipment input;If the track content is target track Mark content switches to the second input pattern from the first input pattern based on the target trajectory content, comprising:
Show interactive interface;
Obtain the track content that the input equipment is inputted in the interactive interface;
If the track content is the straight line of target direction, the straight line based on the target direction is cut from the first input pattern Shift to the second input pattern.
The above method, it is preferred that it is defeated that the straight line based on the target direction from the first input pattern switches to second Enter mode, comprising:
Determine that angle adjusts increment, base according to the straight line of the reference line of the target direction and the target direction The second input pattern is determined in angle adjustment increment.
A kind of switching device, comprising:
Module is obtained, for obtaining input data;
Switching module switches to the second input mould from the first input pattern if meeting condition for the input data Formula;
Wherein, under first input pattern, the track data from input equipment is with the response of the first response mode First track content;Under second input pattern, the track data from the input equipment is rung with the second response mode It should be the second track content, first response mode is different with second response mode.
A kind of electronic equipment, comprising:
Memory, at least storing one group of instruction set;
Processor is carried out for calling and executing the described instruction collection in the memory by executing described instruction collection It operates below:
Obtain input data;
If the input data meets condition, the second input pattern is switched to from the first input pattern;
Wherein, under first input pattern, the track data from input equipment is with the response of the first response mode First track content;Under second input pattern, the track data from the input equipment is rung with the second response mode It should be the second track content, first response mode is different with second response mode.
By above scheme it is found that a kind of switching method, device and electronic equipment provided by the present application, obtain input number According to switching to the second input pattern from the first input pattern, wherein in the first input pattern when input data meets condition Under, 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, come It is responded from the track data of input equipment with the second response mode as the second track content, the first response mode and the second responder Formula is different.Through the above scheme, the switching for realizing the response mode of the track data of input equipment for increases input The interactive mode of equipment and user improves the convenience that user uses input equipment.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to the required attached drawing of embodiment It is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of switching method provided by the embodiments of the present application;
Fig. 2 is acquisition input data provided by the embodiments of the present application, if input data meets condition, from the first input mould Formula switches to a kind of implementation flow chart of the second input pattern;
Fig. 3 is a kind of exemplary diagram of interactive interface provided by the embodiments of the present application;
Fig. 4 is another exemplary diagram of interactive interface provided by the embodiments of the present application;
Fig. 5 is acquisition input data provided by the embodiments of the present application, if input data meets condition, from the first input mould Formula switches to another implementation flow chart of the second input pattern;
Fig. 6 is another exemplary diagram of interactive interface provided by the embodiments of the present application;
Fig. 7 is that input pattern provided by the embodiments of the present application is when defaulting input pattern, and user inputs straight line by mouse When a kind of exemplary diagram;
Fig. 8 is a kind of structural schematic diagram of switching device provided by the embodiments of the present application;
Fig. 9 is a kind of structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specification and claims and term " first " in above-mentioned attached drawing, " second ", " third " " the 4th " etc. (if In the presence of) it is part for distinguishing similar, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, can be in addition to illustrating herein so as to embodiments herein described herein Other than sequence implement.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under that premise of not paying creative labor Embodiment shall fall in the protection scope of this application.
Switching method provided by the present application can be used in electronic equipment, which can connect input equipment, make Position instruction can be carried out in the electronic equipment by obtaining the input equipment.The electronic equipment can be computer, such as desk-top calculating Machine, laptop, all-in-one machine etc..Input equipment can be external or built-in mouse, TrackPoint, touch tablet or trace ball etc. Track input equipment.
A kind of implementation flow chart of switching method provided by the present application is as shown in Figure 1, may include:
Step S11: input data is obtained.
The input data can be the data that user executes predetermined registration operation and inputs.It is optional:
The input data can be the relevant data in position that user is inputted by input equipment;Alternatively,
The data selected by input equipment or touch control operation;Alternatively,
The input data being achieved other ways, for example, the sensed data obtained by gesture operation, for example, user The sensed data for holding input equipment and whipping input equipment and acquiring passes through the rail for the operating body that touch screen acquires for another example Mark data.It can also be the input voice data etc. acquired by microphone.
Step S12: if input data meets condition, the second input pattern is switched to from the first input pattern.Wherein, exist Under first input pattern, the track data from input equipment is with the response of the first response mode for the first track content;Second Under input pattern, the track data from input equipment is responded with the second response mode as the second track content, the first responder Formula and the second response mode difference.
If input data meets condition, illustrate that user wants to carry out having switched for input pattern.
User can determine whether the switching that input pattern is carried out for input equipment according to the use habit of oneself, if needing The switching that input pattern is carried out for input equipment, can execute predetermined registration operation and input data, carry out input mould with instruction The switching of formula.To answer data instance by gesture operation the sense of access, if sensed data characterization input equipment moves reciprocatingly (as used Family holds input equipment and is swung left and right), then illustrate that input data meets condition, at this point it is possible to switch to from the first input pattern Second input pattern.For facilitate user to know current input mode, after being switched to the second input pattern, prompt can be popped up Information can also prompt some description informations of second input pattern to prompt what mode the second input pattern of user is, To help user to understand the second input pattern in more detail, conveniently determine whether to continue to switch input pattern.
Track data from input equipment is sensor (such as displacement sensor, photoelectric sensing in input equipment Device etc.) movement based on input equipment and the position data of input equipment that acquires.
Switching method provided by the present application obtains input data, when input data meets condition, from the first input pattern Switch to the second input pattern, it is different to the response mode of the track data from input equipment under different input patterns.It is real The switching for having showed the response mode to the track data from input equipment increases input equipment and the interactive mode of user, To improve the convenience that user uses input equipment.
In an optional embodiment, whether the first response mode and the second response mode difference can be presented as to coming from The track data of input equipment is adjusted, alternatively, the adjustment mode to the track data from input equipment can be presented as It is different.Specifically, above-mentioned under the first input pattern, the track data from input equipment is with the response of the first response mode for the One track content;Under the second input pattern, the track data from input equipment is with the response of the second response mode for the second rail Mark content may include:
Under the first input pattern, the first adjustment is carried out to the track data from input equipment, obtains the first track number According to the first track data matches the first track content;Under the second input pattern, track data from input equipment matching the Two track contents.
In the present embodiment, under the first input pattern, first the track data from input equipment is adjusted and is adjusted Track data (track data hereinafter referred to as adjusted) after whole, is then obtained in the first track by track data adjusted Hold, and under the second input pattern, (in other words, adjustment amount zero, phase are not adjusted to the track data from input equipment When in not being adjusted), the second track content is directly obtained by the original track data from input equipment.
Alternatively,
Under the first input pattern, the track data from input equipment matches the first track content;Mould is inputted second Under formula, second adjustment is carried out to the track data from input equipment, obtains the second track data, the second track data matching the Two track contents.
In the present embodiment, under the first input pattern, the track data from input equipment is not adjusted (or Say, adjustment amount zero is equivalent to and is not adjusted), the first rail is directly obtained by the original track data from input equipment Mark content, and under the second input pattern, the track after being adjusted first is adjusted to the track data from input equipment Then data obtain the second track content by track data adjusted.
Alternatively,
Under the first input pattern, the first adjustment is carried out to the track data from input equipment, obtains the first track number According to the first track data matches the first track content;Under the second input pattern, the track data from input equipment is carried out Second adjustment obtains the second track data, and the second track data matches the second track content, and the first adjustment and second adjustment are not Together.
In the present embodiment, under the first input pattern, first the track data from input equipment is adjusted and is adjusted Then track data after whole obtains the first track content by track data adjusted, under the second input pattern, and first Track data after being adjusted is adjusted to the track data from input equipment, is then obtained by track data adjusted To the second track content.But under two kinds of input patterns, the adjustment carried out to the track data from input equipment is different.
In an optional embodiment, above-mentioned first track content is first with the angle of reference direction in preset direction Value, the second track content is second value with the angle of reference direction in preset direction.First value and second value difference.Namely It says, user is during using input equipment, if having switched input pattern, the track content of input equipment input is pre- Setting can also change on direction with the angle of reference direction.
Optionally, above-mentioned preset direction can be different according to the difference of the shape of track content.Specifically,
If track content is straight line, preset direction is the extending direction of track content (i.e. far from track content origin Direction).
If track content be curve, preset direction are as follows: in the content of track with base position (such as track content rise Point) tangential direction at the pre-determined distance.Assuming that in the content of track with base position at pre-determined distance be point A, then on State the length for the track content that pre-determined distance refers between A point and base position.
For example, preset direction is the extending direction of the first track content if the first track content is straight line, similarly, if Second track content is straight line, then preset direction is the extending direction of the second track content.If the first track content is curve, Preset direction can refer to the tangential direction in the first track content with the starting point of the first track at pre-determined distance, similarly, If the second track content is curve, preset direction can refer to the starting point in the second track content with the second track content at a distance of pre- If the direction of tangent line at distance.
In an optional embodiment, above-mentioned acquisition input data;If input data meets condition, from the first input mould Formula switches to a kind of implementation flow chart of the second input pattern as shown in Fig. 2, may include:
Step S21: the selection of data of input is obtained.
The selection of data can be gesture operation data, alternatively, can be with voice operating data.
Step S22: it if selection of data characterization has selected target information from candidate information, is cut from the first input pattern Shift to the second input pattern.
In the embodiment of the present application, pre-sets multiple candidate informations and selected for user.Different candidate information is corresponding Different input patterns.
The one-to-one relationship of gesture operation and candidate information can be preset, thus when user executes preset gesture When operation, it can determine that corresponding candidate information (i.e. target information) can also show the letter chosen in order to facilitate user's operation Breath, so that user determines whether to have selected required information.
Selection of data is obtained except through gesture operation, interactive interface is also based on and obtains selection of data, Specifically, a kind of implementation of the selection of data of above-mentioned acquisition input can be with are as follows:
It shows interactive interface, at least two candidate attitudes of input equipment is shown on the interactive interface;Different candidates Posture corresponds to different angle adjustment increments, the angle adjust increment be used for the angle of the track data from input equipment into Row adjustment.
For inventor the study found that when different users holds input equipment, the posture of input equipment may be different.It is based on This, in the embodiment of the present application, above-mentioned at least two candidate attitudes can be different input equipment when user holds input equipment Common various postures.
In addition, inventor also found, when the posture difference of input equipment, the precision of the track content of input has difference It is different.For drawing horizontal linear by mouse, in general, the direction of only mouse and mouse upper roller institute in the plane it is horizontal directly The parallel Shi Caineng of line draws the horizontal linear of degree of precision, and when mouse is oriented other directions, the horizontal line drawn is inclination , linear precision reduces, and mouse resolution is higher to be more obvious, especially for requiring needle locating relatively high game player For, this is a bigger problem.Based on this, in the embodiment of the present application, for different candidate attitudes, it is correspondingly arranged Different angles adjusts increment, which includes the size of adjustment direction and adjustment angle.
In general, the tilt angle of input equipment is different, therefore, above-mentioned defeated when different users holds input equipment Entering the size adjusted the angle in the corresponding angle adjustment increment of posture of equipment can count to obtain by big data, for example, should The size of adjustment angle can be the tilt angle of input equipment when several users hold input equipment with same or similar posture Average value.
The selection of data of input is obtained based on interactive interface.
User can hold the habit of input equipment according to oneself, when determining gripping input equipment, the posture of input equipment, Then, the input equipment of identical posture is selected in interactive interface.
As shown in figure 3, in the example, listing mouse for a kind of exemplary diagram of interactive interface provided by the embodiments of the present application Three kinds of common postures of target.If user holds mouse, the direction of mouse is to be tilted a certain angle counterclockwise, then can choose a Posture, if user holds mouse, the direction of mouse and mouse upper roller horizontal direction parallel in the plane, then can select B posture is selected, if user holds mouse, the direction of mouse is to be tilted a certain angle clockwise, then can choose c posture.
Correspondingly, being cut if selection of data characterization has selected target information from candidate information from the first input pattern The second input pattern is shifted to, can specifically include:
If selection of data characterization has selected targeted attitude from least two candidate attitudes, cut from the first input pattern The second input pattern is shifted to, under the second input pattern, based on the corresponding angle adjustment increment response of targeted attitude from input The track data of equipment.
In the present embodiment, above-mentioned angle adjustment increment can be used for that (this first according to first movement track to input equipment Motion track can be any motion track that input equipment may be implemented) track data mobile and acquire in real time adjusted It is whole, i.e., the track data that input equipment acquires in real time is calibrated, so that track data adjusted and input equipment are with pre- If posture coincides according to the track data that first movement track is mobile and acquires or approximate coincidence, it is based on track number adjusted According to track content is obtained, precise positioning in different positions may be implemented.Preset posture refers to the position instruction essence of input equipment Spend posture when highest.
In above-described embodiment, the corresponding angle adjustment increment of the posture of input equipment is that the pre- big data that first passes through counts to obtain 's.In an optional embodiment, the corresponding angle step of the posture of input equipment can also be depending on the user's operation and real-time It determines.Specifically, can also include: after selection target posture
Obtain the track content of input equipment input.The track content can be the rail that user moves input equipment and inputs Mark content.Wherein, when user's movement input equipment, the posture and targeted attitude of input equipment are same or similar.
If the track content obtained is target trajectory content, track content and benchmark rail based on input equipment input Mark content determines that angle adjusts increment.Reference trajectory content can refer in the track inputted when input equipment is in targeted attitude Hold.The preset posture can be the posture when position instruction precision highest of input equipment.The track content of acquisition is target track Mark content may include: acquisition track content and reference trajectory content difference in presetting range.
Establish the corresponding relationship of angle the adjustment increment and above-mentioned targeted attitude.
As shown in figure 4, being another exemplary diagram of interactive interface provided by the embodiments of the present application.In the interactive interface, both Including posture candidate region, the posture of input equipment is selected for user, and including track content input area, which has Prompt information, with the track content for prompting user's input specified, as shown in figure 4, " X-axis setting starts " prompt user inputs X-axis The straight line in direction, user click " X-axis setting starts ", trigger the setting procedure of horizontal direction, and user inputs the straight line of X-direction Afterwards, system determines the corresponding angle adjustment increment of X-direction.Similarly, " Y-axis setting starts " prompt user inputs Y direction Straight line, user click " Y-axis setting starts ", and trigger the setting procedure of vertical direction is after user inputs the straight line of Y direction It unites and determines that the corresponding angle of Y direction adjusts increment.
The corresponding angle of posture by determining input equipment in real time adjusts increment, and more accurately position may be implemented and refer to Show.
It is the switching that the posture based on input equipment carries out input pattern in previous embodiment.In an optional embodiment In, the switching of input pattern can also be carried out by the track data or track content that input equipment inputs.Optionally, above-mentioned to obtain Obtain input data;If input data meets condition, the another of the second input pattern is switched to from the first input pattern and is realized Flow chart is as shown in figure 5, may include:
Step S51: the track data or track content of input equipment input are obtained.
The track data of input equipment input refers to the track data that input equipment acquires in real time, the rail of input equipment input Mark content refers to the matched track content of the track data acquired in real time with input equipment.
Step S52: if the track data of input equipment input is in the track of target trajectory data or input equipment input Holding is target trajectory content, switches to the second input mould from the first input pattern based on target trajectory data or target trajectory content Formula.
The track data of input equipment input is the track data and benchmark that target trajectory data refer to input equipment input The difference of track data is in the first preset range.Difference between track data can refer to the angle difference between track data. Specifically, track data is a series of coordinate sequence being made of coordinate datas, then can calculate corresponding in different coordinate sequences Coordinate data between angle difference, finally all angle difference fusions (for example, averaging) are obtained between track data Angle difference.Wherein, corresponding coordinate data refers in different coordinate sequences, with same sequence number in different coordinate sequences Coordinate data.
The track content of input equipment input is the track content and target that target trajectory content refers to input equipment input The difference of track content is in the second preset range.Difference between the content of track can refer to the angle difference between the content of track.
In an optional embodiment, a kind of implementation of the track content of above-mentioned acquisition input equipment input can be with Are as follows:
Show interactive interface.There can be prompt information on the interactive interface, with the track content for prompting user's input specified. Referring to Fig. 6, Fig. 6 is another exemplary diagram of interactive interface provided by the embodiments of the present application.
Obtain the track content that input equipment is inputted in interactive interface.
If the track content of input is the straight line of target direction, switched based on the straight line of target direction from the first input pattern To the second input pattern.
The straight line of the target direction can be the straight line with the angle of target direction within a preset range.For example, target side To being X-direction (i.e. horizontal direction), then, the straight line of target direction can be with the angle of X-direction at (- 10 °~10 °) Straight line in range.
Optionally, target direction can there are two directions, such as target direction is two mutually perpendicular directions, respectively X-direction and Y direction, then the straight line of target direction can be with the angle of one of target direction within a preset range Straight line, that is to say, that input equipment input track content be straight line, as long as and the straight line in X-direction and Y direction The angle in one of direction within a preset range this straight line be exactly target direction straight line.
Optionally, the above-mentioned a kind of reality for switching to the second input pattern from the first input pattern based on the straight line of target direction Existing mode can be with are as follows:
It determines that angle adjusts increment according to the straight line of the reference line of target direction and above-mentioned target direction, is based on angle Degree adjustment increment determines the second input pattern.That is, adjusting increment based on identified angle under the second input pattern Respond the track data from input equipment.Specifically, increment can be adjusted based on determined angle to input equipment according to the The track data that one motion track is mobile and acquires in real time is adjusted, so that track data adjusted and input equipment are with pre- If posture coincides according to the track data that first movement track is mobile and acquires or approximate coincidence, it is based on track number adjusted According to track content is obtained, precise positioning in different positions may be implemented.Preset posture refers to the position instruction essence of input equipment Spend posture when highest.
Wherein, the reference line of target direction refers to the straight line parallel with target direction.
In an optional embodiment, the straight line of above-mentioned target direction is to be parallel to each other or approximately parallel a plurality of straight line; Alternatively,
The straight line of target direction includes first kind straight line and the second class straight line, wherein first kind straight line and the second class straight line Vertical or near normal.If first kind straight line and the second class straight line include it is a plurality of, a plurality of first kind straight line be parallel to each other or Less parallel, a plurality of second class straight line is parallel to each other or less parallel.
In the case where including a plurality of parallel or approximately parallel straight line, according to the reference line and mesh of target direction The straight line in mark direction determines that angle adjusts increment, comprising:
According to being parallel to each other or approximately parallel straight line fitting straight line;The straight line that reference line is obtained with fitting is compared It is right, to determine that angle adjusts increment.Alternatively,
Reference line is compared with each straight line respectively, the determining initial angle with each line correspondences adjusts Increment;
By the initial angle adjustment increment fusion (for example, averaging) of all line correspondences, angle adjustment increment is obtained.
In the case where including first kind straight line and the second class straight line, first angle tune can be determined according to first kind straight line Whole increment determines that second angle adjusts increment according to the second class straight line;First angle is adjusted into increment and second angle adjustment increases Amount fusion (e.g., being averaging) is that final angle adjusts increment.
In an optional embodiment, under the second input pattern, input equipment is come from based on angle adjustment increment response Track data can specifically include:
The angle of track data from input equipment is adjusted into above-mentioned angle and adjusts increment, the track number after being adjusted According to;The adjustment process can be executed in input equipment side, can also be executed in electronic equipment side.
It is the second track content by track data adjusted response.
If above-mentioned adjustment process is executed in input equipment side, track data adjusted is sent electron by input equipment The track data received response is directly the second track content by equipment, electronic equipment.
If above-mentioned adjustment process is executed in electronic equipment side, collected track data is transmitted directly to by input equipment Electronic equipment, the track data received is first adjusted above-mentioned angle and adjusts increment by electronic equipment, then by track adjusted Data response is the second track content.
The embodiment of the present application is illustrated below with reference to specific application scenarios.
In the example, input equipment is mouse, and there are three types of specific input patterns, as shown in figure 3, respectively corresponding mouse Three kinds of different postures: mouse is tilted a certain angle (Fig. 3-a) counterclockwise, and mouse does not tilt (Fig. 3-b), alternatively, mouse Mark is tilted a certain angle (Fig. 3-c) in the direction of the clock.Wherein, mouse posture shown in Fig. 3-a corresponds to first angle adjustment and increases It measures, mouse posture shown in Fig. 3-b corresponds to second angle adjustment increment (usually zero or near zero), mouse shown in Fig. 3-c Posture corresponds to third angle adjustment increment.
When being in mouse posture shown in Fig. 3-b as mouse, therefore the position instruction precision highest of mouse is defaulted defeated Entering mode is the corresponding input pattern of mouse posture shown in Fig. 3-b.
Referring to Fig. 7, it is when defaulting input pattern that Fig. 7, which is input pattern provided by the embodiments of the present application, user passes through mouse A kind of exemplary diagram when mark input straight line.If user A operates mouse, posture posture as shown in Fig. 3-b of mouse is then drawn Straight line as shown in Fig. 7-a, be horizontal.If user A operates mouse, the posture of mouse is then drawn as shown in Fig. 3-a Straight line meeting run-off the straight, as shown in Fig. 7-b or Fig. 7-c.Similarly, if user A operates mouse, the posture of mouse such as Fig. 3-c It is shown, then the straight line drawn also can run-off the straight, as shown in Fig. 7-b or Fig. 7-c.
If user A practise righthanded operate mouse, and operate mouse when mouse posture as shown in Fig. 3-a, if user A exists Before mouse, input pattern is switched into the corresponding input pattern of mouse posture shown in Fig. 3-a, under the input pattern, In mouse moving process, first angle is adjusted to the track data of mouse acquisition and adjusts increment.When user A operation mouse draws water When flat line, the horizontal linear that draws as shown in Fig. 7-a will not run-off the straight, or substantially will not run-off the straight.
If user A practise righthanded operate mouse, and operate mouse when mouse posture as shown in Fig. 3-b, then user A can With the switching without input pattern, when operating mouse picture horizontal linear, the horizontal linear drawn is as shown in Fig. 7-a, being water Flat line.
If user B habit use left-handed operation mouse, and operate mouse when mouse posture as shown in Fig. 3-b, then if with Before family B uses mouse, there are other users using the mouse, and input pattern is switched to the corresponding input of posture shown in Fig. 3-a Mode, if then switching of the user B without input pattern, when user B operation mouse draws horizontal linear, the straight line drawn can be such as Shown in Fig. 7-b or Fig. 7-c, there is tilt phenomenon.If it is corresponding that input pattern is switched to the posture as shown in Fig. 3-b by user B Input pattern, then when user B operation mouse draws horizontal linear, the straight line drawn can be not in inclination as shown in Fig. 7-a, Or it will not tilt substantially.
If user B habit use left-handed operation mouse, and operate mouse when mouse posture as shown in Fig. 3-c, then if with Before family B uses mouse, there are other users using the mouse, and input pattern is switched to the corresponding input of posture shown in Fig. 3-a Mode, if then switching of the user B without input pattern, when user B operation mouse draws horizontal linear, the straight line drawn can go out Existing tilt phenomenon.If input pattern is switched to the corresponding input pattern of the posture as shown in Fig. 3-c by user B, when user B is grasped When making mouse picture horizontal linear, the straight line drawn is not in inclination or will not tilt substantially.
Corresponding with embodiment of the method, the application also provides a kind of switching device, and the one of switching device provided by the present application Kind structural schematic diagram is as shown in figure 8, may include:
Obtain module 81 and switching module 82;Wherein,
Module 81 is obtained for obtaining input data;
If switching module 82 meets condition for the input data, the second input mould is switched to from the first input pattern Formula;
Wherein, under first input pattern, the track data from input equipment is with the response of the first response mode First track content;Under second input pattern, the track data from the input equipment is rung with the second response mode It should be the second track content, first response mode is different with second response mode.
Switching device provided by the present application obtains input data, when input data meets condition, from the first input pattern Switch to the second input pattern, it is different to the response mode of the track data from input equipment under different input patterns.It is real The switching for having showed the response mode to the track data from input equipment increases input equipment and the interactive mode of user, To improve the convenience that user uses input equipment.
In an optional embodiment, further includes:
Respond module carries out the to the track data from input equipment under first input pattern One adjustment, obtains the first track data, and first track data matches first track content;In the second input mould Under formula, the track data from input equipment matches second track content;Alternatively,
Under first input pattern, the track data from input equipment matches first track content; Under second input pattern, second adjustment is carried out to the track data from input equipment, obtains the second track number According to second track data matches second track content;Alternatively,
Under first input pattern, the first adjustment is carried out to the track data from input equipment, obtains the One track data, first track data match first track content;Under second input pattern, to described next Second adjustment is carried out from the track data of input equipment, obtains the second track data, the second track data matching described the Two track contents, the first adjustment are different with the second adjustment.
In an optional embodiment, first track content is first with the angle of reference direction in preset direction Value;Second track content is second value with the angle of the reference direction in the preset direction;First value and The second value is different.
In an optional embodiment, obtaining module 81 specifically can be used for obtaining the selection of data of input;
If switching module 82 specifically can be used for the selection of data characterization has selected target letter from candidate information Breath, switches to the second input pattern from the first input pattern.
In an optional embodiment, obtaining module 81 specifically can be used for: display interactive interface, on the interactive interface Show at least two candidate attitudes of the input equipment;Different candidate attitudes correspond to different angle adjustment increments, institute Angle adjustment increment is stated for being adjusted to the angle of the track data from input equipment;Based on the interactive interface Obtain the selection of data of input;
If switching module 82 specifically can be used for the selection of data characterization from least two candidate attitudes Targeted attitude has been selected, has switched to the second input pattern from the first input pattern.
In an optional embodiment, obtaining module 81 specifically can be used for: obtain the track of the input equipment input Data or track content;
Switching module 82 specifically can be used for: if the track data is target trajectory data or the track content is mesh Track content is marked, switches to the second input from the first input pattern based on the target trajectory data or the target trajectory content Mode.
In an optional embodiment, obtaining module 81 specifically can be used for: display interactive interface;The input is obtained to set The standby track content in interactive interface input;
Switching module 82 specifically can be used for: if the track content is the straight line of target direction, be based on the target side To straight line switch to the second input pattern from the first input pattern.
In an optional embodiment, straight line of the switching module 82 based on the target direction switches from the first input pattern When to the second input pattern, specifically it can be used for: according to the straight of the reference line of the target direction and the target direction Line determines that angle adjusts increment, determines the second input pattern based on angle adjustment increment.
Corresponding with embodiment of the method, the application also provides a kind of electronic equipment, a kind of structural representation of the electronic equipment Figure is as shown in figure 9, may include:
Memory 91, at least storing one group of instruction set;
Processor 92, for calling and executing the described instruction collection in the memory, by execute described instruction collection into The following operation of row:
Obtain input data;
If the input data meets condition, the second input pattern is switched to from the first input pattern;
Wherein, under first input pattern, the track data from input equipment is with the response of the first response mode First track content;Under second input pattern, the track data from the input equipment is rung with the second response mode It should be the second track content, first response mode is different with second response mode.
Electronic equipment provided by the present application obtains input data, when input data meets condition, from the first input pattern Switch to the second input pattern, it is different to the response mode of the track data from input equipment under different input patterns.It is real The switching for having showed the response mode to the track data from input equipment increases input equipment and the interactive mode of user, To improve the convenience that user uses input equipment.
In an optional embodiment, processor 92 is under first input pattern, to described from input equipment Track data carries out the first adjustment, obtains the first track data, and first track data matches first track content;? Under second input pattern, the track data from input equipment matches second track content;Alternatively,
Under first input pattern, the track data from input equipment matches first track content; Under second input pattern, second adjustment is carried out to the track data from input equipment, obtains the second track number According to second track data matches second track content;Alternatively,
Under first input pattern, the first adjustment is carried out to the track data from input equipment, obtains the One track data, first track data match first track content;Under second input pattern, to described next Second adjustment is carried out from the track data of input equipment, obtains the second track data, the second track data matching described the Two track contents, the first adjustment are different with the second adjustment.
In an optional embodiment, first track content is first with the angle of reference direction in preset direction Value;Second track content is second value with the angle of the reference direction in the preset direction;First value and The second value is different.
In an optional embodiment, processor 92 is obtaining input data;If the input data meets condition, from When first input pattern switches to the second input pattern, specifically it can be used for:
Obtain the selection of data of input;
If the selection of data characterization has selected target information from candidate information, switched to from the first input pattern Second input pattern.
In an optional embodiment, processor 92 is in the selection of data for obtaining input;If the selection operation number Target information has been selected from candidate information according to characterization, it, specifically can be with when switching to the second input pattern from the first input pattern For:
It shows interactive interface, at least two candidate attitudes of the input equipment is shown on the interactive interface;It is different Candidate attitudes correspond to different angle adjustment increments, the angle adjustment increment is used for the track from input equipment The angle of data is adjusted;
The selection of data of input is obtained based on the interactive interface;
If the selection of data characterization has selected targeted attitude from least two candidate attitudes, defeated from first Enter pattern switching to the second input pattern.
In an optional embodiment, processor 92 is obtaining input data;If the input data meets condition, from When first input pattern switches to the second input pattern, specifically it can be used for:
Obtain the track data or track content of the input equipment input;
If the track data is target trajectory data or the track content is target trajectory content, it is based on the target Track data or the target trajectory content switch to the second input pattern from the first input pattern.
In an optional embodiment, processor 92 is in the track content for obtaining the input equipment input;If the rail Mark content is target trajectory content, when switching to the second input pattern from the first input pattern based on the target trajectory content, Specifically it can be used for:
Show interactive interface;
Obtain the track content that the input equipment is inputted in the interactive interface;
If the track content is the straight line of target direction, the straight line based on the target direction is cut from the first input pattern Shift to the second input pattern.
In an optional embodiment, processor 92 switches in the straight line based on the target direction from the first input pattern When to the second input pattern, specifically it can be used for:
Determine that angle adjusts increment, base according to the straight line of the reference line of the target direction and the target direction The second input pattern is determined in angle adjustment increment.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.Another point, shown or discussed mutual coupling, direct-coupling or communication connection can To be the indirect coupling or communication connection of device or unit through some interfaces, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It should be appreciated that can be combined with each other combination in the embodiment of the present application from power, each embodiment, feature, can realize Solve aforementioned technical problem.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of switching method, comprising:
Obtain input data;
If the input data meets condition, the second input pattern is switched to from the first input pattern;
Wherein, under first input pattern, the track data from input equipment is with the response of the first response mode for first Track content;Under second input pattern, the track data from the input equipment is with the response of the second response mode Second track content, first response mode are different with second response mode.
2. according to the method described in claim 1, described under first input pattern, the track data from input equipment With the response of the first response mode for the first track content;Under second input pattern, the track from the input equipment Data are with the response of the second response mode for the second track content, comprising:
Under first input pattern, the first adjustment is carried out to the track data from input equipment, obtains the first rail Mark data, first track data match first track content;It is described from input under second input pattern The track data of equipment matches second track content;Alternatively,
Under first input pattern, the track data from input equipment matches first track content;Institute It states under the second input pattern, second adjustment is carried out to the track data from input equipment, obtains the second track data, institute State the second track data matching second track content;Alternatively,
Under first input pattern, the first adjustment is carried out to the track data from input equipment, obtains the first rail Mark data, first track data match first track content;Under second input pattern, to described from defeated The track data for entering equipment carries out second adjustment, obtains the second track data, and second track data matches second rail Mark content, the first adjustment are different with the second adjustment.
3. according to the method described in claim 1, first track content is with the angle of reference direction in preset direction First value;Second track content is second value with the angle of the reference direction in the preset direction;Described first It is worth different with the second value.
4. according to the method described in claim 1, the acquisition input data;If the input data meets condition, from One input pattern switches to the second input pattern, comprising:
Obtain the selection of data of input;
If the selection of data characterization has selected target information from candidate information, second is switched to from the first input pattern Input pattern.
5. according to the method described in claim 4, the selection of data for obtaining input;If the selection of data table Sign has selected target information from candidate information, switches to the second input pattern from the first input pattern, comprising:
It shows interactive interface, at least two candidate attitudes of the input equipment is shown on the interactive interface;Different times Posture is selected to correspond to different angle adjustment increments, the angle adjustment increment is used for the track data from input equipment Angle be adjusted;
The selection of data of input is obtained based on the interactive interface;
If the selection of data characterization has selected targeted attitude from least two candidate attitudes, from the first input mould Formula switches to the second input pattern.
6. according to the method described in claim 1, the acquisition input data;If the input data meets condition, from One input pattern switches to the second input pattern, comprising:
Obtain the track data or track content of the input equipment input;
If the track data is target trajectory data or the track content is target trajectory content, it is based on the target trajectory Data or the target trajectory content switch to the second input pattern from the first input pattern.
7. according to the method described in claim 6, obtaining the track content of the input equipment input;If the track content is Target trajectory content switches to the second input pattern from the first input pattern based on the target trajectory content, comprising:
Show interactive interface;
Obtain the track content that the input equipment is inputted in the interactive interface;
If the track content is the straight line of target direction, the straight line based on the target direction is switched to from the first input pattern Second input pattern.
8. according to the method described in claim 7, the straight line based on the target direction is switched to from the first input pattern Second input pattern, comprising:
It determines that angle adjusts increment according to the straight line of the reference line of the target direction and the target direction, is based on institute It states angle adjustment increment and determines the second input pattern.
9. a kind of switching device, comprising:
Module is obtained, for obtaining input data;
Switching module switches to the second input pattern from the first input pattern if meeting condition for the input data;
Wherein, under first input pattern, the track data from input equipment is with the response of the first response mode for first Track content;Under second input pattern, the track data from the input equipment is with the response of the second response mode Second track content, first response mode are different with second response mode.
10. a kind of electronic equipment, comprising:
Memory, at least storing one group of instruction set;
Processor, it is following by executing the progress of described instruction collection for calling and executing the described instruction collection in the memory Operation:
Obtain input data;
If the input data meets condition, the second input pattern is switched to from the first input pattern;
Wherein, under first input pattern, the track data from input equipment is with the response of the first response mode for first Track content;Under second input pattern, the track data from the input equipment is with the response of the second response mode Second track content, first response mode are different with second response mode.
CN201910587114.3A 2019-07-01 2019-07-01 Switching method, device and electronic equipment Pending CN110262739A (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925571A (en) * 2021-03-01 2021-06-08 联想(北京)有限公司 Control method and device

Citations (5)

* Cited by examiner, † Cited by third party
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 圆展科技股份有限公司 Penicillar indicator 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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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 圆展科技股份有限公司 Penicillar indicator 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)

* Cited by examiner, † Cited by third party
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
US9588599B2 (en) Magnetic vector sensor positioning and communication system
KR101542625B1 (en) Method and apparatus for selecting an object within a user interface by performing a gesture
CN107615214B (en) Interface control system, interface control device, interface control method, and program
CA2864719C (en) Gesture recognition devices and methods
US8749502B2 (en) System and method for virtual touch sensing
CN109074217A (en) Application for multiple point touching input detection
US20180232106A1 (en) Virtual input systems and related methods
US20150116204A1 (en) Transparent display virtual touch apparatus not displaying pointer
US20150135144A1 (en) Apparatus for obtaining virtual 3d object information without requiring pointer
NO339941B1 (en) System and method for a gesture-based management system
CN102750044A (en) Virtual keyboard device and realizing method thereof
US10296096B2 (en) Operation recognition device and operation recognition method
Matulic et al. Multiray: multi-finger raycasting for large displays
JP2016100024A (en) Computing apparatus and method for three-dimensional interaction
CN111832648A (en) Key point marking method and device, electronic equipment and storage medium
CN110262739A (en) Switching method, device and electronic equipment
US11294510B2 (en) Method, system and non-transitory computer-readable recording medium for supporting object control by using a 2D camera
JP2015170278A (en) Information processing apparatus, information processing system and information processing method
US20210005014A1 (en) Non-transitory computer-readable medium, image processing method, and image processing system
CN105739684A (en) Electronic system with gesture calibration mechanism and method of operation thereof
CN106598240B (en) Menu item selection method and device
KR101966585B1 (en) Space touch device and and display device comprising the same
KR102225342B1 (en) Method, system and non-transitory computer-readable recording medium for supporting object control
US20220192487A1 (en) Method and system for determining dominant eye, and non-transitory computer-readable recording medium
JP2018156671A (en) Information processing system and game system

Legal Events

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