CN104922902B - A kind of joystick, electronic equipment, information processing method and device - Google Patents
A kind of joystick, electronic equipment, information processing method and device Download PDFInfo
- Publication number
- CN104922902B CN104922902B CN201410105932.2A CN201410105932A CN104922902B CN 104922902 B CN104922902 B CN 104922902B CN 201410105932 A CN201410105932 A CN 201410105932A CN 104922902 B CN104922902 B CN 104922902B
- Authority
- CN
- China
- Prior art keywords
- magnetic field
- field intensity
- connecting rod
- joystick
- electronic equipment
- 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.)
- Active
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 18
- 238000003672 processing method Methods 0.000 title claims abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 26
- 238000001514 detection method Methods 0.000 claims abstract description 17
- NJPPVKZQTLUDBO-UHFFFAOYSA-N novaluron Chemical compound C1=C(Cl)C(OC(F)(F)C(OC(F)(F)F)F)=CC=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F NJPPVKZQTLUDBO-UHFFFAOYSA-N 0.000 claims description 24
- 238000010521 absorption reaction Methods 0.000 claims description 6
- 230000005389 magnetism Effects 0.000 claims description 4
- 229920003023 plastic Polymers 0.000 claims description 4
- 238000004519 manufacturing process Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 16
- 230000007613 environmental effect Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 239000011800 void material Substances 0.000 description 2
- 238000005299 abrasion Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007654 immersion Methods 0.000 description 1
- 239000004033 plastic Substances 0.000 description 1
- 230000000638 stimulation Effects 0.000 description 1
Landscapes
- Position Input By Displaying (AREA)
Abstract
The invention discloses a kind of information processing method, applying electronic equipment, the electronic equipment includes at least:Geomagnetic sensor and display unit, and the electronic equipment is equipped with control-rod class game application;When running the control-rod class game application, the virtual game bar generated is shown on the display unit;The method includes:The first operation that detection user sends out;First operation is responded, pre-stored first magnetic field intensity is obtained;Detect the second operation that user sends out;Second operation is responded, the second magnetic field intensity is obtained by the geomagnetic sensor;The direction residing for the connecting rod is determined according to first magnetic field intensity and second magnetic field intensity.The present invention also discloses a kind of joystick, electronic equipment and information processing units.Technical solution using the present invention can bring the control-rod of the sense of reality, to promote user experience to user.
Description
Technical field
The present invention relates to mechanotronics more particularly to a kind of joystick, electronic equipment, information processing method and
Device.
Background technology
More and more functions may be implemented in electronic equipment, and game function is a critical function for attracting user group.
Existing control-rod class game lacks the sense of reality, and being primarily due to the virtual controlling bar interacted with user cannot be as physics reality
The control-rod of body can bring the stimulation in sense of touch to user, and therefore, there is an urgent need for a kind of controls that the sense of reality can be brought to user
Bar, to promote user experience.
Invention content
In view of this, the embodiment of the present invention for solve problems of the prior art provide a kind of joystick,
Electronic equipment, information processing method and device;The control-rod that the sense of reality can be brought to user, to promote user experience.
What the technical solution of the embodiment of the present invention was realized in:
A kind of joystick, applying electronic equipment, the electronic equipment include at least:Geomagnetic sensor and display are single
Member, and the electronic equipment is equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
The joystick includes:Connecting rod, for being placed on the virtual game bar shown by the display unit
Pedestal;
The connecting rod has magnetism, and magnetic field produced by the magnetic pole of north and south has symmetry;
The pedestal is flexibly connected with the first end of the connecting rod, is shaken so that the connecting rod can be realized on the base
It is dynamic, to which the geomagnetic sensor can incude since joystick shakes caused changes of magnetic field.
Preferably, the first end of the pedestal and the connecting rod is detachably connected.
Preferably, the extending direction in the connecting rod along connecting rod is provided with permanent magnet, and the south poles of the permanent magnet are set
Set the first end in the connecting rod.
Preferably, the joystick further includes touching head, and the second end for touching head and the connecting rod is detachable
Ground connects.
Preferably, the touch head is in sphere, is made using rubber.
Preferably, the pedestal is absorption type pedestal, and the absorption type pedestal is formed using transparent plastic production.
Preferably, the connecting rod is stylus.
A kind of electronic equipment, the electronic equipment include above-mentioned joystick.
A kind of information processing method, applied to being associated in the electronic equipment of above-mentioned joystick, the electronic equipment
It includes at least:Geomagnetic sensor and display unit, and the electronic equipment is equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
The method includes:
The first operation that detection user sends out, first operation by the joystick for being positioned over the display
On unit;
First operation is responded, pre-stored first magnetic field intensity is obtained;
Detect the second operation that user sends out, second operation is for making the joystick be swung;
Second operation is responded, the second magnetic field intensity is obtained by the geomagnetic sensor;
The direction residing for the connecting rod is determined according to first magnetic field intensity and second magnetic field intensity.
Preferably, the mode of first magnetic field intensity is determined, including:
Judge that the distance of the joystick placement whether outside the threshold range of the geomagnetic sensor, obtains first
Judging result;
When first judging result shows threshold value of the distance in the geomagnetic sensor of the joystick placement
When outside range, incuded magnetic field intensity is repeatedly measured by the geomagnetic sensor and takes arithmetic mean, it is average to obtain first
First average field strength is determined as first magnetic field intensity by magnetic field intensity.
Preferably, the mode of first magnetic field intensity is determined, including:
Judge whether the position that the joystick is placed is located on the virtual controlling bar shown by the display unit,
Obtain the second judging result;
When second judging result shows that the joystick is located at the virtual controlling shown by the display unit
When on bar, incuded magnetic field intensity is repeatedly measured by the geomagnetic sensor and takes arithmetic mean, obtains the second average magnetic
Second average field strength is determined as the first magnetic field intensity by field intensity.
Preferably, described that side residing for the connecting rod is determined according to first magnetic field intensity and second magnetic field intensity
To, including:
It is poor that second magnetic field intensity and first magnetic field intensity are made, and obtains third magnetic field intensity;
Obtain initial magnetic field intensity, and according to the third magnetic field intensity and the initial magnetic field intensity determine direction to
Amount;
The direction residing for the connecting rod is determined according to the angle between the direction vector and the direction vector of determination.
Preferably, the acquisition initial magnetic field intensity, including:
It is strong that the 4th magnetic field when connecting rod is in upper and lower, left and right four direction is obtained respectively by the geomagnetic sensor
Degree, magnetic field intensity when the 4th magnetic field intensity is up and down, left and right is offset to utmostly;
The 4th magnetic field intensity and first magnetic field connecting rod being in when the four direction rotation of upper and lower, left and right are strong
It is poor that degree is made, and obtains the 5th magnetic field intensity of upper and lower, left and right four direction;
Any two in the 5th magnetic field intensity when being in upper and lower both direction according to the connecting rod in X, Y, Z component
Determine first straight line, in the 5th magnetic field intensity when being in left and right both direction according to the connecting rod in upper and lower both direction
Corresponding two components determine second straight line;
The initial magnetic field intensity is determined according to the intersection point of the first straight line and the second straight line.
Preferably, the direction vector of the determination includes direction vector upward, downward, to the left and to the right, the determination
Direction vector determine in the following manner:
The 5th magnetic field intensity when being in upward according to the initial magnetic field intensity and the connecting rod, determines upwardly direction
Vector;
The 5th magnetic field intensity when being in downward according to the initial magnetic field intensity and the connecting rod, determines downwardly direction
Vector;
The 5th magnetic field intensity when being in the left according to the initial magnetic field intensity and the connecting rod, determines direction to the left
Vector;
The 5th magnetic field intensity when being in the right according to the initial magnetic field intensity and the connecting rod, determines direction to the right
Vector.
A kind of information processing unit, applied to being associated in the electronic equipment of above-mentioned joystick, the electronic equipment
It includes at least:Geomagnetic sensor and display unit, and the electronic equipment is equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
Described device includes first detection unit, first acquisition unit, second detection unit, second acquisition unit and determination
Unit, wherein:
The first detection unit, for detecting the first operation that user sends out, first operation is for by the trip
Play control-rod is positioned on the display unit;
The first acquisition unit obtains pre-stored first magnetic field intensity for responding first operation;
The second detection unit, the second operation sent out for detecting user, second operation are described for making
Joystick is swung;
The second acquisition unit obtains the second magnetic field for responding second operation by the geomagnetic sensor
Intensity;
The determination unit, for determining the connecting rod institute according to first magnetic field intensity and second magnetic field intensity
The direction at place.
Preferably, the determination unit includes first processing module, the first determining module and the second determining module, wherein:
The first processing module, for second magnetic field intensity and first magnetic field intensity to be made poor, acquisition the
Three magnetic field intensities;
First determining module, for obtaining initial magnetic field intensity, and according to the third magnetic field intensity and it is described just
Beginning magnetic field intensity determines direction vector;
Second determining module, for determining institute according to the angle between the direction vector and the direction vector of determination
State the direction residing for connecting rod.
The embodiment of the present invention is based on a kind of joystick, then provides a kind of information processing method, device and electronics
Equipment.In embodiments of the present invention, the first operation that detection user sends out;First operation is responded, is obtained pre-stored
First magnetic field intensity;Detect the second operation that user sends out;Second operation is responded, is obtained by the geomagnetic sensor
Second magnetic field intensity;The direction residing for the connecting rod is determined according to first magnetic field intensity and second magnetic field intensity;Such as
This, can bring the control-rod of the sense of reality, to promote user experience to user.
Description of the drawings
Fig. 1-1 is the composed structure schematic diagram of one joystick of the embodiment of the present invention;
Fig. 1-2 is the application scenarios schematic diagram of the embodiment of the present invention one;
Fig. 2-1 is the composed structure schematic diagram one of two joystick of the embodiment of the present invention;
Fig. 2-2 is the composed structure schematic diagram two of two joystick of the embodiment of the present invention;
Fig. 3-1 is the implementation process schematic diagram of three information processing method of the embodiment of the present invention;
Fig. 3-2 is the implementation process schematic diagram of step 305 in Fig. 3-1;
Fig. 3-3 is the implementation process schematic diagram for obtaining the initial magnetic field intensity in Fig. 3-2 in step 352;
Fig. 3-4 is the schematic diagram that first straight line and second straight line are determined in the embodiment of the present invention three;
Fig. 4-1 is the composed structure schematic diagram of four information processing unit of the embodiment of the present invention;
Fig. 4-2 is the composed structure schematic diagram of determination unit in Fig. 4-1;
Fig. 4-3 is the composed structure schematic diagram of the first acquisition module in Fig. 4-2.
Specific implementation mode
The technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
Embodiment one
The embodiment of the present invention provides a kind of joystick, applying electronic equipment, and the electronic equipment includes at least:Earth magnetism
Sensor and display unit, and the electronic equipment is equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
Fig. 1-1 is the composed structure schematic diagram of one joystick of the embodiment of the present invention, as Figure 1-1, the game control
Bar 10 processed includes:Connecting rod 11 and pedestal 12, pedestal 12 are used to be placed on the virtual game bar shown by the display unit;
Connecting rod 11 has magnetism, and magnetic field produced by the magnetic pole of north and south has symmetry;
Pedestal 12 is flexibly connected with the first end 13 of connecting rod 11, so that connecting rod 11 can realize shake on pedestal 12, from
And the geomagnetic sensor can incude since joystick shakes caused changes of magnetic field.
Here, the electronic equipment includes but not limited to:Portable notebook, tablet computer, mobile phone, electronic reader
Deng.
In the embodiment of the present invention, pedestal 12 and the first end 13 of connecting rod 11 are removably connected by a ball to realize
It connects.
In the embodiment of the present invention, connecting rod 11 can generate magnetic field, and the north and south poles the SN shape size for generating magnetic field is symmetrical, because
This, the geomagnetic sensor on the electronic equipment can incude the changes of magnetic field on the connecting rod;
Joystick provided in an embodiment of the present invention can be applied in the various game for needing control direction, Fig. 1-2
It is used in this scenario into two the present embodiment one as shown in Figs. 1-2 for the application scenarios schematic diagram of the embodiment of the present invention one
Joystick 10, should with physical arrangement control-rod relative to virtual controlling bar can provide to the user operation needed for
Touch feedback allows the touch feedback that user relies on merely finger to obtain to judge the direction currently controlled, reduces user to regarding
The dependence of feel is fully immersed in game, enhances the feeling of immersion of user.
Preferably, stylus may be used in the connecting rod of this joystick, so that joystick and stylus knot
It is integrated, the second end or first end of connecting rod 11 are for writing, and the first end 13 of connecting rod 11 is used for control direction;So not
Stylus or the application range of joystick can be only expanded, can also be that user brings more rich application experience.
Embodiment two
Fig. 2-1 is the composed structure schematic diagram one of two joystick of the embodiment of the present invention, as shown in Fig. 2-1, the game
Control-rod 10 includes:Connecting rod 11 and pedestal 12, pedestal 12 are used to be placed on the virtual game bar shown by the display unit;
Extending direction in connecting rod 11 along connecting rod is provided with permanent magnet 14, and the south poles of permanent magnet 14 are arranged in connecting rod
First end 13.
Pedestal 12 is flexibly connected with the first end 13 of connecting rod 11, so that connecting rod 11 can realize shake on pedestal 12, from
And the geomagnetic sensor can incude since joystick shakes caused changes of magnetic field.
Preferably, as shown in Fig. 2-2, the joystick provided in the embodiment of the present invention further includes touching head 15, is touched
First 15 is detachably connected with the second end 16 of connecting rod 11.
In general, for the ease of user touch, touch head 15 should use mellow and full angle, touch head can be in sphere,
Spheroid or hemisphere etc..In order to keep good sense of touch and reduce the abrasion to the finger of user, touching head 15 can
To be made using plastics, rubber etc..
In the embodiment of the present invention one and two, pedestal 12 is preferably the pedestal of absorption type, in order to reach preferable transparent effect,
The absorption type pedestal may be used transparent plastic production and form.
Based on the above embodiments one and two, the embodiment of the present invention also provides a kind of electronic equipment, which includes
Joystick described in above-described embodiment one or two.
Embodiment three
The embodiment of the present invention also provides a kind of information processing method, applied to the trip being associated in above-described embodiment one or two
It plays in the electronic equipment of control-rod, which includes at least:Geomagnetic sensor and display unit, and the electronic equipment is pacified
Equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
Fig. 3-1 is the implementation process schematic diagram of three information processing method of the embodiment of the present invention, as shown in figure 3-1, the side
Method includes:
Step 301, the first operation that detection user sends out, first operation is for the joystick to be positioned over
On the display unit;
Step 302, first operation is responded, pre-stored first magnetic field intensity is obtained;
Step 303, the second operation that user sends out is detected, second operation is for making the joystick carry out
It swings;
Step 304, second operation is responded, the second magnetic field intensity is obtained by the geomagnetic sensor;
Step 305, the direction residing for the connecting rod is determined according to first magnetic field intensity and second magnetic field intensity.
In embodiments of the present invention, magnetic field intensity Q may be used by three mutually orthogonal X-components, Y-component, Z component Lai
It indicates, wherein the size on X-component is x, direction isSize in Y-component is y, direction isSize on Z component be z,
Direction isAnd the value of x, y, z can be positive number, or negative, when value is positive number, then it represents that each component with
The positive direction taken is identical, otherwise, it means that each component is opposite with the positive direction taken;Magnetic field intensity Q is according to mathematical expression
Formula can be shown in formula(1):
So, the first magnetic field intensity uses Q1It indicates, thenWherein x1、y1、z1X is indicated respectively
Component, Y-component, the size on Z component;Second magnetic field intensity uses Q2It indicates, thenWherein x2、
y2、z2X-component, Y-component, the size on Z component are indicated respectively.
In the embodiment of the present invention, determine that the mode of first magnetic field intensity includes following two:
Mode one determines that the mode of first magnetic field intensity includes step A1 and step A2, wherein:
Step A1 judges the distance of the joystick placement whether outside the threshold range of the geomagnetic sensor,
Obtain the first judging result;
Step A2, when first judging result shows the distance of the joystick placement in the geomagnetic sensor
Threshold range outside when, incuded magnetic field intensity is repeatedly measured by the geomagnetic sensor and takes arithmetic mean, obtains the
First average field strength is determined as first magnetic field intensity by one average field strength.
Mode two determines that the mode of first magnetic field intensity includes step B1 and step B2, wherein:
Step B1, judges whether the position of the joystick placement is located at the virtual control shown by the display unit
On bar processed, the second judging result is obtained;
Step B2, when second judging result shows that the joystick is located at the void shown by the display unit
When on quasi- control-rod, incuded magnetic field intensity is repeatedly measured by the geomagnetic sensor and takes arithmetic mean, obtains second
Second average field strength is determined as the first magnetic field intensity by average field strength.
It is all used in above-mentioned step A2 and B2 and repeatedly measures the method averaged to obtain the first magnetic field intensity
Q1, it should be noted that Q1 is a vector, and the arithmetic mean in step A2 and step B2 is to be for the size on X-component
X, the size in Y-component is y, the size on Z component is these three scalars of z to calculate;
In step A2, the first average field strength Qt,In each component size xt、yt
And ztDetermination process such as formula(2)Extremely(4)It is shown:
xt=(xt1+xt2+xt3+xt4+xt5)5 (2);
yt=(yt1+yt2+yt3+yt4+yt5)5 (3);
zt=(zt1+zt2+zt3+zt4+zt5)5 (4);
Process described above is to determine the first average field strength Q according to mode onetProcess, according to mode two determine
The process of second average field strength and determining first average field strength QtProcess it is similar, which is not described herein again.
In the embodiment of the present invention, why to obtain the first magnetic field intensity, be because joystick swing when,
The magnetic field intensity that geomagnetic sensor measurement obtains can be influenced by environmental magnetic field, and the embodiment of the present invention can pass through above-mentioned side
Formula one and mode two determine the first magnetic field intensity, and the magnetic field intensity that geomagnetic sensor measurement obtains makees with the first magnetic field intensity
Difference can eliminate the influence of the environmental magnetic field brought to joystick;In this way, magnetic field caused by the joystick determined
Intensity is more accurate.
In the embodiment of the present invention, as shown in figure 3-2, step 305 includes:
Step 351, it is poor second magnetic field intensity and first magnetic field intensity to be made, and obtains third magnetic field intensity;
Here, suppose that third magnetic field intensity Q3It indicates, and expression formula is
Step 352, initial magnetic field intensity is obtained, and is determined according to the third magnetic field intensity and the initial magnetic field intensity
Direction vector;
Step 353, it is determined residing for the connecting rod according to the angle between the direction vector and the direction vector of determination
Direction.
In step 352, described to obtain the initial magnetic field intensity as shown in Fig. 3-3, including step 3521 is to 3524,
Wherein:
Step 3521, it is obtained respectively by the geomagnetic sensor when connecting rod is in upper and lower, left and right four direction
4th magnetic field intensity, magnetic field intensity when the 4th magnetic field intensity is up and down, left and right is offset to utmostly;
Here, the 4th magnetic field intensity is that the joystick is located at virtual controlling shown by the display unit
When on bar, up and down, left and right magnetic field intensity when being offset to utmostly;
Step 3522, the connecting rod is in the 4th magnetic field intensity when the rotation of upper and lower, left and right four directions with it is described
It is poor that first magnetic field intensity is made, and obtains the 5th magnetic field intensity of upper and lower, left and right four direction;
Step 3523, in the 5th magnetic field intensity when being in upper and lower both direction according to the connecting rod in X, Y, Z component
Any two determines first straight line, with upper and lower two in the 5th magnetic field intensity when being in left and right both direction according to the connecting rod
Corresponding two components determine second straight line in a direction;
Here, as shown in Figure 3-4, when determining first straight line, it is only necessary to it is strong to use the 5th upward, downward magnetic field
Any two component in degree, it is assumed that the 5th upward magnetic field intensity uses X-component and Y-component, then the 5th downward magnetic
Field intensity also uses X-component and Y-component, accordingly, when determining second straight line, the 5th magnetic field intensity to the left and to the right
Also X-component and Y-component should be used;Then the 5th magnetic field intensity of up and down, left and right four direction is labeled in coordinate
In system, the 5th upward magnetic field intensity and the 5th downward magnetic field intensity are then connected, so that it is determined that first straight line;Secondly, even
The 5th magnetic field intensity to the left and the 5th magnetic field intensity to the right are connect, so that it is determined that second straight line;
Step 3524, the initial magnetic field intensity is determined according to the intersection point of the first straight line and the second straight line.
Here, by step 3523 it is found that in only X, Y and Z component that initial magnetic field intensity is probably determined
Any two;If expecting another component of initial strength, step 3523 can be repeated, it should be noted that being to select
Up and down, it in the 5th magnetic field intensity of left and right four direction when any two component, has to another by what is do not obtained
Component is selected in wherein;For example, in example in step 3523, the 5th upward magnetic field intensity uses X-component and Y-component,
The initial magnetic field intensity that so step 3524 is determined also only has X-component and Y-component.The Z of initial magnetic field intensity in order to obtain
Component, when repeating step 3523, the 5th upward magnetic field intensity may be used X-component and Z component, or upward the
Five magnetic field intensities use Y-component and Z component;Remaining the step of, is referred to the example in step 3523, and which is not described herein again.
In the embodiment of the present invention, the direction vector determined described in step 352 includes side upward, downward, to the left and to the right
To vector, the direction vector of the determination determines in the following manner:
The 5th magnetic field intensity when being in upward according to the initial magnetic field intensity and the connecting rod, determines upwardly direction
Vector;
The 5th magnetic field intensity when being in downward according to the initial magnetic field intensity and the connecting rod, determines downwardly direction
Vector;
The 5th magnetic field intensity when being in the left according to the initial magnetic field intensity and the connecting rod, determines direction to the left
Vector;
The 5th magnetic field intensity when being in the right according to the initial magnetic field intensity and the connecting rod, determines direction to the right
Vector.
The information processing method provided in the embodiment of the present invention first detects the first operation that user sends out;It is then responding to institute
The first operation is stated, pre-stored first magnetic field intensity is obtained;Secondly, the second operation that user sends out is detected;Again, it responds
Second operation, the second magnetic field intensity is obtained by the geomagnetic sensor;Finally, according to first magnetic field intensity and institute
It states the second magnetic field intensity and determines direction residing for the connecting rod;In this way, technical solution provided in an embodiment of the present invention actually base
In a kind of judgment method for the determining joystick swaying direction applied example one and embodiment two, and provided, it can give use in this way
The control-rod of the sense of reality is brought at family, to promote user experience.
Example IV
Based on embodiment three, the embodiment of the present invention also provides a kind of information processing unit, applied to being associated with the right
It is required that in the electronic equipment of the joystick of embodiment one or two, the electronic equipment includes at least:Geomagnetic sensor and
Display unit, and the electronic equipment is equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
Fig. 4-1 is the composed structure schematic diagram of four information processing unit of the embodiment of the present invention, as shown in Fig. 4-1, the device
Including first detection unit 41, first acquisition unit 42, second detection unit 43, second acquisition unit 44 and determination unit 45,
Wherein:
The first detection unit 41, the first operation sent out for detecting user, first operation is used for will be described
Joystick is positioned on the display unit;
The first acquisition unit 42 obtains pre-stored first magnetic field intensity for responding first operation;
The second detection unit 43, the second operation sent out for detecting user, second operation is for making
Joystick is stated to be swung;
The second acquisition unit 44 obtains the second magnetic for responding second operation by the geomagnetic sensor
Field intensity;
The determination unit 45, for determining the connecting rod according to first magnetic field intensity and second magnetic field intensity
Residing direction.
In embodiments of the present invention, magnetic field intensity Q may be used by three mutually orthogonal X-components, Y-component, Z component Lai
It indicates, wherein the size on X-component is x, direction isSize in Y-component is y, direction isSize on Z component be z,
Direction isAnd the value of x, y, z can be positive number, or negative, when value is positive number, then it represents that each component with
The positive direction taken is identical, otherwise, it means that each component is opposite with the positive direction taken;Magnetic field intensity Q is according to mathematical expression
Formula can be shown in formula(1):
So, the first magnetic field intensity uses Q1It indicates, thenWherein x1、y1、z1Is indicated respectively
One magnetic field intensity Q1Size on X-component, Y-component, Z component;Second magnetic field intensity uses Q2It indicates, thenWherein x2、y2、z2The second magnetic field intensity Q is indicated respectively2It is big on X-component, Y-component, Z component
It is small.
In the embodiment of the present invention, determine that the mode of first magnetic field intensity includes following two:
Mode one determines the mode of first magnetic field intensity, including step A1 and step A2, wherein:
Step A1 judges the distance of the joystick placement whether outside the threshold range of the geomagnetic sensor,
Obtain the first judging result;
Step A2, when first judging result shows the distance of the joystick placement in the geomagnetic sensor
Threshold range outside when, incuded magnetic field intensity is repeatedly measured by the geomagnetic sensor and takes arithmetic mean, obtains the
First average field strength is determined as first magnetic field intensity by one average field strength.
Mode two determines that the mode of first magnetic field intensity includes step B1 and step B2, wherein:
Step B1, judges whether the position of the joystick placement is located at the virtual control shown by the display unit
On bar processed, the second judging result is obtained;
Step B2, when second judging result shows that the joystick is located at the void shown by the display unit
When on quasi- control-rod, incuded magnetic field intensity is repeatedly measured by the geomagnetic sensor and takes arithmetic mean, obtains second
Second average field strength is determined as the first magnetic field intensity by average field strength.
It is all used in above-mentioned step A2 and B2 and repeatedly measures the method averaged to obtain the first magnetic field intensity
Q1, it should be noted that Q1 is a vector, and the arithmetic mean in step A2 and step B2 is to be for the size on X-component
X, the size in Y-component is y, the size on Z component is these three scalars of z to calculate;
In step A2, the first average field strength Qt,In each component size xt、yt
And ztDetermination process such as formula(2)Extremely(4)It is shown:
xt=(xt1+xt2+xt3+xt4+xt5)/5 (2);
yt=(yt1+yt2+yt3+yt4+yt5)/5 (3);
zt=(zt1+zt2+zt3+zt4+zt5)/5 (4);
Process described above is to determine the first average field strength Q according to mode onetProcess, according to mode two determine
The process of second average field strength and determining first average field strength QtProcess it is similar, which is not described herein again.
In the embodiment of the present invention, as shown in the Fig. 4-2, determination unit 45 includes first processing module 451, the first acquisition module
452, the first determining module 453 and the second determining module 454, wherein:
The first processing module 451, it is poor for making second magnetic field intensity and first magnetic field intensity, it obtains
Third magnetic field intensity;
Here, suppose that third magnetic field intensity Q3It indicates, and expression formula isThen:
First acquisition module 452, for obtaining initial magnetic field intensity;
First determining module 453, for according to the third magnetic field intensity and initial magnetic field intensity determination side
To vector;
Second determining module 454, for true according to the angle between the direction vector and the direction vector of determination
Direction residing for the fixed connecting rod.
Here, as shown in Fig. 4-3, the first acquisition module 452 includes that acquisition submodule 4521, first handles submodule
4522, the first determination sub-module 4523 and the second determination sub-module 4524, wherein:
The acquisition submodule 4521, for by the geomagnetic sensor obtains respectively when connecting rod be in above and below, a left side,
The 4th magnetic field intensity when right four direction, when the 4th magnetic field intensity is up and down, left and right is offset to utmostly
Magnetic field intensity;
The first processing submodule 4522, for the connecting rod to be in when upper and lower, left and right four direction rotates
It is poor that 4th magnetic field intensity is made with first magnetic field intensity, obtains the 5th magnetic field intensity of upper and lower, left and right four direction;
First determination sub-module 4523, the 5th magnetic field for being according to the connecting rod when upper and lower both direction
Any two in intensity in X, Y, Z component determines first straight line, and the when left and right both direction the 5th is according to the connecting rod
Two components corresponding with upper and lower both direction determine second straight line in magnetic field intensity;
Second determination sub-module 4524, for determining institute according to the intersection point of the first straight line and the second straight line
State initial magnetic field intensity.
In the embodiment of the present invention, direction vector determined by the first determining module 453 include upwards, downwards, to the left and to
Right direction vector, the direction vector of the determination determine in the following manner:
The 5th magnetic field intensity when being in upward according to the initial magnetic field intensity and the connecting rod, determines upwardly direction
Vector;
The 5th magnetic field intensity when being in downward according to the initial magnetic field intensity and the connecting rod, determines downwardly direction
Vector;
The 5th magnetic field intensity when being in the left according to the initial magnetic field intensity and the connecting rod, determines direction to the left
Vector;
The 5th magnetic field intensity when being in the right according to the initial magnetic field intensity and the connecting rod, determines direction to the right
Vector.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (15)
1. a kind of joystick, which is characterized in that applying electronic equipment, the electronic equipment include at least:Geomagnetic sensor
And display unit, and the electronic equipment is equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
The joystick includes:Connecting rod, the pedestal for being placed on the virtual game bar shown by the display unit;
Wherein, the extending direction of connecting rod is provided with permanent magnet in the connecting rod, and the south poles of the permanent magnet are arranged in the company
The first end of bar;
The connecting rod has magnetism, and magnetic field produced by the magnetic pole of north and south has symmetry;
The pedestal is flexibly connected with the first end of the connecting rod, so that the connecting rod can realize shake on the base,
To which the geomagnetic sensor can incude since joystick shakes caused changes of magnetic field.
2. joystick according to claim 1, which is characterized in that the first end of the pedestal and the connecting rod is removable
It connects with unloading.
3. joystick according to claim 1, which is characterized in that the joystick further includes touching head, institute
The second end for stating touch head and the connecting rod is detachably connected.
4. joystick according to claim 3, which is characterized in that the touch head is in sphere, is made of rubber
It forms.
5. joystick according to any one of claims 1 to 4, which is characterized in that the pedestal is absorption type pedestal,
The absorption type pedestal is formed using transparent plastic production.
6. joystick according to claim 5, which is characterized in that the connecting rod is stylus.
7. a kind of electronic equipment, which is characterized in that the electronic equipment includes that claim 1 to 6 any one of them such as is played
Control-rod.
8. a kind of information processing method, which is characterized in that applied to being associated with the game of any one of described claim 1 to 6
In the electronic equipment of control-rod, the electronic equipment includes at least:Geomagnetic sensor and display unit, and the electronic equipment is pacified
Equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
The method includes:
The first operation that detection user sends out, first operation by the joystick for being positioned over the display unit
On;
First operation is responded, pre-stored first magnetic field intensity is obtained;
Detect the second operation that user sends out, second operation is for making the joystick be swung;
Second operation is responded, the second magnetic field intensity is obtained by the geomagnetic sensor;
The direction residing for the connecting rod is determined according to first magnetic field intensity and second magnetic field intensity.
9. according to the method described in claim 8, it is characterized in that, determine the mode of first magnetic field intensity, including:
Judge that the distance of the joystick placement whether outside the threshold range of the geomagnetic sensor, obtains first and judges
As a result;
When first judging result shows threshold range of the distance in the geomagnetic sensor of the joystick placement
When outer, incuded magnetic field intensity is repeatedly measured by the geomagnetic sensor and takes arithmetic mean, obtains the first average magnetic field
First average field strength is determined as first magnetic field intensity by intensity.
10. according to the method described in claim 8, it is characterized in that, determine the mode of first magnetic field intensity, including:
Judge whether the position that the joystick is placed is located on the virtual controlling bar shown by the display unit, obtains
Second judging result;
When second judging result shows that the joystick is located on the virtual controlling bar shown by the display unit
When, incuded magnetic field intensity is repeatedly measured by the geomagnetic sensor and takes arithmetic mean, and it is strong to obtain the second average magnetic field
Degree, is determined as the first magnetic field intensity by second average field strength.
11. according to claim 8 to 10 any one of them method, which is characterized in that described according to first magnetic field intensity
The direction residing for the connecting rod is determined with second magnetic field intensity, including:
It is poor that second magnetic field intensity and first magnetic field intensity are made, and obtains third magnetic field intensity;
Initial magnetic field intensity is obtained, and direction vector is determined according to the third magnetic field intensity and the initial magnetic field intensity;
The direction residing for the connecting rod is determined according to the angle between the direction vector and the direction vector of determination.
12. according to the method for claim 11, which is characterized in that the acquisition initial magnetic field intensity, including:
The 4th magnetic field intensity when connecting rod is in upper and lower, left and right four direction is obtained respectively by the geomagnetic sensor,
Magnetic field intensity when 4th magnetic field intensity is up and down, left and right is offset to utmostly;
The 4th magnetic field intensity when the connecting rod is in upper and lower, left and right four direction rotation is made with first magnetic field intensity
Difference obtains the 5th magnetic field intensity of upper and lower, left and right four direction;
Any two in the 5th magnetic field intensity when being in upper and lower both direction according to the connecting rod in X, Y, Z component determines
First straight line, in the 5th magnetic field intensity when being in left and right both direction according to the connecting rod with it is opposite in upper and lower both direction
Two components answered determine second straight line;
The initial magnetic field intensity is determined according to the intersection point of the first straight line and the second straight line.
13. according to the method for claim 12, which is characterized in that the direction vector of the determination include upwards, downwards, to
A left side determines in the following manner with direction vector to the right, the direction vector of the determination:
The 5th magnetic field intensity when being in upward according to the initial magnetic field intensity and the connecting rod, determine upwardly direction to
Amount;
The 5th magnetic field intensity when being in downward according to the initial magnetic field intensity and the connecting rod, determine downwardly direction to
Amount;
The 5th magnetic field intensity when being in the left according to the initial magnetic field intensity and the connecting rod, determine direction to the left to
Amount;
The 5th magnetic field intensity when being in the right according to the initial magnetic field intensity and the connecting rod, determine direction to the right to
Amount.
14. a kind of information processing unit, which is characterized in that applied to being associated with the game of any one of described claim 1 to 6
In the electronic equipment of control-rod, the electronic equipment includes at least:Geomagnetic sensor and display unit, and the electronic equipment is pacified
Equipped with control-rod class game application;
When running the control-rod class game application, the virtual game bar generated is shown on the display unit;
Described device includes first detection unit, first acquisition unit, second detection unit, second acquisition unit and determines single
Member, wherein:
The first detection unit, the first operation sent out for detecting user, first operation is for controlling the game
Bar processed is positioned on the display unit;
The first acquisition unit obtains pre-stored first magnetic field intensity for responding first operation;
The second detection unit, the second operation sent out for detecting user, second operation is for making the game
Control-rod is swung;
The second acquisition unit obtains the second magnetic field intensity for responding second operation by the geomagnetic sensor;
The determination unit, for being determined residing for the connecting rod according to first magnetic field intensity and second magnetic field intensity
Direction.
15. device according to claim 14, which is characterized in that the determination unit includes first processing module, first
Determining module and the second determining module, wherein:
The first processing module, it is poor for making second magnetic field intensity and first magnetic field intensity, obtain third magnetic
Field intensity;
First determining module, for obtaining initial magnetic field intensity, and according to the third magnetic field intensity and the initial magnetic
Field intensity determines direction vector;
Second determining module, for determining the company according to the angle between the direction vector and the direction vector of determination
Direction residing for bar.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410105932.2A CN104922902B (en) | 2014-03-20 | 2014-03-20 | A kind of joystick, electronic equipment, information processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410105932.2A CN104922902B (en) | 2014-03-20 | 2014-03-20 | A kind of joystick, electronic equipment, information processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104922902A CN104922902A (en) | 2015-09-23 |
CN104922902B true CN104922902B (en) | 2018-08-31 |
Family
ID=54110528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410105932.2A Active CN104922902B (en) | 2014-03-20 | 2014-03-20 | A kind of joystick, electronic equipment, information processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104922902B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003015072A1 (en) * | 2001-08-07 | 2003-02-20 | Vega Vista | Control of display content by movement on a fixed spherical space |
WO2008069241A1 (en) * | 2006-12-06 | 2008-06-12 | Alps Electric Co., Ltd. | Motion-sensing program and electronic compass using the same |
CN102902372A (en) * | 2011-07-25 | 2013-01-30 | 索尼公司 | Information processing apparatus, information processing method, and information input apparatus |
CN203340157U (en) * | 2013-05-27 | 2013-12-11 | 深圳市米神科技有限公司 | Game operating device with sucker |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI471764B (en) * | 2012-02-20 | 2015-02-01 | Qisda Corp | Coordinate sensing system, coordinate sensing method and display system |
-
2014
- 2014-03-20 CN CN201410105932.2A patent/CN104922902B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003015072A1 (en) * | 2001-08-07 | 2003-02-20 | Vega Vista | Control of display content by movement on a fixed spherical space |
WO2008069241A1 (en) * | 2006-12-06 | 2008-06-12 | Alps Electric Co., Ltd. | Motion-sensing program and electronic compass using the same |
CN102902372A (en) * | 2011-07-25 | 2013-01-30 | 索尼公司 | Information processing apparatus, information processing method, and information input apparatus |
CN203340157U (en) * | 2013-05-27 | 2013-12-11 | 深圳市米神科技有限公司 | Game operating device with sucker |
Also Published As
Publication number | Publication date |
---|---|
CN104922902A (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103733161B (en) | Sensor-based user interface controls | |
US10984440B2 (en) | Physical activity inference from environmental metrics | |
US9298281B2 (en) | Magnetic vector sensor positioning and communications system | |
CN101568896B (en) | Information processing apparatus, input device, information processing system, information processing method | |
CN107921311B (en) | Motion sensor in sports equipment | |
US10704929B1 (en) | Tracking position and movement using a magnetic field | |
WO2008007261A2 (en) | Orientation sensing in a multi part device | |
Yoon et al. | Tring: Instant and customizable interactions with objects using an embedded magnet and a finger-worn device | |
CN103733229A (en) | Information processing device, information processing method, and program | |
CN102902373A (en) | Input apparatus, input method, and control system | |
CN108595002A (en) | A kind of information processing method and electronic equipment | |
KR20150040886A (en) | User input device using alternating current magnetic field and electric device having same | |
CN106344036A (en) | Intelligent running shirt device for detecting movement posture of human body and detecting method thereof | |
CN103777873A (en) | Information processing method and electronic equipment | |
KR101360980B1 (en) | Writing utensil-type electronic input device | |
CN104516650A (en) | Information processing method and electronic device | |
CN104922902B (en) | A kind of joystick, electronic equipment, information processing method and device | |
CN203803099U (en) | Chess and card game interaction auxiliary device | |
CN103677376B (en) | The method and electronic equipment of information processing | |
CN104288993B (en) | A chess and card game interactive auxiliary device and method | |
CN206974438U (en) | Electronic compass and electronic equipment | |
CN104932669B (en) | A kind of pointer rotating device, electronic equipment, information processing method and device | |
CN105378631B (en) | Device, method and computer program for remotely controlling | |
CN104714730A (en) | Information processing method and electronic device | |
CN106794373A (en) | Movement measuring device, motion measuring method and motion measurement program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |