CN108255321A - A kind of explosion-proof mouse of button and cursor movement accelerate control method - Google Patents

A kind of explosion-proof mouse of button and cursor movement accelerate control method Download PDF

Info

Publication number
CN108255321A
CN108255321A CN201711438902.3A CN201711438902A CN108255321A CN 108255321 A CN108255321 A CN 108255321A CN 201711438902 A CN201711438902 A CN 201711438902A CN 108255321 A CN108255321 A CN 108255321A
Authority
CN
China
Prior art keywords
button
cursor
explosion
mouse
key
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
CN201711438902.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.)
Changchun Blue Boat Technology Co Ltd
Changchun Wisdom And Intelligent Packaging Equipment Co Ltd
Changchun North Chemical Filling Equipment Co Ltd
Original Assignee
Changchun Blue Boat Technology Co Ltd
Changchun Wisdom And Intelligent Packaging Equipment Co Ltd
Changchun North Chemical Filling Equipment Co 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 Changchun Blue Boat Technology Co Ltd, Changchun Wisdom And Intelligent Packaging Equipment Co Ltd, Changchun North Chemical Filling Equipment Co Ltd filed Critical Changchun Blue Boat Technology Co Ltd
Priority to CN201711438902.3A priority Critical patent/CN108255321A/en
Publication of CN108255321A publication Critical patent/CN108255321A/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
    • 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

Abstract

The present invention provides a kind of explosion-proof mouses of button and cursor movement to accelerate control method, and cursor movement accelerates control method to include the following steps:The first step using key information acquisition module according to system clock, periodically acquires the input information of each button, is preserved with reference to clock;Second step, when detecting that mobile cursor key is constantly in down state, the control of accelerating algorithm module increases the distance value that cursor moves every time, realizes that cursor position quickly moves, button lifts the distance value that rear cursor moves every time and restores initial value, and cursor moving speed restores normal value.The present invention accelerates mobile technology using cursor, takes into account the rapidity and accuracy of mobile cursor, effectively realizes explosion prevention function, can be used in the dangerous situations such as inflammable, explosive.

Description

A kind of explosion-proof mouse of button and cursor movement accelerate control method
Technical field
The present invention replaces the explosion-proof input equipment of computer of mouse function for a kind of operate using keyed, can be used in easily The dangerous situations such as combustion, explosive;Accelerate control method more particularly to a kind of explosion-proof mouse of button and cursor movement.
Background technology
Mouse is a kind of input equipment of computer, is to invent for 1964, gains the name due to outer likeness in form mouse, is grasped in computer Play an important roll in work.The peripheral hardware of similar functions also has slide-mouse and trace ball.But common mouse(Or slide-mouse)It is non-anti- Quick-fried equipment, it is impossible to used in the dangerous situations such as inflammable, explosive.
The basic function of mouse mainly has receiving slip and clicking operation.Sliding mouse can operate the cursor on display Position;Left and right button is clicked, can various orders be inputted according to the difference that content is shown at cursor, some mouses also have idler wheel Deng operation.Due to the convenience of mouse action and the diversity of function, it has also become the standard input device of computer.
It is much also largely controlled or is managed using computer in the antiknock device of the inflammable evening dangerous situations such as quick-fried at present It manages, the computer in this kind equipment is generally placed upon in positive pressure explosion-proof cabinet, and display is typically mounted in armored cassette.This kind equipment Because of environmental restrictions, it is impossible to directly using mouse(Trace ball etc.)Standard input device so that operation is inconvenient.
Mouse(Trace ball)For non-antiknock device, it is impossible to which, used in the dangerous situations such as inflammable, explosive, this is just antiknock device Operation brings difficulty;And the present invention can be used in explosion-proof occasion.
Mouse needs slide, to there is the plane of mouse pad or sliding mouse;Trace ball need to slide ball rotation.These behaviour Make, the health, cleaning to environment there are certain requirements, and the present invention is operated for full button(Include mobile cursor), to environment Adaptability is high.
Using accelerate mode of operation, when single presses mobile cursor key, can accurately, small distance move cursor;When continuous When pressing mobile cursor key, cursor movement speed can be accelerated.In this way, the rapidity of mobile cursor operations can be taken into account And accuracy.
Invention content
To solve the above problem of the existing technology, the present invention provides a kind of explosion-proof mouse of button and cursor movement adds Speed control method accelerates mobile technology using cursor, takes into account the rapidity and accuracy of mobile cursor, effectively realize explosion-proof Function can be used in the dangerous situations such as inflammable, explosive.
Particular content of the present invention is as follows.
A kind of explosion-proof mouse of button, including hardware circuit part and software section, which is characterized in that the software section Including key information acquisition module, accelerating algorithm module, function execution module and parameter setting module;The key information acquisition Module periodically acquires the input state of each button, is preserved with reference to clock according to system clock;The accelerating algorithm mould Block controls cursor moving speed by adjusting what cursor moved every time apart from size, when detecting that mobile cursor key is constantly in Down state, then increase the distance value that cursor moves every time, and button lifts the distance value that rear cursor moves every time and restores initial value.
Further, the hardware circuit part includes key group, guard grating, input circuit and accessory power supply.
Further, the function that the function execution module performs is pressed and is lifted including left button and/or right button is pressed and It lifts and/or cursor moves.
Further, when left button, right button consecutively press, the 1st time is effectively input.
Further, button is intrinsic safety type button.
Further, the parameter of the parameter setting module setting includes sampling time, initial step length, accelerates step-length and add Fast number of starts.
Further, software has automatic starter function.
Further, can coordinate with soft keyboard.
A kind of cursor movement accelerates control method, which is characterized in that includes the following steps:
The first step using key information acquisition module according to system clock, periodically acquires the input information of each button, with reference to Clock is preserved;
Second step, when detecting that mobile cursor key is constantly in down state, it is each that the control of accelerating algorithm module increases cursor Mobile distance value realizes that cursor position quickly moves, and button lifts the distance value that rear cursor moves every time and restores initial value, light It marks movement speed and restores normal value.
Further, the key information acquisition module reads mobile cursor key continuous 5-10 times and is in down state When, start cursor movement acceleration function.
The present invention has the following advantages:
1. using protected against explosion key-press input technology, the occasion and non-explosion-proof occasion for having requirement of explosion proof can be used, reliable and stable;
2. the mode of use direction button operates the cursor position of mouse, compared with the move mode of conventional mouse, more meet and set Standby operating habit;
3. cursor accelerates mobile technology, the movement speed of cursor is improved, when single presses direction key, can accurately control cursor Position, the two combine, rapidity and accuracy can be taken into account, improve the operating efficiency of computer.
Description of the drawings
Fig. 1 is hardware system structure figure;
Fig. 2 is software architecture diagram;
Fig. 3 is program flow diagram.
Specific embodiment
Below by specific embodiment and with reference to attached drawing, the present invention is described in further detail.
The present invention provides a kind of explosion-proof mouse of button, including hardware circuit part and software section.The hardware of the present invention System mainly establishes the input channel from button to computer, for receiving operation input, specific work process mainly by Software is realized.
Hardware circuit part mainly has key group, guard grating, input circuit, accessory power supply etc., and computer and display can Select universal models.Wherein key group is generally on the panel of armored cassette;Display is mounted in armored cassette, passes through transparent window Display;The circuits such as guard grating are typically mounted at computer in positive pressure explosion-proof cabinet, as shown in Figure 1, the function of each section and configuration It is described as follows.
1. key group
Key group is mounted on explosion-proof box panel, beside display window, just with showing that content is operated to conjunction.The base of key group Originally be configured with move up, move down, moving to left, moving to right, left button, the right side by totally 6 buttons.Wherein move up, move down, moving to left, move to right 4 by Key moves for operating cursor;Left button, the right side are by the left button and right button for directly corresponding to mouse.Usually there are this 6 buttons to realize enough All operations of antiknock device computer.
2. key group advanced configuration
The advanced configuration of key group can increase the apolegamy button such as upper rolling, lower rolling, middle button of mouse of idler wheel, the reality of these buttons Existing mode is identical with basic configuration button.It is used to implement the irrealizable operation of basal keystroke.
3. safety barrier circuit
Safety barrier circuit is used to connect key group and input circuit.Since button is mounted on explosion-proof box panel, it is equivalent to directly It is exposed in hazardous environment, thus intrinsic safety type button need to be used, signal need to carry out level conversion by safety barrier circuit, and defeated Enter Circuit Matching.The electricity such as guard grating can be put into positive pressure explosion-proof cabinet together with host(If in other anti-explosion cabinets), realize explosion-proof answer With.
4. input circuit
Input circuit receives the operation signal of button, and is transferred to computer, is equivalent to the input channel of computer.It may be used Based on PCI(ISA)Card insert type inside bus computer, can also use the external module based on communication buses such as Ethernet, USB Formula reduces cost.
5. accessory power supply
Accessory power supply is the power supplies such as guard grating, input circuit.
6. computer and display
Computer and display, are not the component part of the present invention, but provide running environment for the present invention.Computer system can be with It is all-purpose computer, embedded industrial computer can also be gone up, operating system can be Windows, WinCe, Linux etc.. The concrete configuration and software of the present invention, need to be adjusted according to the configuration and system of computer.
Mouse software part realize button data acquisition, button operation judgement, cursor movement, acceleration processing, at right and left key The functions such as reason, can be respectively adopted the software developments such as Visual C++, Embedded Visual C++, QT.
In order to realize computer start after the purpose that can work automatically of push button mouse, it is desirable that this software has self-starting work( Energy.Software mainly has the compositions such as key information acquisition module, accelerating algorithm module, function execution module, parameter setting module.Respectively The major function of module is:
1. key information acquisition module
The major function of this module is according to system clock, periodically acquires the input state of each button, is carried out with reference to clock It preserves.Sampling period can usually be set as 0.3 second;0,1,2,3,4,5 can be used to represent to move to left, move to right, moving up, moving down successively, is left Key, the right serial number pressed;S0-S1 represents each key-press status, and 1 is presses, and 0 is does not press;When T0-T5 represents that each button is pressed for the first time Between, -1 is initialized as, represents that the key is not pressed;C0-C5 represents that each button consecutively presses number;
2. accelerating algorithm module
The major function of this module is:When consecutively pressing cursor moving keys, accelerate the movement speed of cursor.Since acquisition is pressed The time interval of key is fixed, thus cursor moving speed is controlled apart from size using moving every time, this is moved Distance referred to as step-length, is represented with variable d;D=5 (pixel) are usually taken, when connecting N (5-10) secondary reading, find certain movement light Mark button is constantly in down state, can increase step value d, such as increases 10 times, thus can be with moving cursor quickly position; Button lifts rear step-length and restores initial value, improves the accuracy of cursor movement.
3. function execution module
This module performs corresponding function, mainly has according to pressed button difference:Left button is pressed and is lifted, right button is pressed and lift, Cursor moves(The new position of cursor is set).Directly and operating system interface, specific implementation is by operating system for these functions It determines, such as Windows and WindowsCe systems, may be used and realize these functions as issued orders.
(1)mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
(2)mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
(3)mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0);
(4)mouse_event(MOUSEEVENTF_RIGHTUP,0,0,0,0);
(5)SetCursorPos(x, y);
Wherein(1)(2)Pressing and lifting for left mouse button is realized respectively,(3)(4)Pressing and lifting for right mouse button is realized respectively It rises,(5)Realize the setting new position functions of mouse.
It is defined as pressing with lift action:Ammonium key changes to down state to press from release conditions, otherwise is lift It rises, thus when by left button(Right button)When being continuously in down state or lifting status, it will not repeat to call to press and lift order.
4. parameter setting module
According to computer concrete configuration and the difference of people's operating habit, certain systematic parameter needs are configured and protect automatically It deposits.The major parameter that need to be set has:Sampling time, initial step length accelerate step-length, accelerate number of starts etc..
5. the self-starting of software
The self-starting of software is the function that all operating systems are supported, only Windows systems realize that software self-starting just has very Multi-method.This patent requirement software can rise, but unlimited specific method, such as file is saved in Windows systems automatically Start Up files in.
6. coordinate with soft keyboard.
Usual mouse can only realize click, dragging, the input of movement directive category information, it is impossible to realize the keyboards such as numerical value, text Input.Using mouse and the method for software keyboard cooperation, it can replace keyboard by mouse with soft keyboard, realize computer The input of all information.
It is moved the present invention discloses a kind of cursor and accelerates control method, included the following steps:
The first step using key information acquisition module according to system clock, periodically acquires the input information of each button, with reference to Clock is preserved;
When second step, the key information acquisition module read mobile cursor key continuous 5-10 times and be in down state, accelerate Algoritic module control increases the distance value that cursor moves every time, realizes that cursor position quickly moves, it is each that button lifts rear cursor Mobile distance value restores initial value, and cursor moving speed restores normal value.
The explosion-proof mouse of button of the present invention designs implementation in the following manner:
1 designs hardware system as shown in Figure 1, and emphasis chooses key configurations, and explosion proof applications will select intrinsic safety type button;
The safety barrier circuit that 2 selections are met the requirements, it is desirable that can realize that switching value receives, be selected as KN5018 can be used for one kind ;
3rd, suitable computer input circuit is selected, it is desirable that input channel number reaches number of keys, to realize all key informations It can acquire, and can be matched with selected guard grating output signal, such as DAM-E3011 (8 input module) can be received to be a kind of The Ethernet input module of standard signal;
4th, according to the specific version of computer operating system, suitable software-programming languages and development environment exploitation software are chosen, Its key component flow chart is as shown in Figure 3;
5th, software self-starting is realized;
6th, setting soft keyboard breathes out;
According to operating habit, parameter is configured.

