CN103777959A - Use method of virtual mouse - Google Patents

Use method of virtual mouse Download PDF

Info

Publication number
CN103777959A
CN103777959A CN201410052584.7A CN201410052584A CN103777959A CN 103777959 A CN103777959 A CN 103777959A CN 201410052584 A CN201410052584 A CN 201410052584A CN 103777959 A CN103777959 A CN 103777959A
Authority
CN
China
Prior art keywords
cursor
event
finger
screen
virtual mouse
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
CN201410052584.7A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410052584.7A priority Critical patent/CN103777959A/en
Publication of CN103777959A publication Critical patent/CN103777959A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a use method of a virtual mouse. In the using method of the virtual mouse, an android standard bottom driver is modified through introduction of android events from EventHub of the bottom driver; during system initialization, Windowmanager will create a thread, events are read from an event queue in the thread, and according to different types, the read events are divided into three categories (KEYBOARD, TOUCHSCREEN and TRACKBALL); in a screen touch event, the android standard driver will invoke dispatchPointer, and the function judges and processes according to the type of the event and sends the occurred event to an authorized specified window. The use method of the virtual mouse has the characteristics of quick transplantation and secondary development, has simplified and practical functions and is wide in application range.

Description

A kind of using method of virtual mouse
Technical field
The present invention relates to a kind of using method of virtual mouse.
Background technology
The universal epoch of smart mobile phone are just accelerating to arrive.According to the up-to-date investigation report demonstration of IDC, the second quarter in this year, European smart mobile phone shipment amount exceedes non intelligent mobile phone first, and IDC estimates that global smart mobile phone shipment amount in 2011 will exceed 4.5 hundred million before this, and will continue high growth.ISuppli estimates, 4.78 hundred million of being expected to from this year of the smart mobile phone shipment amount of 2015 rise to 10.3 hundred million.Obviously, smart mobile phone has been trend of the times.
Become today of absolute main flow in capacitance touch screen technology, under the trend more and more developing toward giant-screen at mobile phone, the application of simulation cursor, characteristic by its Rapid transplant and secondary development, simplify practical function, one occupies a tiny space surely in andriod software, and win cellphone subscriber and trust, provide good user to experience, jointly obtain coml success with other andriod cell phone software.
Summary of the invention
The object of the present invention is to provide a kind of using method of virtual mouse, solved the problem proposing in above-mentioned background technology.
Technical matters solved by the invention realizes by the following technical solutions:
A kind of using method of virtual mouse, adopt importing into from the EventHub of bottom layer driving of android event, in the bottom layer driving of revising andriod standard, in the time of system initialization, Windowmanager can create a thread (InputDispatcherThread), in this thread, from event queue, read event, and be divided into three class (KEYBOARD according to the difference that reads event type, TOUCHSCREEN, TRACKBALL), in touchscreen events, the driving of andriod standard can be called dispatchPointer, this function is according to the kind (UP of event, DOWN, MOVE, OUT_SIDE etc.) judge and process, event is gone sending in the window of the appointment with authority, the method comprises the following steps:
(1) by opening the switch in suspended window, long by exhalation cursor, enter simulation cursor mode;
(2) under simulation cursor mode, according to the operation of finger, cursor on screen is realized and is followed finger trace, when finger stops mobile and to pin screen be that cursor moves to original direction;
(3) when the moment that finger frames out, cursor is carried out clicking operation and is disappeared, and in the time that cursor moves toward a direction, finger moves again, and cursor can recalculate moving direction, and changes direction and move;
(4) take away and point the operation of now cursor execution one click from screen, and disappear.
Further, described virtual mouse, comprises suspended window and cursor; Described suspended window exist always with mobile phone on, click suspended window there will be a button, in button, have a switch, the cursor of can breathing out under the state of opening; Described mark is not present on mobile phone at ordinary times, and under the state of need to the switch in suspended window opening, the long screen of press is breathed out, and cursor can be carried out, and root finger is clicked the same operation, after finger frames out/carry out disappearance automatically after clicking operation.
In sum, beneficial effect of the present invention:
The present invention simulates in the window application that cursor software can be embedded into other, such as a table trip, even the new drive part of software can directly provide storehouse and api interface to develop work for other software transfers; Cursor under this driving simultaneously, can reach an optimum user by the cursor under complicated functional operation experiences, cellphone subscriber can be directly with hand pin screen one among a small circle in, as operating mouse, operate, allow cursor in mobile phone screen, control heartily, to move about, realize Rapid transplant and secondary development characteristic, simplify practical function, applied widely.
Accompanying drawing explanation
Fig. 1 is workflow diagram of the present invention;
Fig. 2 is long by the process flow diagram that resurrects cursor;
Fig. 3 pins and keeps cursor to continue mobile process flow diagram after moving;
Fig. 4 is the process flow diagram that continues to take away in mobile status finger.
Embodiment
Below in conjunction with the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
As shown in Figure 1, a kind of using method of virtual mouse, adopt importing into from the EventHub of bottom layer driving of android event, in the bottom layer driving of revising andriod standard, in the time of system initialization, Windowmanager can create a thread (InputDispatcherThread), in this thread, from event queue, read event, and be divided into three class (KEYBOARD according to the difference that reads event type, TOUCHSCREEN, TRACKBALL), in touchscreen events, the driving of andriod standard can be called dispatchPointer, this function is according to the kind (UP of event, DOWN, MOVE, OUT_SIDE etc.) judge and process, event is gone sending in the window of the appointment with authority, the method comprises the following steps:
(1) by opening the switch in suspended window, long by exhalation cursor, enter simulation cursor mode;
(2) under simulation cursor mode, according to the operation of finger, cursor on screen is realized and is followed finger trace, when finger stops mobile and to pin screen be that cursor moves to original direction;
(3) when the moment that finger frames out, cursor is carried out clicking operation and is disappeared, and in the time that cursor moves toward a direction, finger moves again, and cursor can recalculate moving direction, and changes direction and move;
(4) take away and point the operation of now cursor execution one click from screen, and disappear.
Embodiment 2
As shown in Figure 2, it is long by resurrecting cursor: in standard andriod drives, there is touch-screen length by event, press in event call-back function in touch-screen length, record touch-screen position, call andriod interface and draw cursor based on touch-screen position, and the flag0 that cursor resurrects is set is true, forbid that other window writing routine responses are long by operation, concrete steps are as follows:
(1) open the switch in suspended window, enter andriod standard Event flow process, send event to window application;
(2) open the switch in suspended window, after selecting and being, enter long by event;
(3) enter long by after event, block long by event, and arrange cursor resurrect be denoted as true;
(4) call andriod interface and draw cursor based on touch-screen position;
(5) event is blocked, and length is no longer uploaded application program by event.
Whole process is exactly long by rear In the view of user, and a cursor has appearred in screen.
Embodiment 3
As shown in Figure 3, after moving, pin and keep cursor to continue to move: mobile meeting triggers a moving event on touch-screen, in moving event callback events, uses one group of position in the continuous record move event of global variable; After the flag0 of cursor appearance is true time, judges moving event, whether press operation immediately following length.If be judged as very, by the call back function of event, calculate angle and the position of move event this vice-minister, control the lasting movement of cursor; And it is true that the lasting mobile flag1 of cursor is set.
Embodiment 4
As shown in Figure 4, continue to take away finger in mobile status: cursor stops moving and clicks once, when one on touch-screen long finish by event after, judge that cursor continues whether mobile flag1 is true, if flag1 is true, obtain the now position of cursor, and position based on cursor, a simulation clicking operation sent to window.And controlling cursor disappears.It is false arranging that cursor resurrects flag0, continues mobile flag1.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and in the situation that not deviating from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims rather than above-mentioned explanation, is therefore intended to all changes that drop in the implication and the scope that are equal to important document of claim to include in the present invention.
In addition, be to be understood that, although this instructions is described according to embodiment, but be not that each embodiment only comprises an independently technical scheme, this narrating mode of instructions is only for clarity sake, those skilled in the art should make instructions as a whole, and the technical scheme in each embodiment also can, through appropriately combined, form other embodiments that it will be appreciated by those skilled in the art that.

