Summary of the invention
The present invention provides a kind of virtual reality exchange method and device, wears in order to solve user present in prior art
When VR equipment interacts with the non-VR application program in VR equipment, accuracy rate ratio is relatively low, and operate very inconvenient skill
Art problem.
On the one hand, the embodiment of the present invention provides a kind of virtual reality exchange method, including:
When the touch event of touch screen being detected, however, it is determined that current application program is non-virtual reality VR application program,
Then determining the type of described touch event, described touch screen is for receiving the touch instruction of user's input;
If it is determined that the type of described touch event is for pressing event first, it is determined that the object that head control cursor points to and right
The object that described head control cursor points to carries out respective handling, and described head control cursor position within display screen is fixed.
Alternatively, the object that described head control cursor points to is control button;
The described object pointing to described head control cursor carries out respective handling, including:
According to predefined described control button corresponding press event handling mode first, determine that first predefined processes
Event;
Predefine process event according to described first to process.
Alternatively, the object that described head control cursor points to is virtual screen, and described virtual screen is positioned at described display screen
Among, it is used for showing described current application program;
The described object pointing to described head control cursor carries out respective handling, including:
Interface according to described head control light target position coordinates and described virtual screen towards, in described touch event
Touch coordinate is modified first, is revised touch coordinate first, and described touch coordinate of revising first is described to press first
The coordinate of the described virtual screen that event is corresponding;
Update described touch event according to described touch coordinate of revising first, obtain the touch event updated, and by inputting
The touch event of described renewal is processed by event manager module.
Alternatively, after the described type determining described touch event, also include:
If it is determined that the type of described touch event is non-to press event first, it is determined that occur described non-to press event first
The object that during corresponding event of pressing first, described head control cursor points to, and the object pointing to described head control cursor carries out accordingly
Process.
Alternatively, occur described non-when pressing event of pressing first corresponding to event first described head control cursor point to right
As for control button;
The described object pointing to described head control cursor carries out respective handling, including:
Press event handling mode first according to corresponding non-of predefined described control button, determine the second predefined place
Director's part;
Predefine process event according to described second to process.
Alternatively, occur described non-when pressing event of pressing first corresponding to event first described head control cursor point to right
As for virtual screen;
The described object pointing to described head control cursor carries out respective handling, including:
Touching first when pressing event first according to the described non-non-touch coordinate first pressed first in event and generation
Touch coordinate, determine difference value;
According to described difference value to occurring the touch coordinate of correction first during event to be first modified, obtain non-repairing first
Positive touch coordinate, described non-touch coordinate of revising first is the described non-seat pressing described virtual screen corresponding to event first
Mark;
According to described non-first revise touch coordinate update described touch event, the touch event after being updated, and by
The touch event of described renewal is processed by incoming event management module.
Alternatively, described according to the described non-non-touch coordinate first pressed first in event and occur press event first
Time touch coordinate first, determine difference value, including:
If the interface of described virtual screen towards with described touch screen towards identical, it is determined that described non-touch seat first
The difference of mark and the touch coordinate first occurred when pressing event first, and after described difference is adjusted by preset ratio,
As described difference value;
If the interface of described virtual screen towards from described touch screen towards different, it is determined that described non-touch seat first
The difference of mark and the touch coordinate first occurred when pressing event first, and by described difference according to the interface of described virtual screen
Towards with described touch screen towards, after described difference being rotated and being adjusted by described preset ratio, as described
Difference value.
On the other hand, the embodiment of the present invention provides a kind of virtual reality interactive device, including:
Touch event type determining units, for when detecting the touch event of touch screen, however, it is determined that current application journey
Sequence is non-virtual reality VR application program, it is determined that the type of described touch event, and described touch screen is used for receiving user's input
Touch instruction;
Processing unit, for if it is determined that the type of described touch event is for pressing event first, it is determined that head control cursor refers to
To object, and to described head control cursor point to object carry out respective handling, described head control cursor position within display screen
Put fixing.
Alternatively, the object that described head control cursor points to is control button;
Described processing unit, specifically for:
According to predefined described control button corresponding press event handling mode first, determine that first predefined processes
Event;
Predefine process event according to described first to process.
Alternatively, the object that described head control cursor points to is virtual screen, and described virtual screen is positioned at described display screen
Among, it is used for showing described current application program;
Described processing unit, specifically for:
Interface according to described head control light target position coordinates and described virtual screen towards, in described touch event
Touch coordinate is modified first, is revised touch coordinate first, and described touch coordinate of revising first is described to press first
The coordinate of the described virtual screen that event is corresponding;
Update described touch event according to described touch coordinate of revising first, obtain the touch event updated, and will be by defeated
The touch event of described renewal is processed by incoming event management module.
Alternatively, described processing unit, it is additionally operable to:
If it is determined that the type of described touch event is non-to press event first, it is determined that occur described non-to press event first
The object that during corresponding event of pressing first, described head control cursor points to, and the object pointing to described head control cursor carries out accordingly
Process.
Alternatively, occur described non-when pressing event of pressing first corresponding to event first described head control cursor point to right
As for control button;
Described processing unit, specifically for:
Press event handling mode first according to corresponding non-of predefined described control button, determine the second predefined place
Director's part;
Predefine process event according to described second to process.
Alternatively, occur described non-when pressing event of pressing first corresponding to event first described head control cursor point to right
As for virtual screen;
Described processing unit, specifically for:
Touching first when pressing event first according to the described non-non-touch coordinate first pressed first in event and generation
Touch coordinate, determine difference value;
According to described difference value to occurring the touch coordinate of correction first during event to be first modified, obtain non-repairing first
Positive touch coordinate, described non-touch coordinate of revising first is the described non-seat pressing described virtual screen corresponding to event first
Mark;
According to described non-first revise touch coordinate update described touch event, the touch event after being updated, and by
The touch event of described renewal is processed by incoming event management module.
Alternatively, described processing unit, specifically for:
If the interface of described virtual screen towards with described touch screen towards identical, it is determined that described non-touch seat first
The difference of mark and the touch coordinate first occurred when pressing event first, and after described difference is adjusted by preset ratio,
As described difference value;
If the interface of described virtual screen towards from described touch screen towards different, it is determined that described non-touch seat first
The difference of mark and the touch coordinate first occurred when pressing event first, and by described difference according to the interface of described virtual screen
Towards with described touch screen towards, after described difference being rotated and being adjusted by described preset ratio, as described
Difference value.
The embodiment of the present invention, when detecting the touch event of touch screen, however, it is determined that current application program is that non-virtual is existing
Real VR application program, it is determined that the type of described touch event, described touch screen is for receiving the touch instruction of user's input;If
Determine that the type of described touch event is for pressing event first, it is determined that the object that head control cursor points to, and to described head control light
The object that mark points to carries out respective handling, and described head control cursor position within display screen is fixed.The embodiment of the present invention, by with
Head movement is passed through at family, changes the display position of the non-VR application program of display in display screen, such that it is able to change head control light
The object that mark points to, then by user by generating touch event after touching on the touchscreen, this touch event is for enemy's control
Object pointed by cursor carries out respective handling, the method achieves and thinks to be processed by the sensing of head movement discount control cursor
Object, is then controlled accordingly by touch screen, and user can accurately determine the object carrying out operating, such that it is able to greatly
The big success rate improving operation so that user operation is got up convenient.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing the present invention made into
One step ground describes in detail, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole enforcement
Example.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
All other embodiments, broadly fall into the scope of protection of the invention.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
As in figure 2 it is shown, a kind of virtual reality exchange method that the embodiment of the present invention provides, including:
Step 201, when the touch event of touch screen being detected, however, it is determined that current application program be non-virtual reality VR should
By program, it is determined that the type of described touch event, described touch screen is for receiving the touch instruction of user's input;
Step 202 is if it is determined that the type of described touch event is for pressing event first, it is determined that it is right that head control cursor points to
As, and the object of described head control cursor sensing is carried out respective handling, described head control cursor position within display screen is fixed.
The virtual screen provided for the embodiment of the present invention such as Fig. 3 and head control cursor display schematic diagram, wherein, user is by wearing
Wearing VR equipment, it can be seen that display screen (in Fig. 3 shown in latticed background), display screen is used for showing VR application program,
There is virtual screen on display screen, be used for showing that non-VR application program is (such as wechat application program, Alipay application program, clock
Application program, suspended window application program, pop-up application program etc.), in Fig. 3 example, in virtual screen, the clock of display should
By program, the particular content wherein shown is: 08:18AM.
When there being non-VR application program to show at virtual screen on the display screen at VR equipment, also have control button and go out
Existing, as it is shown on figure 3, control button has WIFI signal to point out control, VR equipment capacity prompt control, virtual screen zoom in control,
Virtual screen reduces control, virtual screen anticlockwise control, virtual screen right rotation control etc., wherein, and some control buttons
Can be mutual, such as the virtual screen zoom in control in Fig. 3, virtual screen reduces control, virtual screen anticlockwise control, virtual screen
Right rotation control;Some control buttons are served only for viewing, can not be mutual, as the WIFI signal in Fig. 3 points out control, VR equipment electricity
Amount prompting control.
Additionally, also show head control cursor at display screen, described head control cursor position within display screen is fixed.Example
As a example by Fig. 3, head control cursor shows the centre position at display screen, when user's rotation head, can trigger VR equipment
Display picture redraw system, such as, user rotates over head to the left, then the picture after repainting as shown in Figure 4, wherein
Virtual screen and head control cursor that Fig. 4 provides for the embodiment of the present invention show schematic diagram, when user rotates over head to the left,
Non-VR application program on whole VR application program and virtual screen and control button all can redraw system, but now, head control
Cursor invariant position within display screen, is still positioned at display screen centre position, by the way, can realize working as user
During by head rotation, head control cursor can be made to point to different objects and (such as, to point to VR application program, point to virtual screen
Certain position, point to control button), the embodiment of the present invention is based on this design, it is achieved by user by head rotation,
Discount control cursor points to certain object, and then user is by carrying out touch operation on the touch screen shown in Fig. 1, carrys out correct control light
The position that mark points to processes accordingly, it is achieved thereby that with the high efficiency interactive of virtual screen.
It is described in detail below in conjunction with Fig. 2.
In above-mentioned steps 201, user passes through head rotation, and head control cursor can be made to point to certain position (as pointed to void
Intend screen, point to control button, or point to VR application program), then user carries out corresponding touch operation by touch screen.
When the touch event of VR equipment Inspection to touch screen, first determine whether that current application program is non-VR application program,
Wherein, described touch screen is for receiving the touch instruction of user's input, such as the touch screen on VR equipment side in Fig. 1.
Specifically, whether can comprise certain identification information according to current application program and judge that current application program is VR
Application program is also non-VR application program.For example, it is possible to (such as the gralloc of Android) in page allocation manager module, dividing
One labelling of the page data structure steganography allotted is applied for distinguishing non-VR application and VR.Concrete judgment basis is: if
Certain application employs this EGL of egl_GVR_FrontBuffer extension, then this application is VR application, without using this
Individual EGL extends, then this application is non-VR application, thus convenient judge current application program be VR application program be also that non-VR applies
Program.
It addition, current application program refers to the application program of the superiors in VR equipment.VR equipment can obtain the superiors
Application program, and using the application program of the superiors as current application program.
If it is determined that current application program is non-virtual reality VR application program, it is determined that the type of described touch event, its
In, the type of touch event is divided into touch event and non-touch event first first.
Type point situation below for touch event is described separately.
Situation one, the type of touch event are touch event first
In above-mentioned steps 202, however, it is determined that the type of described touch event is for pressing event first, it is determined that head control cursor
The object pointed to, and the object pointing to described head control cursor carries out respective handling, described head control cursor is within display screen
Position is fixed.
The object pointed to according to head control cursor, divide three kinds of situations to be described separately the most again,
One, the object that described head control cursor points to is control button.
The described object pointing to described head control cursor carries out respective handling, including: press according to predefined described control
What button was corresponding presses event handling mode first, determines that first predefines process event;According to the described first predefined place director
Part processes.
With reference to Fig. 2, carry out the most on the touchscreen first button time (what is called button first, refers in this key-press event
Before, touch screen is in the state of not being pressed, and does not i.e. have finger to rest on above touch screen), now, head control cursor points to control
Button, such as head control cursor point to virtual screen large buttons, then corresponding according to predefined virtual screen large buttons
Press time-triggered protocol mode first, carry out respective handling, the most predefined corresponding the pressing first of virtual screen large buttons
Time-triggered protocol mode is by screen magnifying 10% etc..
Two, the object that described head control cursor points to is virtual screen, and described virtual screen is positioned among described display screen,
For showing described current application program
The described object pointing to described head control cursor carries out respective handling, including: according to described head control light target position
The interface of coordinate and described virtual screen towards, the touch coordinate first in described touch event is modified, obtains first
Revise touch coordinate, described revise first touch coordinate be described in press the coordinate of described virtual screen corresponding to event first;
Update described touch event according to described touch coordinate of revising first, obtain the touch event updated, and managed by incoming event
The touch event of described renewal is processed by module.
Specifically, first according to head control cursor position coordinate (wherein head control light target position coordinates is changeless, when
During user's head rotation, owing to VR applies, virtual screen and control button all can be redrawn, and therefore the sensing of head control light rotating savings is right
As if can change), and according to the interface of virtual screen towards (referring to transverse screen mode or vertical screen mode, Qi Zhongxu
Intending the interface of screen towards changing, but touch screen is owing to being fixing, therefore the interface of touch screen is towards being not
Becoming, this can cause the interface of virtual screen towards identical towards possibility with the interface of touch screen, it is also possible to differs), to touching
The touch coordinate first touched in event is modified, and is revised touch coordinate first, and wherein, the touch first of touch event is sat
Mark refers to the coordinate of the position that user touches on the touchscreen, it is now desired to is modified it, is revised touch first
Coordinate, wherein, after correction touch coordinate refers to touch coordinate is modified first first, the seat on virtual screen obtained
Mark.
In embodiments of the present invention, specifically correcting mode is: if the interface of virtual screen is towards the boundary with touch screen
Facing to identical, then the touch coordinate first in touch event is revised touch coordinate first as described;If virtual screen
Interface towards the interface with touch screen towards differing, then by touch event after touch coordinate rotates first (one
As be 90-degree rotation or 270 degree) revise touch coordinate first as described.
Three, the object that described head control cursor points to is VR application program
If touch event is touch event first, and the object that head control cursor points to is VR application program, does not the most do any
Process, i.e. in the embodiment of the present invention, touch screen is only intended to interact with non-VR application program or head control cursor, and not with
VR application program is mutual.
Situation two, the type of touch event are non-touch event first
Alternatively, after the described type determining described touch event, however, it is determined that the type of described touch event is non-head
Secondary press event, it is determined that occur described non-when pressing event of pressing first corresponding to event first described head control cursor point to
Object, and the object of described head control cursor sensing is carried out respective handling.
According to occur described non-press event of pressing first corresponding to event first time the object that points to of described head control cursor,
Three kinds of situations are divided to be described separately the most again.
One, the described non-object that described head control cursor points to when pressing event of pressing first corresponding to event first is occurred to be
Control button
The described object pointing to described head control cursor carries out respective handling, including: press according to predefined described control
Corresponding non-of button presses event handling mode first, determines that second predefines process event;According to the described second predefined process
Event processes.
For example, when user presses touch screen first, head control cursor point to object be control be volume zoom in control
Button, then user's finger does not lift, and slides to certain direction, slip event can be detected, i.e. during sliding
For non-event of pressing first, then can predefine process event (example according to this volume zoom in control button predefined second
As for volume magnification event, or volume down mishap).
Two, the described non-object that described head control cursor points to when pressing event of pressing first corresponding to event first is occurred to be
Virtual screen
The described object pointing to described head control cursor carries out respective handling, including:
Step A, according to the described non-non-touch coordinate first pressed first in event and occur when pressing event first
Touch coordinate first, determines difference value.
In this step, determine the non-non-touch coordinate first pressed first in event, such as currently had one first
Finger is by touch screen, and right later second finger position near the first finger starts to slide in and out, then can obtain
Get second finger at the non-non-touch coordinate first pressed first in event, and get generation and press event first (i.e.
First finger press event) time storage touch coordinate first, such that it is able to calculate difference value therebetween.
Alternatively, described according to the described non-non-touch coordinate first pressed first in event and occur press event first
Time touch coordinate first, determine difference value, including: if the interface of described virtual screen towards with described touch screen towards phase
With the difference of, it is determined that described non-touch coordinate first with the touch coordinate first when there is to press first event, and by described
After difference is adjusted by preset ratio, as described difference value;If the interface of described virtual screen towards with described touch screen
Towards difference, it is determined that the difference of described non-touch coordinate first and the touch coordinate first occurred when pressing event first,
And by described difference according to the interface of described virtual screen towards with described touch screen towards, described difference is rotated also
After being adjusted by described preset ratio, as described difference value.
Such as, coordinate when user presses touch screen first is (1,2), and user keeps pressing the finger of touch screen first not
Lift, then slides on screen with another one finger, then non-can press event first, if user is tactile detecting
Touch that screen is upper to slide, then a series of non-touch event first can be detected, thus obtain the most non-pressing event pair first
The coordinate answered, if being respectively as follows: (1,3), (Isosorbide-5-Nitrae), (1,5).Then can obtain a series of difference: (0,1), (0,2), (0,
3)。
Then, according to the interface of virtual screen towards with described touch screen towards relation, it is determined whether need difference
Different value rotates, if the interface of virtual screen towards with described touch screen towards identical, then need not rotate;If virtual screen
The interface of curtain towards from described touch screen towards different, then need to rotate, such as, can be 90-degree rotation, or 270 degree
Etc..
Then, after above-mentioned difference being adjusted according to default ratio, obtain difference value, such as, difference (0,2) is pressed
Scaling according to 1:2, then difference value is (0,4).
Step B, according to described difference value to occurring the touch coordinate of correction first during event to be first modified, obtain non-
Revising touch coordinate first, described non-touch coordinate of revising first is described non-to press the described virtual screen that event is corresponding first
Coordinate.
In this step, according to described difference value to occurring the touch coordinate of correction first during event to be first modified, i.e.
After obtaining difference value according to the difference between the coordinate on touch screen, according to this difference value to revising touch coordinate first, obtain
Non-revise touch coordinate first.
For example, the touch coordinate of correction first on virtual screen is (5.5,6.5), the difference value obtained for (0,
4), then the non-touch coordinate of revising first obtained, for (5.5,10.5), i.e. can realize turning corresponding operating on the touchscreen
The corresponding operating being changed on virtual screen.
Certainly, in actual applications, respective handling after the most all coordinate being normalized, is carried out again, in terms of improving
Calculating efficiency, the coordinate used in above-mentioned example is exemplary illustration.
Step C, according to described non-first revise touch coordinate update described touch event, the touch thing after being updated
Part, and by incoming event management module, the touch event of described renewal is processed.
Wherein, incoming event management module is the modular unit of system-level management incoming event, belongs to VR in prior art
The existing module of equipment, for processing according to predefined mode incoming event.
Three, the described non-object that described head control cursor points to when pressing event of pressing first corresponding to event first is occurred to be
Empty
In this case, when user presses touch screen first, it is that sky refers to head control cursor that head control cursor points to object
Both it had been not pointed towards virtual screen, and had also been not pointed towards head control cursor, and has been directed to other position, such as pointed to background image,
Then user does not lifts finger, there occurs again and non-press event first (such as user uses above-mentioned finger to slide, or makes
Again touch screen is operated with other fingers), the most now can be using this non-event of pressing first as pressing event first
Process, will the event of pressing first that occurs when being sky of the object that points to of described head control cursor as invalid event, thus will be with
Rear generation non-is pressed event first and processes as pressing event first, and concrete processing mode can refer to the three of said circumstances one
Plant situation to process, do not repeat them here.
The embodiment of the present invention, when detecting the touch event of touch screen, however, it is determined that current application program is that non-virtual is existing
Real VR application program, it is determined that the type of described touch event, described touch screen is for receiving the touch instruction of user's input;If
Determine that the type of described touch event is for pressing event first, it is determined that the object that head control cursor points to, and to described head control light
The object that mark points to carries out respective handling, and described head control cursor position within display screen is fixed.The embodiment of the present invention, by with
Head movement is passed through at family, changes the display position of the non-VR application program of display in display screen, such that it is able to change head control light
The object that mark points to, then by user by generating touch event after touching on the touchscreen, this touch event is for enemy's control
Object pointed by cursor carries out respective handling, the method achieves and thinks to be processed by the sensing of head movement discount control cursor
Object, is then controlled accordingly by touch screen, and user can accurately determine the object carrying out operating, such that it is able to greatly
The big success rate improving operation so that user operation is got up convenient.
A kind of virtual reality exchange method provided the embodiment of the present invention below is described in detail, as it is shown in figure 5, bag
Include:
Step 501, the touch event of touch screen detected.
Step 502, judging whether current application program is non-VR application program, if then forwarding step 503 to, otherwise forwarding to
Step 511.
Whether step 503, the type judging described touch event are to press event first, if then forwarding step 504 to, if
No, then forward step 512 to.
Whether the object that step 504, head control cursor point to is control button, if then forwarding step 505 to, otherwise forwards step to
Rapid 506.
Step 505, enter self-defining control logical process.
That is, according to predefined described control button corresponding press event handling mode first, determine first predefine
Process event;Predefine process event according to described first to process.
Whether the object that step 506, head control cursor point to is virtual screen, if then forwarding step 507 to, otherwise terminates stream
Journey.
Step 507, to enter non-VR application program mutual.
Press event first, such as, have single finger to press event.
Step 508, back up touch coordinate first.
Step 509, point to according to head control cursor position coordinates and current interface towards, calculate and back up and revise touch first
Coordinate.
Specifically, according to the interface of described head control light target position coordinates and described virtual screen towards, to described touch
Touch coordinate first in event is modified, and is revised touch coordinate first, and described touch coordinate of revising first is described
The coordinate of the described virtual screen that event of pressing first is corresponding.
Step 510, the coordinate in touch event is updated, obtains the touch event updated.
Specifically, update described touch event according to described touch coordinate of revising first, obtain the touch event updated, and
By incoming event management module, the touch event of described renewal is processed.
The touch event of step 511, the incoming event management module renewal to receiving carries out respective handling.
Specifically, incoming event management module is processed as prior art to touch event, does not repeats at this.
The object that in event, head control cursor points to is pressed in step 512, judgement first, (has the most both been not pointed towards virtual screen if empty
Curtain, is also not pointed towards control button), then forward step 504 to, if virtual screen, then forward step 514 to, if control button,
Then forward step 513 to.
Step 513, go successively to self-defining control logical process.
Specifically, press event handling mode first according to corresponding non-of predefined described control button, determine second
Predefined process event;Predefine process event according to described second to process.
Step 514, to continue non-VR application program mutual.
The most non-event of pressing first has and refers to press event more, singly refers to slip event etc..
Step 515, obtain non-touch coordinate first.
Step 516, the non-touch coordinate first comparing acquisition and touch coordinate first, obtain difference.
Step 517, to difference according to current interface towards rotation, and obtain difference value after being scaled.
Step 518, difference value with revise touch coordinate first and be added, obtain non-revising touch coordinate first.
The embodiment of the present invention, when detecting the touch event of touch screen, however, it is determined that current application program is that non-virtual is existing
Real VR application program, it is determined that the type of described touch event, described touch screen is for receiving the touch instruction of user's input;If
Determine that the type of described touch event is for pressing event first, it is determined that the object that head control cursor points to, and to described head control light
The object that mark points to carries out respective handling, and described head control cursor position within display screen is fixed.The embodiment of the present invention, by with
Head movement is passed through at family, changes the display position of the non-VR application program of display in display screen, such that it is able to change head control light
The object that mark points to, then by user by generating touch event after touching on the touchscreen, this touch event is for enemy's control
Object pointed by cursor carries out respective handling, the method achieves and thinks to be processed by the sensing of head movement discount control cursor
Object, is then controlled accordingly by touch screen, and user can accurately determine the object carrying out operating, such that it is able to greatly
The big success rate improving operation so that user operation is got up convenient.
Based on identical technology design, the embodiment of the present invention also provides for a kind of virtual reality interactive device, as shown in Figure 6,
Including:
Touch event type determining units 601, for when detecting the touch event of touch screen, however, it is determined that current application
Program is non-virtual reality VR application program, it is determined that the type of described touch event, it is defeated that described touch screen is used for receiving user
The touch instruction entered;
Processing unit 602, for if it is determined that the type of described touch event is for pressing event first, it is determined that head control cursor
The object pointed to, and the object pointing to described head control cursor carries out respective handling, described head control cursor is within display screen
Position is fixed.
Alternatively, the object that described head control cursor points to is control button;
Described processing unit 602, specifically for:
According to predefined described control button corresponding press event handling mode first, determine that first predefined processes
Event;
Predefine process event according to described first to process.
Alternatively, the object that described head control cursor points to is virtual screen, and described virtual screen is positioned at described display screen
Among, it is used for showing described current application program;
Described processing unit 602, specifically for:
Interface according to described head control light target position coordinates and described virtual screen towards, in described touch event
Touch coordinate is modified first, is revised touch coordinate first, and described touch coordinate of revising first is described to press first
The coordinate of the described virtual screen that event is corresponding;
Update described touch event according to described touch coordinate of revising first, obtain the touch event updated, and by inputting
The touch event of described renewal is processed by event manager module.
Alternatively, described processing unit 602, it is additionally operable to:
If it is determined that the type of described touch event is non-to press event first, it is determined that occur described non-to press event first
The object that during corresponding event of pressing first, described head control cursor points to, and the object pointing to described head control cursor carries out accordingly
Process.
Alternatively, occur described non-when pressing event of pressing first corresponding to event first described head control cursor point to right
As for control button;
Described processing unit 602, specifically for:
Press event handling mode first according to corresponding non-of predefined described control button, determine the second predefined place
Director's part;
Predefine process event according to described second to process.
Alternatively, occur described non-when pressing event of pressing first corresponding to event first described head control cursor point to right
As for virtual screen;
Described processing unit 602, specifically for:
Touching first when pressing event first according to the described non-non-touch coordinate first pressed first in event and generation
Touch coordinate, determine difference value;
According to described difference value to occurring the touch coordinate of correction first during event to be first modified, obtain non-repairing first
Positive touch coordinate, described non-touch coordinate of revising first is the described non-seat pressing described virtual screen corresponding to event first
Mark;
According to described non-first revise touch coordinate update described touch event, the touch event after being updated, and by
The touch event of described renewal is processed by incoming event management module.
Alternatively, described processing unit 602, specifically for:
If the interface of described virtual screen towards with described touch screen towards identical, it is determined that described non-touch seat first
The difference of mark and the touch coordinate first occurred when pressing event first, and after described difference is adjusted by preset ratio,
As described difference value;
If the interface of described virtual screen towards from described touch screen towards different, it is determined that described non-touch seat first
The difference of mark and the touch coordinate first occurred when pressing event first, and by described difference according to the interface of described virtual screen
Towards with described touch screen towards, after described difference being rotated and being adjusted by described preset ratio, as described
Difference value.
The embodiment of the present invention, when detecting the touch event of touch screen, however, it is determined that current application program is that non-virtual is existing
Real VR application program, it is determined that the type of described touch event, described touch screen is for receiving the touch instruction of user's input;If
Determine that the type of described touch event is for pressing event first, it is determined that the object that head control cursor points to, and to described head control light
The object that mark points to carries out respective handling, and described head control cursor position within display screen is fixed.The embodiment of the present invention, by with
Head movement is passed through at family, changes the display position of the non-VR application program of display in display screen, such that it is able to change head control light
The object that mark points to, then by user by generating touch event after touching on the touchscreen, this touch event is for enemy's control
Object pointed by cursor carries out respective handling, the method achieves and thinks to be processed by the sensing of head movement discount control cursor
Object, is then controlled accordingly by touch screen, and user can accurately determine the object carrying out operating, such that it is able to greatly
The big success rate improving operation so that user operation is got up convenient.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention
Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to comprise these change and modification.