Claims (10)

  1. A kind of 1. explosion-proof mouse of button, including hardware circuit part and software section, which is characterized in that the software section packet Include key information acquisition module, accelerating algorithm module, function execution module and parameter setting module;The key information acquires mould Root tuber periodically acquires the input state of each button, is preserved with reference to clock according to system clock;The accelerating algorithm module Control cursor moving speed apart from size by adjusting what cursor moved every time, when detect mobile cursor key be constantly in by Lower state, then increase the distance value that cursor moves every time, and button lifts the distance value that rear cursor moves every time and restores initial value.
  2. 2. a kind of explosion-proof mouse of button as described in claim 1, which is characterized in that the hardware circuit part includes button Group, guard grating, input circuit and accessory power supply.
  3. 3. a kind of explosion-proof mouse of button as claimed in claim 1 or 2, which is characterized in that the function execution module performs Function press and lift including left button and/or right button press and lift and/or cursor movement.
  4. 4. a kind of explosion-proof mouse of button as claimed in claim 3, which is characterized in that when left button, right button consecutively press, the 1st It is secondary to be inputted to be effective.
  5. 5. a kind of explosion-proof mouse of button as claimed in claim 3, which is characterized in that button is intrinsic safety type button.
  6. A kind of 6. explosion-proof mouse of button as claimed in claim 1 or 2, which is characterized in that the parameter setting module setting Parameter include the sampling time, initial step length, accelerate step-length and accelerate number of starts.
  7. 7. a kind of explosion-proof mouse of button as claimed in claim 1 or 2, which is characterized in that software has automatic starter function.
  8. 8. a kind of explosion-proof mouse of button as claimed in claim 1 or 2, which is characterized in that can coordinate with soft keyboard.
  9. 9. a kind of cursor movement accelerates control method, which is characterized in that includes the following steps:
    The first step using key information acquisition module according to system clock, periodically acquires the input information of each button, with reference to Clock is preserved;
    Second step, when detecting that mobile cursor key is constantly in down state, it is each that the control of accelerating algorithm module increases cursor Mobile distance value realizes that cursor position quickly moves, and button lifts the distance value that rear cursor moves every time and restores initial value, light It marks movement speed and restores normal value.
  10. 10. a kind of cursor movement as claimed in claim 9 accelerates control method, which is characterized in that the key information acquisition When module reads mobile cursor key continuous 5-10 times and is in down state, start cursor movement acceleration function.
