Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings the present invention is made further
Detailed description.
In embodiments of the present invention, can by the touch apparatus with touch-screen by various ways such as wireless networks even
Receiving on screen equipment, after producing touch event on touch apparatus, this touch event can be invented on screen equipment
Touch event, thus allow screen equipment respond.
Fig. 1 is the virtual touch implementation method flow chart according to embodiment of the present invention.
As it is shown in figure 1, the method includes:
Step 101: touch apparatus captures the touch operation event on it, and sends this touch operation thing to screen equipment
Part.
Here, touch apparatus can be for arbitrarily having the equipment of touch function.
Such as: distinguish from know-why, touch apparatus particularly may be divided into five basic kind: vector pressure sensing technology
Touch apparatus, resistive technologies touch apparatus, capacitance technology touch apparatus, infrared technology touch apparatus, surface acoustic wave technique are touched
Touch equipment.
If made a distinction according to the operation principle of touch apparatus and the medium of transmission information, touching of embodiment of the present invention
The equipment of touching is specifically as follows resistance-type, capacitor induction type, infrared-type and surface acoustic wave type.
Touch apparatus can wait multiple nothing by infrared communication mode, bluetooth communication mode, WiFi communication mode or 2.4G
Line communication modes sends this touch operation event to screen equipment.
Here, the touch event of touch apparatus capture can be conceptualized as 3 classes, can be with accurate description user by this 3 class
Operation behavior to touch-screen:
Touch down event: comprise to trigger the coordinate (m of the point of the event of touching down0,n0), if any referring to touch more, then subsidiary upper i(i altogether >
0) coordinate (m of individual other points already at touch condition1,n1)~(mi,ni);Wherein (mj,nj)∈(X,Y)(0≤j≤i);
Slip event: comprise the coordinate (m triggering the point of slip event0,n0), if any referring to touch more, then subsidiary upper i(i altogether >
0) coordinate (m of individual other points already at touch condition1,n1)~(mi,ni);Wherein (mj,nj)∈(X,Y)(0≤j≤i);
Lift event: comprise to touch the coordinate (m of the point lifting start event0,n0), if any referring to touch more, then subsidiary upper i(i altogether >
0) coordinate (m of individual other points already at touch condition1,n1)~(mi,ni)。(mj,nj)∈(X,Y)(0≤j≤i);
Wherein can only there is a trigger point for a touch event, if change the state of two trigger points simultaneously,
Then this touch behavior can be split as two continuous print touch events.
Touch apparatus preferably sends the coordinate of touch operation event type and touch operation event to screen equipment.
Specifically: touch apparatus can send to screen equipment: touch operation event type, touch operation event trigger point
Coordinate (m0,n0) and other do not change point coordinates (m1,n1)~(mi,ni)。
In one embodiment, touch apparatus can send this touch behaviour to screen equipment by way of WiFi connects
Make event.In WiFi mode, touch apparatus and screen equipment are mutually not aware that the IP address of the other side, and touch apparatus needs main
The dynamic all devices notifying by way of udp broadcast in the network segment.After screen equipment in the network segment receives this udp broadcast, response
The connection request of touch apparatus, the IP of the touch apparatus being comprised in getting UDP message bag, port information, then screen sets
Standby being directly connected on touch apparatus based on these information, thus both sides just can set up connection, starts transmission touch operation thing
Part.
For the connected modes such as bluetooth, 2.4G network, the logic matched in advance generally by physical address, i.e. touch and set
After standby or screen equipment is started shooting, the equipment near Automatic-searching, when discovery and the equipment meeting that oneself matches in advance, automatically set up
Physical connection.
Step 102: screen equipment receives this touch operation event, and will by the virtual touch equipment on described screen equipment
This touch operation event is converted into the touch operation event of screen equipment.
Here, screen equipment is specifically as follows the equipment arbitrarily with display screen and computing capability, such as Android
(Android) TV, projecting apparatus system, multimedia play system etc., embodiment of the present invention is to this and indefinite.
Virtual touch equipment can be set up in advance on screen equipment.Virtual unit is that one is fictionalized by software engineering
The non-genuine equipment coming.For a user, virtual unit exists as real equipment, and user can directly use virtual setting
The corresponding function of standby execution.Such as: the current virtual unit such as virtual drive, Microsoft Loopback Adapter has obtained and has been widely applied.
In embodiments of the present invention, setting up virtual touch equipment on screen equipment by software engineering, this is virtual tactile
The equipment of touching can receive the touch data in the external world, and utilizes these extraneous touch datas to fictionalize the screen for screen equipment
Touch event.
In one embodiment, screen equipment is set up virtual touch setting tool body may include that
Register virtual touch equipment by opening system call command on screen equipment, and divide for this virtual touch equipment
Join internal memory;
By the internal memory of input/output control system call instruction configuration virtual touch equipment, and activate virtual touch equipment
Internal memory.
Preferably, specifically can be wrapped by the internal memory of input/output control system call instruction configuration virtual touch equipment
Include:
By input/output control system call instruction, the internal memory of this virtual touch equipment configures virtual touch equipment
The touch event type that can respond;
By input/output control system call instruction, the internal memory of this virtual touch equipment configures virtual touch equipment
Virtual push button number;
By input/output control system call instruction, the internal memory of this virtual touch equipment configures virtual touch equipment
The coordinate range of virtual push button;And/or
By input/output control system call instruction, the internal memory of this virtual touch equipment configures virtual touch equipment
The translational speed of middle virtual push button.
Such as, if screen equipment uses class UNIX operating system, embodiment of the present invention specifically can be in class UNIX
Core is write remote controllers (remoteController) control module and the submodule of input (input) system.Remotely control
Device control module processed is claimed as loading when system starts, and shows path after loading in the file system of screen equipment
For :/dev/remoteController.
Remote controllers control module is used for registering, change and nullifying the submodule of this input (input) system, and this is defeated
The submodule entering (input) system is actually the virtual touch equipment utilizing software to produce.
Remote controllers control module can be registered virtual touch on screen equipment by Open system call command and set
Standby, and be this virtual touch equipment storage allocation.
Specifically include: when being opened (open) path by system call command be: the joint of dev/remoteController
During point, remote controllers control module can be called, and is virtual touch equipment storage allocation in this calls, and touches virtual
Touch facility registration in the middle of input (input) system of class UNIX operating system.
Remote controllers control module can also be configured the internal memory of virtual touch equipment by IOCTL system call command,
And activate the internal memory of virtual touch equipment.
Specifically include: predefined command word and internal storage data, remote controllers control module calls life by IOCTL system
Order, the kernel from user's space to class UNIX operating system transmits this command word and internal storage data.As such, it is possible to root easily
Change the detail of registered virtual touch equipment according to user's space.Such as: modification virtual touch equipment can respond
The translational speed of touch event type, virtual push button number, the coordinate range of virtual push button or virtual push button, etc..
Remote controllers control module can also be discharged shared by this virtual touch equipment by CLOSE system call command
Internal memory.
Specifically include: when closing (close) path be: during the node of/dev/remoteController, remote controllers
Control module is called, and calls medium-long range controller control module at this and by virtual touch equipment in input (input) is just
System is nullified, discharges its internal memory taking simultaneously.
Visible, virtual touch equipment is as good as the submodule then inputting (input) system.By long-range control
Device control module processed can call virtual touch equipment changing the attribute of oneself, thus virtual touch equipment can invent and appoint
Meaning input equipment, including touch pad, keyboard, mouse etc..
And, the virtual data source of virtual touch equipment is user space program, and user space program can be passed through
System calls write.So, by predefined one section of internal memory write device node, virtual touch equipment resolves in this section again
Deposit and just can send corresponding virtual touch event.
Preferably, can also set up multiple virtual touch equipment on screen equipment, now corresponding touch apparatus also has
Multiple.Need to arrange the corresponding relation of each virtual touch equipment and each touch apparatus, preferably one to one relation.
Here, screen equipment receives this touch operation event, and transfers to touch operation event at virtual touch equipment
Reason.Virtual touch equipment in screen equipment determines touch operation movement tendency, and base based on the coordinate of touch operation event
In this touch operation event type and touch operation movement tendency, determine the touch operation event of screen equipment.
In fact, owing to the coordinate system of the screen resolution of touch apparatus may be different from the coordinate system of screen equipment, because of
This to perform the response corresponding with touch operation event for screen equipment preferably by the touch operation event of touch apparatus
Operation, and do not expect to utilize the touch operation event of touch apparatus to be accurately controlled the coordinate system of screen equipment.
Preferably, the screen equipment touch operation event after conversion and touch apparatus send the touch operation event holding coming
Unanimously.Alternatively, the screen equipment touch operation event after conversion also can send, with touch apparatus, the touch operation event of coming
Do not keep consistent, as long as screen equipment touch operation event and touch apparatus send the conversion symbol between the touch operation event come
Close predetermined corresponding relation.
Such as: if touch apparatus sends the touch operation event trigger point coordinate (m of coming0,n0) variation tendency for the right
Mobile, the virtual touch equipment in screen equipment is thus it can be assumed that this touch operation event is for moving right;If touching again
Equipment sends the touch operation event type coming for sliding, then virtual touch equipment can be in conjunction with determining this touch operation event
For sliding to the right, then touch apparatus is sent the touch operation event that touch operation event is converted into screen equipment: slide to the right
Dynamic.
For another example: if touch apparatus sends the touch operation event trigger point coordinate (m of coming0,n0) variation tendency for
Moving left, the virtual touch equipment in screen equipment is thus it can be assumed that this touch operation event is for being moved to the left;If touching again
Equipment of touching sends the touch operation event type coming for sliding, then virtual touch equipment can be in conjunction with determining this touch operation thing
Touch apparatus for sliding to the left, is then sent the touch operation event that touch operation event is converted into screen equipment: to the left by part
Slide.
Step 103: screen equipment responds for the touch operation event after this conversion.
After the touch operation event determining screen equipment, screen equipment can be in response to the touch of this screen equipment
Action Events makes various response, just as the touch operation event of this screen equipment truly occurs on screen equipment.
Specifically, can arrange the operational order corresponding with screen equipment touch operation event, screen equipment is determining
After going out the touch operation event of screen equipment, retrieve with convert after the corresponding operational order of touch operation event, then
Perform the operational order corresponding with the touch operation event after conversion.
Such as: pre-set on screen equipment with corresponding operational order of sliding to the right as opening browser.Screen
Equipment after determining the touch operation event of screen equipment for sliding to the right, the touch operation event after retrieving and converting
Corresponding operational order is: open browser, then screen equipment performs this operational order to open browser.
Based on above-mentioned analysis, embodiment of the present invention also proposed a kind of virtual touch and realizes system.
Fig. 2 is for realizing system construction drawing according to the virtual touch of embodiment of the present invention.
As in figure 2 it is shown, this system includes screen equipment 201 and touch apparatus 202.
Touch apparatus 202, is used for capturing the touch operation event on it, and sends this touch to described screen equipment 201
Action Events;
Screen equipment 201, is used for receiving this touch operation event, and is set by the virtual touch of 201 on described screen equipment
For 2011, this touch operation event is converted into the touch operation event of screen equipment 201, for the touch operation after this conversion
Event responds.
In one embodiment, screen equipment 201 sets up virtual touch equipment 2011 in advance on it.Specifically, shield
Curtain equipment 201, for registering virtual touch equipment 2011 on screen equipment by opening system call command, is that this is virtual tactile
Touch equipment 2011 storage allocation, by the internal memory of input/output control system call instruction configuration virtual touch equipment 2011, and
Activate described virtual touch device memory.
Specifically, screen equipment 201, may be used for:
By input/output control system call instruction, this virtual touch device memory configures virtual touch equipment energy
The touch event type of enough responses;
By input/output control system call instruction, this virtual touch device memory configures virtual touch equipment
Virtual push button number;
By input/output control system call instruction, this virtual touch device memory configures virtual touch equipment
The coordinate range of virtual push button;And/or
By input/output control system call instruction, configure in virtual touch equipment in this virtual touch device memory
The translational speed of virtual push button.
When the operating system of screen equipment 201 is class UNIX type, opens system call command and be specifically as follows Open
System call command;And input/output control system call instruction is specifically as follows IOCTL system call command.
Touch apparatus 202, specifically for capturing touching down event, slip event and/or lifting event on it.And, touch
Touch equipment 202, specifically for by infrared communication mode, bluetooth communication mode, WiFi communication mode or 2.4G wireless telecommunications side
Formula, waits multiple communication modes to send this touch operation event to screen equipment 201.
Touch apparatus 202 preferably sends touch operation event type and the seat of touch operation event to screen equipment 201
Mark.Specifically: touch apparatus 202 can send to screen equipment 201: touch operation event type, touch operation event trigger
Point coordinates (m0,n0) and other do not change point coordinates (m1,n1)~(mi,ni)。
Preferably, screen equipment 201, are further used for nullifying virtual touch equipment 2011.Now, screen equipment 201, use
In by close system call command discharge the internal memory shared by this virtual touch equipment 2011.
In one embodiment, touch apparatus 202, for sending the type of touch operation event to screen equipment 201
And the coordinate of touch operation event;Virtual touch equipment 2011, touches behaviour for determining based on the coordinate of touch operation event
The movement tendency made, and based on the movement tendency of the type of this touch operation event and touch operation, determine screen equipment 201
Touch operation event.
Touch apparatus 202 can be multiple, such as at least two.Now, screen equipment 201, are used for setting up at least two
Virtual touch equipment 2011, and each virtual touch equipment 2011 pass corresponding with each touch apparatus 202 is set further
System.
In sum, capture the touch operation event on touch apparatus, and send this touch operation event to screen equipment;
Then screen equipment receives this touch operation event, and is turned this touch operation event by the virtual touch equipment on screen equipment
Turn to the touch operation event of screen equipment;Responded for the touch operation event after this conversion by screen equipment again.By
This is visible, after application embodiment of the present invention, utilizes the virtual touch equipment fictionalizing, the touch behaviour on conversion touch apparatus
Make event, screen equipment can be allowed to respond for the touch operation event after conversion, just as virtual touch equipment is truly deposited
Equally, thus allow non-tactile equipment be capable of the virtual touch effect of similar touch-screen, therefore improve operating efficiency.
And, embodiment of the present invention is without changing to non-tactile equipment, it is possible to allow non-tactile equipment realize class
Like the virtual touch effect of touch-screen, therefore embodiment of the present invention also reduces cost overhead.
The above, only presently preferred embodiments of the present invention, it is not intended to limit protection scope of the present invention.All
Within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included in the protection of the present invention
Within the scope of.