CN105487690A - Double-click processing method and slaved electronic device - Google Patents

Double-click processing method and slaved electronic device Download PDF

Info

Publication number
CN105487690A
CN105487690A CN201511008046.9A CN201511008046A CN105487690A CN 105487690 A CN105487690 A CN 105487690A CN 201511008046 A CN201511008046 A CN 201511008046A CN 105487690 A CN105487690 A CN 105487690A
Authority
CN
China
Prior art keywords
double
click
parameter value
threshold value
value
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.)
Granted
Application number
CN201511008046.9A
Other languages
Chinese (zh)
Other versions
CN105487690B (en
Inventor
郭峻豪
蔡佳青
詹宏智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qisda Suzhou Co Ltd
Qisda Corp
Original Assignee
Qisda Suzhou Co Ltd
Qisda Corp
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 Qisda Suzhou Co Ltd, Qisda Corp filed Critical Qisda Suzhou Co Ltd
Priority to CN201511008046.9A priority Critical patent/CN105487690B/en
Publication of CN105487690A publication Critical patent/CN105487690A/en
Application granted granted Critical
Publication of CN105487690B publication Critical patent/CN105487690B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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
    • 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/03541Mouse/trackball convertible devices, in which the same ball is used to track the 2D relative movement

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a double-click processing method and a slaved electronic device. A misjudgment of double-click operation can be avoided when a main control electronic device is connected with multiple slaved electronic devices. The double-click processing method comprises the steps that a first parameter value corresponding to first-time click operation is received and recorded; a second parameter value corresponding to second-time click operation is received and recorded; whether a first difference value of the second parameter value and the first parameter value meets a preset double-click threshold or not is judged; when it is judged that the first difference value meets the preset double-click threshold, a defined double-click parameter value is sent to the main control electronic device, a defined double-click difference value corresponding to the defined double-click parameter value is located within a system double-click threshold, the system double-click threshold is the double-click condition arranged in the main control electronic device, and therefore the situation that the slaved electronic device conducts double-click operation can be determined by the main control electronic device according to the defined double-click parameter value and the system double-click threshold.

Description

Double-click disposal route and slave electric device
Technical field
Originally relate to field of electronic devices, particularly relate to a kind of double-click disposal route and slave electric device.
Background technology
Double-click (doubleclick) double-click speed (doubleclickspeed) must be met, double-click the condition that distance two double-clicks parameter, system (OS) just can send double-click event (doubleclickevent), wherein, double-click distance comprise double-click width (doubleclickwidth) and double-click height (doubleclickheight).In prior art, control desk is utilized to adjust the speed of mouse or directly changed the numerical value double-clicking parameter by control inerface, the condition of the double-click parameter corresponding with multiple slaves that main control equipment connects is the condition of the double-click parameter that main control equipment is arranged, like this, when main control equipment connects multiple slave, different double-click parameter (i.e. double-click speeds cannot be set to each mouse be connected on main frame or touch control display, double-click distance), and the condition of the double-click parameter arranged in main control equipment possibly cannot adapt to the configuration (reaction velocity of slave, resolution of screen etc.), when causing double-clicking slave, main control equipment possibly cannot correctly judge whether to there occurs double-click event/double click operation.
Summary of the invention
The object of the present invention is to provide a kind of double-click disposal route and slave electric device, to solve the problem.
In order to achieve the above object, first aspect, the invention provides a kind of double-click disposal route, for slave electric device, the method comprises:
Receive and record the first parameter value corresponding when pressing of first time clicking operation;
Receive and record the second parameter value corresponding when second time clicking operation is pressed;
Judge whether the first difference of this second parameter value and this first parameter value meets to preset and double-click threshold value;
When judging that this first difference meets this default double-click threshold value, parameter value is double-clicked in definition and is sent to master control electronic installation, the definition double-click difference that this definition double-clicks parameter value corresponding is positioned at system double-click threshold value, it is be arranged at the double-click condition in this master control electronic installation that this system double-clicks threshold value, double-clicks threshold value determine that this slave electric device sends double click operation to make this master control electronic installation according to this definition double-click parameter value and this system.
Preferably, before this definition double-click parameter value is sent to this master control electronic installation, also comprise:
Obtain this corresponding with this slave electric device to preset and double-click threshold value and this system double-clicks threshold value; And
Contrast this to preset and double-click threshold value and this system and double-clicks threshold value, judge that whether this default double-click threshold value double-clicks threshold value with this system identical;
Wherein, this definition is double-clicked the step that parameter is sent to this master control electronic installation to comprise: when this preset double-click threshold value and this system double-clicks different and this first difference of threshold value meet this default double-click threshold value time, this definition double-click parameter value is sent to this master control electronic installation.
Preferably, it is be positioned at the 3rd parameter value that this system double-clicks threshold value that parameter value is double-clicked in this definition, and the 3rd parameter value is this definition double-click difference; Before this definition double-click parameter value is sent to this master control electronic installation, also comprise: double-click threshold value according to this system, determine to be positioned at the 3rd parameter value that this system double-clicks threshold value.
Preferably, this definition is double-clicked parameter value and is comprised this first parameter value and the first compensating parameter value, and the absolute value of the second difference of this first compensating parameter value and this first parameter value double-clicks difference for this definition; Before this definition double-click parameter value is sent to this master control electronic installation, also comprise: double-click threshold value according to this first parameter value and this system, determine this first compensating parameter value.
Preferably, this definition is double-clicked parameter value and is comprised this second parameter value and the second compensating parameter value, and the absolute value of the 3rd difference of this second compensating parameter value and this second parameter value double-clicks difference for this definition; Before this definition double-click parameter value is sent to this master control electronic installation, also comprise: double-click threshold value according to this second parameter value and this system, determine this second compensating parameter value.
Preferably, this first parameter value comprises very first time stamp, the first coordinate figure, and this second parameter value comprises the second timestamp, the second coordinate figure, and this is preset double-click threshold value and comprises preset time threshold, predeterminable range threshold value; Judge whether this first difference of this second parameter value and this first parameter value meets this default step double-clicking threshold value and comprise:
Judge whether the very first time difference that this second timestamp and this very first time stab is less than this preset time threshold, and judge whether the first distance difference of this second coordinate figure and this first coordinate figure is less than this predeterminable range threshold value.
Second aspect, the present invention also provides a kind of slave electric device, and this slave electric device comprises: receiving element, judging unit and processing unit; Corresponding the first parameter value when this receiving element is for receiving and recording that first time, clicking operation was pressed, and the second parameter value corresponding when receiving and record that clicking operation is pressed for the second time; This judging unit double-clicks threshold value for judging whether first difference of this second parameter value and this first parameter value meets to preset; This processing unit is used for when this judging unit judges that this first difference meets this default double-click threshold value, parameter value is double-clicked in definition and is sent to master control electronic installation, the definition double-click difference that this definition double-clicks parameter value corresponding is positioned at system double-click threshold value, it is be arranged at the double-click condition in this master control electronic installation that this system double-clicks threshold value, double-clicks threshold value determine that this slave electric device sends double click operation to make this master control electronic installation according to this definition double-click parameter value and this system.
Preferably, when this preset double-click threshold value and this system double-clicks different and this first difference of threshold value meet this default double-click threshold value time, this definition double-click parameter value is sent to this master control electronic installation by this processing unit; This slave electric device also comprises acquiring unit and contrast unit, and this acquiring unit is preset double-click threshold value and this system double-clicks threshold value for being obtained this corresponding with this slave electric device; This contrast unit is preset and is double-clicked threshold value and this system for contrasting this and double-clicks threshold value, judges that whether this default double-click threshold value double-clicks threshold value with this system identical.
Preferably, it is be positioned at the 3rd parameter value that this system double-clicks threshold value that parameter value is double-clicked in this definition, 3rd parameter value is this definition double-click difference, and this processing unit, also for double-clicking threshold value according to this system, is determined to be positioned at the 3rd parameter value that this system double-clicks threshold value; Or,
This definition is double-clicked parameter value and is comprised this first parameter value and the first compensating parameter value, the absolute value of the second difference of this first compensating parameter value and this first parameter value double-clicks difference for this definition, this processing unit also for double-clicking threshold value according to this first parameter value and this system, determines this first compensating parameter value; Or,
This definition is double-clicked parameter value and is comprised this second parameter value and the second compensating parameter value, the absolute value of the 3rd difference of this second compensating parameter value and this second parameter value double-clicks difference for this definition, this processing unit also for double-clicking threshold value according to this second parameter value and this system, determines this second compensating parameter value.
Preferably, this slave electric device is touch control display or mouse.
Compared with prior art, double-click disposal route provided by the invention and slave electric device, slave electric device self first judges two groups of parameter values of twice click correspondence, threshold range is double-clicked by judging whether the difference of two groups of parameter values is positioned to preset, judge whether twice click meets the double-click condition of slave electric device self regulation, but not master control electronic installation directly judges whether twice click meets system and double-click threshold value, and slave electric device is when judging that twice click meets the double-click condition that slave electric device specifies, slave electric device is determined to there occurs double-press time, definition is double-clicked the definition double-click parameter value of difference in system double-click threshold value and be sent to master control electronic installation, determine to there occurs double click operation to make master control electronic installation, like this, when master control electronic installation connects multiple slave electric device, each slave electric device can according to the characteristic (reaction velocity of self, resolution etc.) judge whether to there occurs double-click event, but not master control electronic installation directly judges according to system double-click threshold value, erroneous judgement can not be caused.
Accompanying drawing explanation
A kind of schematic flow sheet double-clicking disposal route that Fig. 1 provides for one embodiment of the invention;
A kind of schematic flow sheet double-clicking disposal route that Fig. 2 provides for another embodiment of the present invention;
A kind of schematic flow sheet double-clicking disposal route that Fig. 3 provides for another embodiment of the present invention;
A kind of schematic flow sheet double-clicking disposal route that Fig. 4 provides for another embodiment of the present invention;
The one that Fig. 5 provides for the embodiment of the present invention double-clicks schematic diagram;
A kind of schematic flow sheet double-clicking disposal route that Fig. 6 provides for another embodiment of the present invention;
A kind of schematic flow sheet double-clicking disposal route that Fig. 7 provides for another embodiment of the present invention;
The structural representation of a kind of slave electric device that Fig. 8 provides for one embodiment of the invention;
The structural representation of a kind of slave electric device that Fig. 9 provides for another embodiment of the present invention.
Embodiment
For making there is further understanding to object of the present invention, structure, feature and function thereof, embodiment is hereby coordinated to be described in detail as follows.
A kind of schematic flow sheet double-clicking disposal route that Fig. 1 provides for one embodiment of the invention.Double-click disposal route is as shown in Figure 1 used for slave electric device, and this slave electric device can be mouse or touch control display, and this double-click disposal route comprises:
S101, reception the first parameter value corresponding when pressing of record first time clicking operation.
S102, reception the second parameter value corresponding when pressing of record second time clicking operation.
S103, judge that whether the first difference of the second parameter value and the first parameter value meets to preset and double-click threshold value.When judgement first difference meets default double-click threshold value, perform step S104; When judgement first difference does not meet default double-click threshold value, perform step S105.Preset and double-click the double-click condition that threshold value is slave electric device.
S104, when judgement first difference meet preset double-click threshold value time, parameter value is double-clicked in definition and is sent to master control electronic installation, the definition double-click difference that definition double-clicks parameter value corresponding is positioned at system double-click threshold value, it is the double-click condition be arranged in master control electronic installation that system double-clicks threshold value, double-clicks threshold value determination slave electric device send double click operation to make master control electronic installation according to definition double-click parameter value and system.
S105, when judgement first difference meet preset double-click threshold value time, confirm there is not double-click event.
Preferably, the first parameter value comprises very first time stamp, the first coordinate figure, and the second parameter value comprises the second timestamp, the second coordinate figure, presets double-click threshold value and comprises preset time threshold, predeterminable range threshold value; Step S103 comprises: judge whether the very first time difference that the second timestamp and the very first time stab is less than preset time threshold, and judge whether the first distance difference of the second coordinate figure and the first coordinate figure is less than predeterminable range threshold value.Then, step S104 comprises: when judging that very first time difference is less than preset time threshold and the first distance difference is less than predeterminable range threshold value, parameter value is double-clicked in definition and is sent to master control electronic installation, double-click threshold value determination slave electric device to make master control electronic installation according to definition double-click parameter value and system and send double click operation.
Preferably, definition is being double-clicked before parameter value is sent to master control electronic installation, also comprising step: obtaining the default double-click threshold value corresponding with slave electric device and system double-clicks threshold value; Contrast is preset and is double-clicked threshold value and system and double-clicks threshold value, judges that whether default double-click threshold value double-clicks threshold value with system identical.Then when judgement first difference meets default double-click threshold value, definition is double-clicked the step that parameter is sent to master control electronic installation to comprise: when default double-click threshold value and system double-clicks different and the first difference of threshold value meet default double-click threshold value time, definition double-click parameter value is sent to master control electronic installation.
Preferably, it is be positioned at the 3rd parameter value that system double-clicks threshold value that parameter value is double-clicked in definition, and the 3rd parameter value double-clicks difference for defining.Step S104 can comprise: when judgement first difference meets default double-click threshold value, parameter value is double-clicked in definition and is sent to master control electronic installation, it is be positioned at the 3rd parameter value that system double-clicks threshold value that parameter value is double-clicked in definition, determine that to make master control electronic installation the 3rd parameter value is positioned at system and double-clicks threshold value, and then determine that slave electric device sends double click operation; Concrete, the 3rd parameter value comprises definition time difference, definition distance difference, and system is double-clicked threshold value and comprised system time threshold value, system distance threshold; Master control electronic installation judges that definition time difference is less than system time threshold value after receiving definition time difference, definition distance difference, and when judging that definition distance difference is less than system distance threshold, determines that slave electric device sends double click operation.Preferably, before definition double-click parameter value is sent to master control electronic installation, the method also comprises: double-click threshold value according to system, determines that the system that is positioned at double-clicks the 3rd parameter value of threshold value.
A kind of schematic flow sheet double-clicking disposal route that Fig. 2 provides for another embodiment of the present invention.Double-click disposal route as shown in Figure 2 comprises following steps:
S201, the acquisition default double-click threshold value corresponding with slave electric device and system double-click threshold value.
S202, contrast are preset and are double-clicked threshold value and system and double-clicks threshold value, judge that whether default double-click threshold value double-clicks threshold value with system identical.If it is different that default double-click threshold value and system double-click threshold value, continue to perform; If it is identical that default double-click threshold value and system double-click threshold value, process ends.
S203, reception the first parameter value corresponding when pressing of record first time clicking operation.
S204, reception the second parameter value corresponding when pressing of record second time clicking operation.
S205, judge that whether the first difference of the second parameter value and the first parameter value meets to preset and double-click threshold value.When judgement first difference meets default double-click threshold value, perform step S206; When judgement first difference does not meet default double-click threshold value, perform step S207.Preset and double-click the double-click condition that threshold value is slave electric device.
S206, when judgement first difference meet preset double-click threshold value time, parameter value is double-clicked in definition and is sent to master control electronic installation, it is be positioned at the 3rd parameter value that system double-clicks threshold value that parameter value is double-clicked in definition, determine that to make master control electronic installation the 3rd parameter value is positioned at system and double-clicks threshold value, and then determine that slave electric device sends double click operation.
S207, when judgement first difference meet preset double-click threshold value time, confirm there is not double-click event.
It should be noted that, be described before being positioned at step S203 (when receiving and record that first time, clicking operation was pressed corresponding the first parameter value) for step S201 to step S202 in above embodiment, but above-mentioned steps S201 to S202 is before definition double-click parameter value is sent to master control electronic installation by step, and the present invention is not construed as limiting this.
A kind of schematic flow sheet double-clicking disposal route that Fig. 3 provides for another embodiment of the present invention.Preferably, definition is double-clicked parameter value and is comprised the first parameter value and the first compensating parameter value, and the absolute value of the second difference of the first compensating parameter value and the first parameter value double-clicks difference for defining, and now, as shown in Figure 3, this double-click disposal route comprises following steps:
S301, reception the first parameter value corresponding when pressing of record first time clicking operation.
S302, reception the second parameter value corresponding when pressing of record second time clicking operation.
S303, judge that whether the first difference of the second parameter value and the first parameter value meets to preset and double-click threshold value.When judgement first difference meets default double-click threshold value, perform step S304; When judgement first difference does not meet default double-click threshold value, perform step S305.Preset and double-click the double-click condition that threshold value is slave electric device.
S304, when judgement first difference meet preset double-click threshold value time, first parameter value and the first compensating parameter value are sent to master control electronic installation, the absolute value of the second difference of the first compensating parameter value and the first parameter value is positioned at system and double-clicks threshold value, double-clicks threshold value determination slave electric device send double click operation to make master control electronic installation according to the first parameter value, the first compensating parameter value and system.
S305, when judgement first difference meet preset double-click threshold value time, confirm there is not double-click event.
Further, before the first parameter value and the first compensating parameter value are sent to master control electronic installation, also comprise step: double-click threshold value according to the first parameter value and system, determine the first compensating parameter value, be positioned at system with the absolute value of the second difference ensureing the first compensating parameter value and the first parameter value and double-click threshold value, and then make master control electronic installation send double click operation according to the first compensating parameter value, the first parameter value and system double-click threshold value determination slave electric device.
A kind of schematic flow sheet double-clicking disposal route that Fig. 4 provides for another embodiment of the present invention.Double-click disposal route as shown in Figure 4 comprises following steps:
S401, the acquisition default double-click threshold value corresponding with slave electric device and system double-click threshold value.
S402, contrast are preset and are double-clicked threshold value and system and double-clicks threshold value, judge that whether default double-click threshold value double-clicks threshold value with system identical.If it is different that default double-click threshold value and system double-click threshold value, continue to perform; If it is identical that default double-click threshold value and system double-click threshold value, process ends.
S403, reception the first parameter value corresponding when pressing of record first time clicking operation.
S404, reception the second parameter value corresponding when pressing of record second time clicking operation.
S405, judge that whether the first difference of the second parameter value and the first parameter value meets to preset and double-click threshold value.When judgement first difference meets default double-click threshold value, perform step S406; When judgement first difference does not meet default double-click threshold value, perform step S407.Preset and double-click the double-click condition that threshold value is slave electric device.
S406, when judgement first difference meet preset double-click threshold value time, first parameter value and the first compensating parameter value are sent to master control electronic installation, the absolute value of the second difference of the first compensating parameter value and the first parameter value is positioned at system and double-clicks threshold value, double-clicks threshold value determination slave electric device send double click operation to make master control electronic installation according to the first parameter value, the first compensating parameter value and system.
S407, when judgement first difference meet preset double-click threshold value time, confirm there is not double-click event.
It should be noted that, be described before being positioned at step S403 (when receiving and record that first time, clicking operation was pressed corresponding the first parameter value) for step S401 to step S402 in above embodiment, but above-mentioned steps S401 to S402 is before the first parameter value and the first compensating parameter value are sent to master control electronic installation by step, and the present invention is not construed as limiting this.
The one that Fig. 5 provides for the embodiment of the present invention double-clicks schematic diagram, wherein, and coordinate points corresponding with the first parameter value when P1 represents that first time, clicking operation was pressed, coordinate points corresponding with the second parameter value when P2 represents that second time clicking operation is pressed.
Further, the first parameter value comprises very first time stamp, the first coordinate figure, and system is double-clicked threshold value and comprised system time threshold value, system distance threshold, and the first compensating parameter value comprises the first make-up time stamp, first and compensates coordinate figure.A kind of situation, double-click threshold value according to the first parameter value and system and determine that the step of the first compensating parameter value can comprise: in the time threshold that very first time stamp and system time threshold value sum obtain, select a time numerical value to stab as the first make-up time, in the distance threshold that the first coordinate figure and system distance threshold sum obtain, select a coordinate figure to compensate coordinate figure as first, such as, P12 in Fig. 5, now, master control electronic installation receives very first time stamp, first coordinate figure, first make-up time stamp, after first compensation coordinate figure, judge that the first make-up time stabbed the time difference stabbed with the very first time and is positioned at system time threshold value, and the first distance difference compensating coordinate figure and the first coordinate figure is positioned at system distance threshold, and then master control electronic installation determination slave electric device sends double click operation.Another kind of situation, double-click threshold value according to the first parameter value and system and determine that the step of the first compensating parameter value can comprise: in the time threshold that very first time stamp and the difference of system time threshold value obtain, select a time numerical value to stab as the first make-up time, in the distance threshold that the difference of the first coordinate figure and system distance threshold obtains, select a coordinate figure to compensate coordinate figure as first, such as, P10 in Fig. 5, now, master control electronic installation receives very first time stamp, first coordinate figure, first make-up time stamp, after first compensation coordinate figure, judge that the very first time stabs the time difference stabbed with the first make-up time and is positioned at system time threshold value, and the first coordinate figure and the first distance difference compensating coordinate figure are positioned at system distance threshold, and then master control electronic installation determination slave electric device sends double click operation.
A kind of schematic flow sheet double-clicking disposal route that Fig. 6 provides for another embodiment of the present invention.Preferably, definition is double-clicked parameter value and is comprised the second parameter value and the second compensating parameter value, and the absolute value of the 3rd difference of the second compensating parameter value and the second parameter value double-clicks difference for defining, and now, as shown in Figure 6, this double-click disposal route comprises following steps:
S601, reception the first parameter value corresponding when pressing of record first time clicking operation.
S602, reception the second parameter value corresponding when pressing of record second time clicking operation.
S603, judge that whether the first difference of the second parameter value and the first parameter value meets to preset and double-click threshold value.When judgement first difference meets default double-click threshold value, perform step S604; When judgement first difference does not meet default double-click threshold value, perform step S605.Preset and double-click the double-click condition that threshold value is slave electric device.
S604, when judgement first difference meet preset double-click threshold value time, second parameter value and the second compensating parameter value are sent to master control electronic installation, the absolute value of the 3rd difference of the second compensating parameter value and the second parameter value is positioned at system and double-clicks threshold value, double-clicks threshold value determination slave electric device send double click operation to make master control electronic installation according to the second parameter value, the second compensating parameter value and system.
S605, when judgement first difference meet preset double-click threshold value time, confirm there is not double-click event.
Further, before the second parameter value and the second compensating parameter value are sent to master control electronic installation, also comprise step: double-click threshold value according to the second parameter value and system, determine the second compensating parameter value, be positioned at system with the absolute value of the 3rd difference ensureing the second compensating parameter value and the second parameter value and double-click threshold value, and then make master control electronic installation send double click operation according to the second compensating parameter value, the second parameter value and system double-click threshold value determination slave electric device.
A kind of schematic flow sheet double-clicking disposal route that Fig. 7 provides for another embodiment of the present invention.Double-click disposal route as shown in Figure 7 comprises following steps:
S701, the acquisition default double-click threshold value corresponding with slave electric device and system double-click threshold value.
S702, contrast are preset and are double-clicked threshold value and system and double-clicks threshold value, judge that whether default double-click threshold value double-clicks threshold value with system identical.If it is different that default double-click threshold value and system double-click threshold value, continue to perform; If it is identical that default double-click threshold value and system double-click threshold value, process ends.
S703, reception the first parameter value corresponding when pressing of record first time clicking operation.
S704, reception the second parameter value corresponding when pressing of record second time clicking operation.
S705, judge that whether the first difference of the second parameter value and the first parameter value meets to preset and double-click threshold value.When judgement first difference meets default double-click threshold value, perform step S706; When judgement first difference does not meet default double-click threshold value, perform step S708.Preset and double-click the double-click condition that threshold value is slave electric device.
S706, when judgement first difference meet preset double-click threshold value time, double-click threshold value according to the second parameter value and system, determine the second compensating parameter value.
S707, the second parameter value and the second compensating parameter value are sent to master control electronic installation, the absolute value of the 3rd difference of the second compensating parameter value and the second parameter value is positioned at system and double-clicks threshold value, double-clicks threshold value determination slave electric device send double click operation to make master control electronic installation according to the second parameter value, the second compensating parameter value and system.
S708, when judgement first difference meet preset double-click threshold value time, confirm there is not double-click event.
It should be noted that, be described before being positioned at step S703 (when receiving and record that first time, clicking operation was pressed corresponding the first parameter value) for step S701 to step S702 in above embodiment, but above-mentioned steps S701 to S702 is before the second parameter value and the second compensating parameter value are sent to master control electronic installation by step, and the present invention is not construed as limiting this.
Further, the second parameter value comprises the second timestamp, the second coordinate figure, and system is double-clicked threshold value and comprised system time threshold value, system distance threshold, and the second compensating parameter value comprises the second make-up time stamp, second and compensates coordinate figure.A kind of situation, double-click threshold value according to the second parameter value and system and determine that the step of the second compensating parameter value can comprise: in the time threshold that the second timestamp and system time threshold value sum obtain, select a time numerical value to stab as the second make-up time, in the distance threshold that the second coordinate figure and system distance threshold sum obtain, select a coordinate figure to compensate coordinate figure as second, such as, P22 in Fig. 5, now, master control electronic installation receives the second timestamp, second coordinate figure, second make-up time stamp, after second compensation coordinate figure, judge that the second make-up time stamp is positioned at system time threshold value with the time difference of the second timestamp, and the second distance difference compensating coordinate figure and the second coordinate figure is positioned at system distance threshold, and then master control electronic installation determination slave electric device sends double click operation.Another kind of situation, double-click threshold value according to the second parameter value and system and determine that the step of the second compensating parameter value can comprise: in the time threshold that the difference of the second timestamp and system time threshold value obtains, select a time numerical value to stab as the second make-up time, in the distance threshold that the difference of the second coordinate figure and system distance threshold obtains, select a coordinate figure to compensate coordinate figure as second, such as, P20 in Fig. 5, now, master control electronic installation receives the second timestamp, second coordinate figure, second make-up time stamp, after second compensation coordinate figure, judge that the time difference that the second timestamp and the second make-up time stab is positioned at system time threshold value, and the second coordinate figure and the second distance difference compensating coordinate figure are positioned at system distance threshold, and then master control electronic installation determination slave electric device sends double click operation.
The double-click disposal route that the embodiment of the present invention provides, slave electric device self first judges two groups of parameter values of twice click correspondence, threshold range is double-clicked by judging whether the difference of two groups of parameter values is positioned to preset, judge whether twice click meets the double-click condition of slave electric device self regulation, but not master control electronic installation directly judges whether twice click meets system and double-click threshold value, and slave electric device is when judging that twice click meets the double-click condition that slave electric device specifies, slave electric device is determined to there occurs double-press time, definition is double-clicked the definition double-click parameter value of difference in system double-click threshold value and be sent to master control electronic installation, determine to there occurs double click operation to make master control electronic installation, like this, when master control electronic installation connects multiple slave electric device, each slave electric device can according to the characteristic (reaction velocity of self, resolution etc.) judge whether to there occurs double-click event, but not master control electronic installation directly judges according to system double-click threshold value, erroneous judgement can not be caused.
The structural representation of a kind of slave electric device that Fig. 8 provides for one embodiment of the invention.As shown in Figure 8, slave electric device 1 comprises receiving element 11, judging unit 12 and processing unit 13, and slave electric device 1 is for performing the double-click disposal route described in above-described embodiment.Corresponding the first parameter value when receiving element 11 is for receiving and recording that first time, clicking operation was pressed, and the second parameter value corresponding when receiving and record that clicking operation is pressed for the second time.Judging unit 12 double-clicks threshold value for judging whether the first difference of the second parameter value and the first parameter value meets to preset.When processing unit 13 is for judging that when judging unit 12 first difference meets default double-click threshold value, parameter value is double-clicked in definition and is sent to master control electronic installation, the definition double-click difference that definition double-clicks parameter value corresponding is positioned at system double-click threshold value, it is the double-click condition be arranged in master control electronic installation that system double-clicks threshold value, double-clicks threshold value determination slave electric device send double click operation to make master control electronic installation according to definition double-click parameter value and system.Processing unit 13 also for when judgement first difference does not meet default double-click threshold value, confirms double-click event does not occur.
The structural representation of a kind of slave electric device that Fig. 9 provides for another embodiment of the present invention.Slave electric device 1 ' shown in Fig. 9 is with the difference of above-mentioned electronic installation 1, and slave electric device 1 ' also comprises: acquiring unit 14 and contrast unit 15.Acquiring unit 14 is for obtaining the default double-click threshold value corresponding with slave electric device and system double-clicks threshold value; Contrast unit 15 is double-clicked threshold value and system double-clicks threshold value for being contrasted to preset, and judges that whether default double-click threshold value double-clicks threshold value with system identical; When default double-click threshold value and system double-click different and the first difference of threshold value meet preset double-clicks threshold value time, definition double-click parameter value is sent to master control electronic installation by processing unit 13.
Further, it is be positioned at the 3rd parameter value that system double-clicks threshold value that parameter value is double-clicked in definition, and the 3rd parameter value double-clicks difference for defining, and processing unit 13, also for double-clicking threshold value according to system, determines that the system that is positioned at double-clicks the 3rd parameter value of threshold value.Concrete, the 3rd parameter value comprises definition time difference, definition distance difference, and system is double-clicked threshold value and comprised system time threshold value, system distance threshold; Master control electronic installation judges that definition time difference is less than system time threshold value after receiving definition time difference, definition distance difference, and when judging that definition distance difference is less than system distance threshold, determines that slave electric device sends double click operation.
Further, definition is double-clicked parameter value and is comprised the first parameter value and the first compensating parameter value, the absolute value of the second difference of the first compensating parameter value and the first parameter value double-clicks difference for defining, and processing unit 13 also for double-clicking threshold value according to the first parameter value and system, determines the first compensating parameter value.Preferably, the first parameter value comprises very first time stamp, the first coordinate figure, and system is double-clicked threshold value and comprised system time threshold value, system distance threshold, and the first compensating parameter value comprises the first make-up time stamp, first and compensates coordinate figure.A kind of situation, processing unit 13 stabs in the very first time in the time threshold obtained with system time threshold value sum selects a time numerical value to stab as the first make-up time, a coordinate figure is selected to compensate coordinate figure as first in the distance threshold that processing unit 13 obtains in the first coordinate figure and system distance threshold sum, such as, P12 in Fig. 5, now, master control electronic installation receives very first time stamp, first coordinate figure, first make-up time stamp, after first compensation coordinate figure, judge that the first make-up time stabbed the time difference stabbed with the very first time and is positioned at system time threshold value, and the first distance difference compensating coordinate figure and the first coordinate figure is positioned at system distance threshold, and then master control electronic installation determination slave electric device sends double click operation.Another kind of situation, processing unit 13 stabs in the very first time in the time threshold obtained with the difference of system time threshold value selects a time numerical value to stab as the first make-up time, a coordinate figure is selected to compensate coordinate figure as first in the distance threshold that processing unit 13 obtains in the difference of the first coordinate figure and system distance threshold, such as, P10 in Fig. 5, now, master control electronic installation receives very first time stamp, first coordinate figure, first make-up time stamp, after first compensation coordinate figure, judge that the very first time stabs the time difference stabbed with the first make-up time and is positioned at system time threshold value, and the first coordinate figure and the first distance difference compensating coordinate figure are positioned at system distance threshold, and then master control electronic installation determination slave electric device sends double click operation.
Further, definition is double-clicked parameter value and is comprised the second parameter value and the second compensating parameter value, the absolute value of the 3rd difference of the second compensating parameter value and the second parameter value double-clicks difference for defining, and processing unit 13 also for double-clicking threshold value according to the second parameter value and system, determines the second compensating parameter value.Preferably, the second parameter value comprises the second timestamp, the second coordinate figure, and system is double-clicked threshold value and comprised system time threshold value, system distance threshold, and the second compensating parameter value comprises the second make-up time stamp, second and compensates coordinate figure.A kind of situation, a time numerical value is selected to stab as the second make-up time in the time threshold that processing unit 13 obtains in the second timestamp and system time threshold value sum, a coordinate figure is selected to compensate coordinate figure as second in the distance threshold that processing unit 13 obtains in the second coordinate figure and system distance threshold sum, such as, P22 in Fig. 5, now, master control electronic installation receives the second timestamp, second coordinate figure, second make-up time stamp, after second compensation coordinate figure, judge that the second make-up time stamp is positioned at system time threshold value with the time difference of the second timestamp, and the second distance difference compensating coordinate figure and the second coordinate figure is positioned at system distance threshold, and then master control electronic installation determination slave electric device sends double click operation.Another kind of situation, a time numerical value is selected to stab as the second make-up time in the time threshold that processing unit 13 obtains in the difference of the second timestamp and system time threshold value, a coordinate figure is selected to compensate coordinate figure as second in the distance threshold that processing unit 13 obtains in the difference of the second coordinate figure and system distance threshold, such as, P20 in Fig. 5, now, master control electronic installation receives the second timestamp, second coordinate figure, second make-up time stamp, after second compensation coordinate figure, judge that the time difference that the second timestamp and the second make-up time stab is positioned at system time threshold value, and the second coordinate figure and the second distance difference compensating coordinate figure are positioned at system distance threshold, and then master control electronic installation determination slave electric device sends double click operation.
It should be noted that, above-mentioned slave electric device can be touch control display or mouse, and master control electronic installation is computing machine, notebook, main frame etc.
The slave electric device that the embodiment of the present invention provides, slave electric device self first judges two groups of parameter values of twice click correspondence, threshold range is double-clicked by judging whether the difference of two groups of parameter values is positioned to preset, judge whether twice click meets the double-click condition of slave electric device self regulation, but not master control electronic installation directly judges whether twice click meets system and double-click threshold value, and slave electric device is when judging that twice click meets the double-click condition that slave electric device specifies, slave electric device is determined to there occurs double-press time, definition is double-clicked the definition double-click parameter value of difference in system double-click threshold value and be sent to master control electronic installation, determine to there occurs double click operation to make master control electronic installation, like this, when master control electronic installation connects multiple slave electric device, each slave electric device can according to the characteristic (reaction velocity of self, resolution etc.) judge whether to there occurs double-click event, but not master control electronic installation directly judges according to system double-click threshold value, erroneous judgement can not be caused.
The present invention is described by above-mentioned related embodiment, but above-described embodiment is only enforcement example of the present invention.Must it is noted that the embodiment disclosed limit the scope of the invention.On the contrary, change done without departing from the spirit and scope of the present invention and retouching, all belong to scope of patent protection of the present invention.

Claims (10)

1. double-click a disposal route, for slave electric device, it is characterized in that, the method comprises:
Receive and record the first parameter value corresponding when pressing of first time clicking operation;
Receive and record the second parameter value corresponding when second time clicking operation is pressed;
Judge whether the first difference of this second parameter value and this first parameter value meets to preset and double-click threshold value;
When judging that this first difference meets this default double-click threshold value, parameter value is double-clicked in definition and is sent to master control electronic installation, the definition double-click difference that this definition double-clicks parameter value corresponding is positioned at system double-click threshold value, it is be arranged at the double-click condition in this master control electronic installation that this system double-clicks threshold value, double-clicks threshold value determine that this slave electric device sends double click operation to make this master control electronic installation according to this definition double-click parameter value and this system.
2. double-click disposal route as claimed in claim 1, it is characterized in that, before this definition double-click parameter value is sent to this master control electronic installation, also comprise:
Obtain this corresponding with this slave electric device to preset and double-click threshold value and this system double-clicks threshold value; And
Contrast this to preset and double-click threshold value and this system and double-clicks threshold value, judge that whether this default double-click threshold value double-clicks threshold value with this system identical;
Wherein, this definition is double-clicked the step that parameter is sent to this master control electronic installation to comprise: when this preset double-click threshold value and this system double-clicks different and this first difference of threshold value meet this default double-click threshold value time, this definition double-click parameter value is sent to this master control electronic installation.
3. double-click disposal route as claimed in claim 1, it is characterized in that, it is be positioned at the 3rd parameter value that this system double-clicks threshold value that parameter value is double-clicked in this definition, and the 3rd parameter value is this definition double-click difference; Before this definition double-click parameter value is sent to this master control electronic installation, also comprise: double-click threshold value according to this system, determine to be positioned at the 3rd parameter value that this system double-clicks threshold value.
4. double-click disposal route as claimed in claim 1, it is characterized in that, this definition is double-clicked parameter value and is comprised this first parameter value and the first compensating parameter value, and the absolute value of the second difference of this first compensating parameter value and this first parameter value double-clicks difference for this definition; Before this definition double-click parameter value is sent to this master control electronic installation, also comprise: double-click threshold value according to this first parameter value and this system, determine this first compensating parameter value.
5. double-click disposal route as claimed in claim 1, it is characterized in that, this definition is double-clicked parameter value and is comprised this second parameter value and the second compensating parameter value, and the absolute value of the 3rd difference of this second compensating parameter value and this second parameter value double-clicks difference for this definition; Before this definition double-click parameter value is sent to this master control electronic installation, also comprise: double-click threshold value according to this second parameter value and this system, determine this second compensating parameter value.
6. double-click disposal route as claimed in claim 1, it is characterized in that, this first parameter value comprises very first time stamp, the first coordinate figure, and this second parameter value comprises the second timestamp, the second coordinate figure, and this is preset double-click threshold value and comprises preset time threshold, predeterminable range threshold value; Judge whether this first difference of this second parameter value and this first parameter value meets this default step double-clicking threshold value and comprise:
Judge whether the very first time difference that this second timestamp and this very first time stab is less than this preset time threshold, and judge whether the first distance difference of this second coordinate figure and this first coordinate figure is less than this predeterminable range threshold value.
7. a slave electric device, is characterized in that, this slave electric device comprises:
Receiving element, corresponding the first parameter value during for receiving and recording that first time, clicking operation was pressed, and the second parameter value corresponding when receiving and record that clicking operation is pressed for the second time;
Judging unit, double-clicks threshold value for judging whether first difference of this second parameter value and this first parameter value meets to preset;
Processing unit, during for judging that when this judging unit this first difference meets this default double-click threshold value, parameter value is double-clicked in definition and is sent to master control electronic installation, the definition double-click difference that this definition double-clicks parameter value corresponding is positioned at system double-click threshold value, it is be arranged at the double-click condition in this master control electronic installation that this system double-clicks threshold value, double-clicks threshold value determine that this slave electric device sends double click operation to make this master control electronic installation according to this definition double-click parameter value and this system.
8. the slave electric device as shown in claim 7, it is characterized in that, when this preset double-click threshold value and this system double-clicks different and this first difference of threshold value meet this default double-click threshold value time, this definition double-click parameter value is sent to this master control electronic installation by this processing unit; This slave electric device also comprises:
Acquiring unit, presets double-click threshold value and this system double-clicks threshold value for obtaining this corresponding with this slave electric device;
Contrast unit, presets and double-clicks threshold value and this system for contrasting this and double-clicks threshold value, judges that whether this default double-click threshold value double-clicks threshold value with this system identical.
9. the slave electric device as shown in claim 7, is characterized in that,
It is be positioned at the 3rd parameter value that this system double-clicks threshold value that parameter value is double-clicked in this definition, and the 3rd parameter value is this definition double-click difference, and this processing unit, also for double-clicking threshold value according to this system, is determined to be positioned at the 3rd parameter value that this system double-clicks threshold value; Or,
This definition is double-clicked parameter value and is comprised this first parameter value and the first compensating parameter value, the absolute value of the second difference of this first compensating parameter value and this first parameter value double-clicks difference for this definition, this processing unit also for double-clicking threshold value according to this first parameter value and this system, determines this first compensating parameter value; Or,
This definition is double-clicked parameter value and is comprised this second parameter value and the second compensating parameter value, the absolute value of the 3rd difference of this second compensating parameter value and this second parameter value double-clicks difference for this definition, this processing unit also for double-clicking threshold value according to this second parameter value and this system, determines this second compensating parameter value.
10. the slave electric device as shown in claim 7, is characterized in that, this slave electric device is touch control display or mouse.
CN201511008046.9A 2015-12-29 2015-12-29 Double-click processing method and slave electric device Expired - Fee Related CN105487690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511008046.9A CN105487690B (en) 2015-12-29 2015-12-29 Double-click processing method and slave electric device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511008046.9A CN105487690B (en) 2015-12-29 2015-12-29 Double-click processing method and slave electric device

Publications (2)

Publication Number Publication Date
CN105487690A true CN105487690A (en) 2016-04-13
CN105487690B CN105487690B (en) 2018-01-30

Family

ID=55674713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511008046.9A Expired - Fee Related CN105487690B (en) 2015-12-29 2015-12-29 Double-click processing method and slave electric device

Country Status (1)

Country Link
CN (1) CN105487690B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506059A (en) * 2017-09-01 2017-12-22 捷开通讯(深圳)有限公司 Active pen and the light calibration method using active pen control mobile terminal
CN108717349A (en) * 2018-06-01 2018-10-30 Oppo广东移动通信有限公司 The bright screen control method of terminal, device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200945126A (en) * 2008-04-16 2009-11-01 Sentelic Corp Method of recognizing single-click, double-click and drag actions and controller of touch control device
US20120007834A1 (en) * 2010-07-12 2012-01-12 Pixart Imaging Inc. Optical system and click detection method therefor
US20120068947A1 (en) * 2010-09-16 2012-03-22 Novatek Microelectronics Corp. Touch detection method and touch detector using the same
CN102411442A (en) * 2010-09-20 2012-04-11 联咏科技股份有限公司 Touch-control detecting method and touch-control detecting circuit applying same
CN102736757A (en) * 2011-03-31 2012-10-17 比亚迪股份有限公司 Method and apparatus for touch control identification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200945126A (en) * 2008-04-16 2009-11-01 Sentelic Corp Method of recognizing single-click, double-click and drag actions and controller of touch control device
US20120007834A1 (en) * 2010-07-12 2012-01-12 Pixart Imaging Inc. Optical system and click detection method therefor
US20120068947A1 (en) * 2010-09-16 2012-03-22 Novatek Microelectronics Corp. Touch detection method and touch detector using the same
CN102411442A (en) * 2010-09-20 2012-04-11 联咏科技股份有限公司 Touch-control detecting method and touch-control detecting circuit applying same
CN102736757A (en) * 2011-03-31 2012-10-17 比亚迪股份有限公司 Method and apparatus for touch control identification

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506059A (en) * 2017-09-01 2017-12-22 捷开通讯(深圳)有限公司 Active pen and the light calibration method using active pen control mobile terminal
CN108717349A (en) * 2018-06-01 2018-10-30 Oppo广东移动通信有限公司 The bright screen control method of terminal, device, terminal and storage medium

Also Published As

Publication number Publication date
CN105487690B (en) 2018-01-30

Similar Documents

Publication Publication Date Title
CN102298917B (en) Wireless automatic detection screen associated display method and devices
EP2734901B1 (en) Handheld field maintenance tool with process communication tunnel
WO2018191016A3 (en) Computer aided design system for modular wall design and manufacturing
CN102914995A (en) Tool wear automatic compensation method and system, and corresponding numerically-controlled machine tool machining equipment
CN102411487B (en) Desktop control method and device
CN105487690A (en) Double-click processing method and slaved electronic device
CN104679469A (en) Vehicle terminal and handhold terminal screen solution acquiring method thereof
EP3001290A1 (en) Data reporting method, apparatus and terminal device
CN110677493A (en) Service state determination method and device, computer device and storage medium
CN104182092A (en) Positioning method and system for infrared touch screen
CN105677105A (en) Control method and device for terminal
KR101458433B1 (en) Realtime remote control system and for automation equipment
CN103902580A (en) Method and device for dragging multiple elements in webpage
CN103036741B (en) The defining method of flow monitoring baseline and device
JP4829876B2 (en) Data synchronization methods such as distributed data that take into account clock drift and inaccuracies.
CN103324332B (en) Method for correcting different touch systems
CN105486216B (en) A kind of shield machine cutter abrasion detection device and shield machine cutter system
CN105739776A (en) Pressure value calibration method and apparatus, and mobile terminal
CN105201537A (en) Wireless self-numbering method and device of hydraulic support electric hydraulic control system
CN103063250A (en) System and method for vibration test equipment fault monitoring
CN108908402A (en) A kind of detection method and system of robot hardware
CN102419648A (en) Touch point coordinate acquiring method and system and touch screen calibrating method and system
JP4900280B2 (en) Field device data management system and field device data management method
CN103516972A (en) Camera control method and electronic equipment
CN108388387A (en) Information processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180130

Termination date: 20191229