CN201711438902.3A 2017-12-27 2017-12-27 A kind of explosion-proof mouse of button and cursor movement accelerate control method Pending CN108255321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711438902.3A CN108255321A (en) 2017-12-27 2017-12-27 A kind of explosion-proof mouse of button and cursor movement accelerate control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711438902.3A CN108255321A (en) 2017-12-27 2017-12-27 A kind of explosion-proof mouse of button and cursor movement accelerate control method

Publications (1)

Publication Number Publication Date
CN108255321A true CN108255321A (en) 2018-07-06

Family

ID=62724126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711438902.3A Pending CN108255321A (en) 2017-12-27 2017-12-27 A kind of explosion-proof mouse of button and cursor movement accelerate control method

Country Status (1)

Country Link
CN (1) CN108255321A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6100875A (en) * 1992-09-03 2000-08-08 Ast Research, Inc. Keyboard pointing device
CN1452122A (en) * 2002-04-18 2003-10-29 张政 Push button mouse controlling method
CN204613895U (en) * 2015-05-20 2015-09-02 山东中煤电器有限公司 A kind of coal mine explosion-proof operating mouse
CN206178721U (en) * 2016-11-10 2017-05-17 山东开创电气有限公司 Button operation mouse in explosion -proof electrical apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6100875A (en) * 1992-09-03 2000-08-08 Ast Research, Inc. Keyboard pointing device
CN1452122A (en) * 2002-04-18 2003-10-29 张政 Push button mouse controlling method
CN204613895U (en) * 2015-05-20 2015-09-02 山东中煤电器有限公司 A kind of coal mine explosion-proof operating mouse
CN206178721U (en) * 2016-11-10 2017-05-17 山东开创电气有限公司 Button operation mouse in explosion -proof electrical apparatus

