CN107239154A - A kind of method that EC controls PS2 touch pad mouse switches - Google Patents
A kind of method that EC controls PS2 touch pad mouse switches Download PDFInfo
- Publication number
- CN107239154A CN107239154A CN201710427411.2A CN201710427411A CN107239154A CN 107239154 A CN107239154 A CN 107239154A CN 201710427411 A CN201710427411 A CN 201710427411A CN 107239154 A CN107239154 A CN 107239154A
- Authority
- CN
- China
- Prior art keywords
- mouse
- key assignments
- interrupted
- touch pad
- functions
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03547—Touch pads, in which fingers can move on a surface
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
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)
- Input From Keyboards Or The Like (AREA)
- Position Input By Displaying (AREA)
Abstract
The present invention discloses a kind of method that EC controls PS2 touch pad mouse switches, is related to Keyboard Control field;Key assignments is obtained on EC matrix keyboards, corresponding actions are taken according to current key assignments, judges whether PS2 touch pads mouse is in running order, is, interrupted by closing PS2, close PS2 mouse functions;Otherwise interrupted by opening PS2, open PS2 mouse functions, button detection module will continue to obtain key assignments on EC matrix keyboards, until platform shutdown power-off;Using PS2 interfaces PS2 touch pad mouses being connected on EC, by obtaining key assignments on EC matrix keyboards, realize the function of PS2 touch pad mouse switches, the inventive method more brief and practical, the participation of upper layer software (applications) is completely disengaged from, so as to more stablize, problem is less prone to.
Description
Technical field
The present invention discloses a kind of method for controlling mouse switch, is related to Keyboard Control field, specifically a kind of EC controls
The method of PS2 touch pads mouse switch processed.
Background technology
Touch pad(TouchPad or TrackPad), it is a kind of input equipment being widely used on notebook computer.
The action of pointer is controlled using the movement of user's finger.It can change capacitance when the finger of user is close to touch pad,
Touch pad itself will detect that capacitance change, be converted into coordinate.Touch pad is to know that finger moves feelings by capacitive sensing
Condition, to finger heat and insensitive.Advantage is wider using scope, and complete built-in, ultra-thin notebook is applicable, and power consumption
Amount is few, can provide hand-write input function;Can ensure because it is without portable mechanism member, when using it is durable with it is reliable.
Existing notebook PS2 touch pads mouse switch function, is required for driving come complete by the PS2 under operating system greatly
Into the implementation process of the function is as follows:After shortcut on keyboard of notebook computer is pressed, KBC is by way of interruption
Operating system is notified, operating system calls PS2 to drive, driven by PS2 to PS2 touch pads mouse controller and download corresponding life
Order, opens or closes PS2 touch pad mouses.But this control mode is relatively complicated, once capacitive sensing destruction or other circuits
Problem, easily makes touch pad fail.The present invention provides a kind of method that EC controls PS2 touch pad mouse switches, is touched using by PS2
Template mouse is connected to the PS2 interfaces on EC, by obtaining key assignments on EC matrix keyboards, realizes PS2 touch pad mouse switches
Function, the inventive method more brief and practical completely disengages from the participation of upper layer software (applications), so as to more stablize, is less prone to and asks
Topic.
The content of the invention
There is provided a kind of EC control PS2 touch pad mouse switches with problem in view of the shortcomings of the prior art by the present invention
Method,
Concrete scheme proposed by the present invention is:
A kind of method that EC controls PS2 touch pad mouse switches, obtains key assignments on EC matrix keyboards, is adopted according to current key assignments
Corresponding actions are taken, judge whether PS2 touch pads mouse is in running order, is, interrupted by closing PS2, close PS2 mouses
Function;Otherwise interrupted by opening PS2, open PS2 mouse functions, button detection module will continue to obtain key on EC matrix keyboards
Value, until platform shutdown power-off.
Judge whether PS2 touch pads mouse is in running order, is, interrupted by closing PS2, configure complexing pin
PS2 mouse functions are closed for GPIO;Otherwise interrupted by opening PS2, complexing pin is configured into PS2 to open PS2 mouses
Function.
Described method, is concretely comprised the following steps:
After start, EC starts to detect whether the shortcut on matrix keyboard is pressed;
If matrix keyboard shortcut is not pressed, continue to detect;
If matrix keyboard shortcut is pressed, key assignments is obtained, judges whether current PS2 touch pads mouse is in work shape
State, is to be interrupted by closing PS2, complexing pin is configured into GPIO to close PS2 mouse functions;Otherwise by opening PS2
Interrupt, be configured to PS2 to open PS2 mouse functions by complexing pin;
EC continues to detect whether the shortcut of matrix keyboard is pressed, until platform shutdown power-off.
The system that a kind of EC controls PS2 touch pad mouse switches, including button detection module, PS2 touch pad mouse switches
Module,
Button detection module is responsible for obtaining key assignments on EC matrix keyboards, and key assignments is passed into PS2 touch pad mouse switch modules,
PS2 touch pad mouse switch modules take corresponding actions according to current key assignments, judge whether PS2 touch pads mouse is in
Working condition, is to be interrupted by closing PS2, close PS2 mouse functions;Otherwise interrupted by opening PS2, open PS2 mouses
Function, button detection module will continue to obtain key assignments on EC matrix keyboards, until platform shutdown power-off.
The PS2 touch pads mouse switch module judges whether PS2 touch pads mouse is in running order, is then by closing
PS2 is closed to interrupt, be configured to GPIO to close PS2 mouse functions by complexing pin;Otherwise interrupted by opening PS2, manage multiplexing
Pin is configured to PS2 to open PS2 mouse functions.
Usefulness of the present invention is:
The present invention provides a kind of method that EC controls PS2 touch pad mouse switches, and key assignments is obtained on EC matrix keyboards, according to working as
Preceding key assignments takes corresponding actions, judges whether PS2 touch pads mouse is in running order, is, is interrupted, closed by closing PS2
Close PS2 mouse functions;Otherwise interrupted by opening PS2, open PS2 mouse functions, button detection module will continue EC matrix keys
Key assignments is obtained on disk, until platform shutdown power-off;
Using PS2 interfaces PS2 touch pad mouses being connected on EC, by obtaining key assignments on EC matrix keyboards, realize PS2
The function of touch pad mouse switch, the inventive method more brief and practical, completely disengages from the participation of upper layer software (applications), so that more steady
It is fixed, it is less prone to problem.
Brief description of the drawings
The existing PS2 touch pads mouse switch flow charts of Fig. 1;
Fig. 2 PS2 touch pads mouse switch flow charts of the present invention.
Embodiment
The present invention provides a kind of method that EC controls PS2 touch pad mouse switches, and key assignments, root are obtained on EC matrix keyboards
Corresponding actions are taken according to current key assignments, judge whether PS2 touch pads mouse is in running order, is, by closing in PS2
Disconnected, closing PS2 mouse functions;Otherwise interrupted by opening PS2, open PS2 mouse functions, button detection module will continue EC squares
Key assignments is obtained on battle array keyboard, until platform shutdown power-off.
The system that a kind of EC controls PS2 touch pad mouse switches, including button detection module, PS2 touch pads are provided simultaneously
Mouse switch module,
Button detection module is responsible for obtaining key assignments on EC matrix keyboards, and key assignments is passed into PS2 touch pad mouse switch modules,
PS2 touch pad mouse switch modules take corresponding actions according to current key assignments, judge whether PS2 touch pads mouse is in
Working condition, is to be interrupted by closing PS2, close PS2 mouse functions;Otherwise interrupted by opening PS2, open PS2 mouses
Function, button detection module will continue to obtain key assignments on EC matrix keyboards, until platform shutdown power-off.
Using the above method and system, with reference to accompanying drawing, the present invention will be further described.
The right platform of the present invention is typically notebook computer or tablet personal computer, or can use EC matrixes
Other calculating platforms of keyboard.Exemplified by comparing notebook computer,
Keyboard of notebook computer uses EC matrix keyboards, and after user presses shortcut, button detection module can directly obtain key assignments,
PS2 touch pad mouse switch modules take corresponding actions according to current key assignments,
Concretely comprise the following steps:
After start, button detection module starts to detect whether the shortcut on matrix keyboard is pressed;
If matrix keyboard shortcut is not pressed, continue to detect;
If matrix keyboard shortcut is pressed, whether PS2 touch pad mouse switch modules judge current PS2 touch pads mouse
It is in running order, it is to be interrupted by closing PS2, complexing pin is configured into GPIO to close PS2 mouse functions;Otherwise,
Interrupted by opening PS2, complexing pin is configured into PS2 to open PS2 mouse functions;
Button detection module continues to detect whether the shortcut of matrix keyboard is pressed, until platform shutdown power-off.
Wherein PS2 touch pads mouse switch module is connected to EC KBC by EC PS2 interfaces, by keyboard control
Device processed sends mouse value to operating system PS2 drivings.PS2 pins in EC are complexing pins, by configuring corresponding deposit
Device can be configured as PS2 pins or GPIO pins.In accordance with the above, it can be interrupted and by PS2 pins by closing PS2
GPIO is configured to close PS2 touch pad mouses, on the contrary, can by open PS2 interrupt and by PS2 pin configurations for GPIO come
Open PS2 touch pad mouses.
The participation of system layer software is completely disengaged from by the invention described above method, is that can be achieved in EC aspects, so as to improve
The reliability that function is realized.
Claims (5)
1. a kind of EC controls the method for PS2 touch pad mouse switches, it is characterized in that obtain key assignments on EC matrix keyboards, according to working as
Preceding key assignments takes corresponding actions, judges whether PS2 touch pads mouse is in running order, is, is interrupted, closed by closing PS2
Close PS2 mouse functions;Otherwise interrupted by opening PS2, open PS2 mouse functions, button detection module will continue EC matrix keys
Key assignments is obtained on disk, until platform shutdown power-off.
2. according to the method described in claim 1, it is characterized in that judging whether PS2 touch pads mouse is in running order, is then
Interrupted by closing PS2, complexing pin is configured into GPIO to close PS2 mouse functions;Otherwise interrupted, incited somebody to action by opening PS2
Complexing pin is configured to PS2 to open PS2 mouse functions.
3. method according to claim 1 or 2, it is characterized in that concretely comprising the following steps:
After start, EC starts to detect whether the shortcut on matrix keyboard is pressed;
If matrix keyboard shortcut is not pressed, continue to detect;
If matrix keyboard shortcut is pressed, key assignments is obtained, judges whether current PS2 touch pads mouse is in work shape
State, is to be interrupted by closing PS2, complexing pin is configured into GPIO to close PS2 mouse functions;Otherwise by opening PS2
Interrupt, be configured to PS2 to open PS2 mouse functions by complexing pin;
EC continues to detect whether the shortcut of matrix keyboard is pressed, until platform shutdown power-off.
4. the system that a kind of EC controls PS2 touch pad mouse switches, it is characterized in that including button detection module, PS2 touch pad mouse
Mark switch module,
Button detection module is responsible for obtaining key assignments on EC matrix keyboards, and key assignments is passed into PS2 touch pad mouse switch modules,
PS2 touch pad mouse switch modules take corresponding actions according to current key assignments, judge whether PS2 touch pads mouse is in
Working condition, is to be interrupted by closing PS2, close PS2 mouse functions;Otherwise interrupted by opening PS2, open PS2 mouses
Function, button detection module will continue to obtain key assignments on EC matrix keyboards, until platform shutdown power-off.
5. system according to claim 4, it is characterized in that the PS2 touch pads mouse switch module judges PS2 touch pads
Whether mouse is in running order, is, is interrupted by closing PS2, complexing pin is configured into GPIO to close PS2 mouse work(
Energy;Otherwise interrupted by opening PS2, complexing pin is configured into PS2 to open PS2 mouse functions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710427411.2A CN107239154A (en) | 2017-06-08 | 2017-06-08 | A kind of method that EC controls PS2 touch pad mouse switches |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710427411.2A CN107239154A (en) | 2017-06-08 | 2017-06-08 | A kind of method that EC controls PS2 touch pad mouse switches |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107239154A true CN107239154A (en) | 2017-10-10 |
Family
ID=59987456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710427411.2A Pending CN107239154A (en) | 2017-06-08 | 2017-06-08 | A kind of method that EC controls PS2 touch pad mouse switches |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107239154A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855003A (en) * | 2005-04-19 | 2006-11-01 | 张逶 | Microcomputer and its mouse touch plate |
WO2009017378A3 (en) * | 2007-07-31 | 2009-04-16 | Ahnlab Inc | Method for generating data of keyboard and apparatus thereof |
CN101556504A (en) * | 2009-01-04 | 2009-10-14 | 李兵 | Flexible keyboard with mouse |
CN101661304A (en) * | 2008-08-25 | 2010-03-03 | 联想(北京)有限公司 | Computer and input equipment sharing method thereof |
CN104076962A (en) * | 2013-03-26 | 2014-10-01 | 联想(北京)有限公司 | State control method and state control device of touch input device |
CN204695233U (en) * | 2014-07-13 | 2015-10-07 | 胡世曦 | A kind of keyboard with mouse function |
CN105808466A (en) * | 2016-03-04 | 2016-07-27 | 合肥联宝信息技术有限公司 | Method for avoiding false triggering of touch pad of electronic equipment |
-
2017
- 2017-06-08 CN CN201710427411.2A patent/CN107239154A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855003A (en) * | 2005-04-19 | 2006-11-01 | 张逶 | Microcomputer and its mouse touch plate |
WO2009017378A3 (en) * | 2007-07-31 | 2009-04-16 | Ahnlab Inc | Method for generating data of keyboard and apparatus thereof |
CN101661304A (en) * | 2008-08-25 | 2010-03-03 | 联想(北京)有限公司 | Computer and input equipment sharing method thereof |
CN101556504A (en) * | 2009-01-04 | 2009-10-14 | 李兵 | Flexible keyboard with mouse |
CN104076962A (en) * | 2013-03-26 | 2014-10-01 | 联想(北京)有限公司 | State control method and state control device of touch input device |
CN204695233U (en) * | 2014-07-13 | 2015-10-07 | 胡世曦 | A kind of keyboard with mouse function |
CN105808466A (en) * | 2016-03-04 | 2016-07-27 | 合肥联宝信息技术有限公司 | Method for avoiding false triggering of touch pad of electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9733822B2 (en) | Electronic device and state controlling method | |
CN107066158B (en) | Touch-sensitive button with two gears | |
CN204695233U (en) | A kind of keyboard with mouse function | |
KR20140134459A (en) | Apparatus and Method for portable device with a fingerprint scanner | |
TW201025093A (en) | Method of converting touch pad into touch mode or number-key and/or hot-key input mode | |
CN104919404A (en) | System for driving device through touch input in low-power mode in which display is turned off | |
JP2010160773A (en) | Auxiliary method for cursor movement control of touch pad | |
US20130106704A1 (en) | Laptop computer | |
CN103019572A (en) | Electronic equipment and state controlling method | |
CN105022561A (en) | Touch screen control apparatus and method and mobile terminal | |
CN103809901A (en) | False touch prevention touch control method and electronic device using same | |
KR101833281B1 (en) | Method and apparatus preventing malfunction of touchpad in electronic device | |
GB2445178A (en) | A single touchpad to enable cursor control and keypad emulation on a mobile electronic device | |
TWI401585B (en) | Electric device having point device and operation method for the point device | |
CN103809793B (en) | Information processing method and electronic device | |
CN104714643B (en) | A kind of method, system and mobile terminal that simulated touch screen is realized using sensor | |
US20100039388A1 (en) | Keyboard apparatus integrated with touch input module | |
CN104484056A (en) | Keyboard with mouse function | |
US20100271300A1 (en) | Multi-Touch Pad Control Method | |
CN104375680B (en) | A kind of electronic equipment and input method | |
CN103729133A (en) | Touch display method and electronic device using same | |
CN107239154A (en) | A kind of method that EC controls PS2 touch pad mouse switches | |
CN103677373A (en) | Touch control display method and electronic device thereof | |
CN100476699C (en) | Apparatus and method for preventing touch of key-press by accident | |
US9026691B2 (en) | Semi-autonomous touch I/O device controller operation under control of host |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171010 |
|
RJ01 | Rejection of invention patent application after publication |