Claims (2)

1. the using method of a virtual mouse, it is characterized in that, adopt importing into from the EventHub of bottom layer driving of android event, in the time of system initialization, Windowmanager can create a thread (InputDispatcherThread), in this thread, from event queue, read event, and be divided into three class (KEYBOARD according to the difference that reads event type, TOUCHSCREEN, TRACKBALL), in touchscreen events, the driving of andriod standard can be called dispatchPointer, this function judges and processes according to the kind of event, event is gone sending in the window of the appointment with authority, the method comprises the following steps:
(1) by opening the switch in suspended window, long by exhalation cursor, enter simulation cursor mode;
(2) under simulation cursor mode, according to the operation of finger, cursor on screen is realized and is followed finger trace, when finger stops mobile and to pin screen be that cursor moves to original direction;
(3) when the moment that finger frames out, cursor is carried out clicking operation and is disappeared, and in the time that cursor moves toward a direction, finger moves again, and cursor can recalculate moving direction, and changes direction and move;
(4) take away and point the operation of now cursor execution one click from screen, and disappear.
2. the using method of a kind of virtual mouse according to claim 1, is characterized in that, described virtual mouse comprises suspended window and cursor; Described suspended window exist always with mobile phone on, click suspended window there will be a button, in button, have a switch, the cursor of can breathing out under the state of opening; Described mark is not present on mobile phone at ordinary times, and under the state of need to the switch in suspended window opening, the long screen of press is breathed out, and cursor can be carried out, and root finger is clicked the same operation, after finger frames out/carry out disappearance automatically after clicking operation.
CN201410052584.7A 2014-02-17 2014-02-17 Use method of virtual mouse Pending CN103777959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410052584.7A CN103777959A (en) 2014-02-17 2014-02-17 Use method of virtual mouse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410052584.7A CN103777959A (en) 2014-02-17 2014-02-17 Use method of virtual mouse