Similar Documents

Publication Publication Date Title
CN103186339B (en) A kind of input method and be provided with the electronic equipment of dummy keyboard
CN104571852B (en) The moving method and device of icon
US8115740B2 (en) Electronic device capable of executing commands therein and method for executing commands in the same
CN102591497A (en) Mouse simulation system and method on touch screen
CN103713848A (en) Mobile terminal and operation method thereof
KR20110039929A (en) Multi-touch type input controlling system
CN102171635A (en) Portable electronic device and method of controlling same
CN103049205A (en) Mobile terminal and control method thereof
CN102117181A (en) Portable electronic device and method of controlling same
CN104765525A (en) Operation interface switching method and device
CN101593060A (en) The method of operating of touching method of operating and electronic installation
CN102193662A (en) Input device
CN104345982A (en) Method for Instantaneously Switching Touch Mode and Related System
CN102073445B (en) Auxiliary Chinese pinyin input system based on touch screen
CN102346625A (en) Mobile terminal (MT) and searching method thereof
CN108255321A (en) A kind of explosion-proof mouse of button and cursor movement accelerate control method
CN103376902A (en) Keyboard device applicable to different operating systems
CN112698735A (en) Information input method and device and electronic equipment
CN103823559A (en) Character input restoring method and character input restoring system
CN102929553B (en) Utilize the method that the touching signals resulting from touch control keyboard inputs as touch command
CN104516559A (en) Multi-point touch method of touch input device
CN103677645A (en) Candidate object display method and device
CN108021313B (en) Picture browsing method and terminal
CN102479083A (en) Value computing system and method by combining unit conversion
CN110609628A (en) Mouse control method and mouse

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
CB02 Change of applicant information

Address after: 130012 No. 177, Software 3 Road, Changchun High-tech Development Zone, Jilin Province

Applicant after: Changchun Rongcheng Intelligent Equipment Manufacturing Co.,Ltd.

Applicant after: CHANGCHUN LANZHOU TECHNOLOGY Co.,Ltd.

Applicant after: CHANGCHUN ZHIHE INTELLIGENT PACKAGING EQUIPMENT Co.,Ltd.

Address before: 130012 No. 177, Software 3 Road, Changchun High-tech Development Zone, Jilin Province

Applicant before: CHANGCHUN NORTHERN CHEMICAL FILLING EQUIPMENT Co.,Ltd.

Applicant before: CHANGCHUN LANZHOU TECHNOLOGY Co.,Ltd.

Applicant before: CHANGCHUN ZHIHE INTELLIGENT PACKAGING EQUIPMENT Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706

RJ01 Rejection of invention patent application after publication