Publications (1)

Publication Number Publication Date
CN103777959A true CN103777959A (en) 2014-05-07

Family

ID=50570241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410052584.7A Pending CN103777959A (en) 2014-02-17 2014-02-17 Use method of virtual mouse

Country Status (1)

Country Link
CN (1) CN103777959A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035719A (en) * 2014-06-26 2014-09-10 苏宁云商集团股份有限公司 Large screen touch operation method and device and large screen touch terminal
CN105005746A (en) * 2015-06-04 2015-10-28 上海卓易科技股份有限公司 Terminal data transmission method and system for Android capacitive screen
CN106569828A (en) * 2016-11-10 2017-04-19 福州智永信息科技有限公司 Method of realizing simulation of touch device manual operation in expandable and customized way

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750035A (en) * 2012-06-20 2012-10-24 中兴通讯股份有限公司 Method and device for determining display position of cursor
CN102955590A (en) * 2011-08-19 2013-03-06 中国移动通信集团公司 Device and method for positioning cursor displayed on touch screen

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955590A (en) * 2011-08-19 2013-03-06 中国移动通信集团公司 Device and method for positioning cursor displayed on touch screen
CN102750035A (en) * 2012-06-20 2012-10-24 中兴通讯股份有限公司 Method and device for determining display position of cursor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
POTTICHU: "Android touch screen keyboard 移植记录", 《博客频道》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035719A (en) * 2014-06-26 2014-09-10 苏宁云商集团股份有限公司 Large screen touch operation method and device and large screen touch terminal
CN105005746A (en) * 2015-06-04 2015-10-28 上海卓易科技股份有限公司 Terminal data transmission method and system for Android capacitive screen
CN106569828A (en) * 2016-11-10 2017-04-19 福州智永信息科技有限公司 Method of realizing simulation of touch device manual operation in expandable and customized way
CN106569828B (en) * 2016-11-10 2019-08-09 福州智永信息科技有限公司 The method that analog manual operation's touch apparatus is realized in expansible customization

Similar Documents

Publication Publication Date Title
CN103092518B (en) A kind of mobile accurate touch control method of cloud desktop based on RDP agreement
CN103513912B (en) A kind of interface switching method and device
CN104049866B (en) The implementation method and device of a kind of mobile terminal and its split screen
CN106502520A (en) For navigating and playing the user interface of content
CN106462283A (en) Character recognition on a computing device
CN103744530B (en) Keyboard realizes the system of touch function, terminal and method
CN102331927B (en) Method for integrating soft keyboard input of Wine and Android mobile phone
CN101963857A (en) Touch device, control method and control unit for multi-touch environment
TW201525776A (en) Invocation control over keyboard user interface
CN107357586A (en) Control method, device and the equipment of application program
US11071913B2 (en) Program, game system, electronic device, server, and game control method for improving operability for user input
CN102609187A (en) Menu display method and terminal equipment
CN102364434B (en) Method for integrating Wine and Android mouse input
CN103777959A (en) Use method of virtual mouse
KR20130112629A (en) Menu contolling method of media equipment, apparatus thereof, and medium storing program source thereof
CN103369140A (en) Display font amplification method, system and communication terminal
CN106569708B (en) Method and terminal for realizing pressing simulation display
CN109189452A (en) Oftware updating method, device and the storage medium of a kind of electronic equipment
CN102323864A (en) Touch screen response method and device and terminal device
CN107092433A (en) The method of toch control and device of touch-control all-in-one machine
KR100608737B1 (en) Method for interfacing with user when remotely logining in mobile communication terminal
CN110502165A (en) Fast move multiple APP figure calibration methods
CN107450821A (en) The method and apparatus of menu is breathed out by performing gesture on application interface
CN105302252A (en) Optical computer based on control of smart phone
CN109491732A (en) A kind of virtual control display methods, device and vehicle-carrying display screen

Legal Events

Date Code Title Description
C06 Publication
DD01 Delivery of document by public notice

Addressee: Li Haiyuan

Document name: Notification of Passing Preliminary Examination of the Application for Invention

PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Li Haiyuan

Document name: the First Notification of an Office Action

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Li Haiyuan

Document name: Notification that Application Deemed to be Withdrawn

DD01 Delivery of document by public notice
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140507

WD01 Invention patent application deemed withdrawn after publication