Embodiment
The control method of electronic apparatus of the present invention is used in an electronic apparatus with at least one acceleration of gravity sensor, and this electronic apparatus can be mobile phone, PDA etc.Below will enumerate a plurality of preferred embodiments of the present invention can implement according to this for the technical field of the invention person.
Seeing also Fig. 1, is among first embodiment of preferred embodiment of the present invention, the functional block diagram of electronic apparatus.As shown in the figure, electronic apparatus 1 of the present invention comprises an acceleration of gravity sensor 11 (G-sensor), and controls a module 12 and a display unit 13.
Acceleration of gravity sensor 11 is coupled to controls module 12, controls module 12 and can be a program and a processor, or comprise the firmware of a program.Control module 12 and be coupled to display unit 13, display unit 13 can be a LCD.
Then, see also Fig. 2, it is the process flow diagram of the control method of electronic apparatus among first embodiment of preferred embodiment of the present invention.As shown in Figure 2, the control method of electronic apparatus 1 comprises the following step: at first, make electronic apparatus 1 enter a gravity steer mode (step 101); Then, the application of force makes electronic apparatus 1 deflection one deflection angle Φ (step 102).
At this moment, acceleration of gravity sensor 11 detects this deflection angle Φ (step 103), and this deflection angle Φ is sent to controls module 12, judges that for controlling module 12 whether deflection angle Φ is greater than a preset value (step 104).If, to control module 12 and produce one and switch instruction controlling electronic apparatus 1, this switching command is one of in a page switching command, an option switching command and the playitems playitem switching command.(step 105)
Control method for the electronic apparatus that further describes first embodiment of the invention sees also Fig. 3 A to Fig. 3 C, is the synoptic diagram that electronic apparatus is controlled by switching command.At first, as shown in Figure 3A, electronic apparatus 1 remains static.Then, shown in Fig. 3 B, the stressed and deflection one deflection angle Φ (indicating) of electronic apparatus 1.
Control module 12 after judging that deflection angle Φ is greater than preset value, control module 12 and produce switching command.With this switching command is that the option switching command is an example, when controlling module 12 judgement deflection angle Φ produces the option switching command greater than preset value after, shown in Fig. 3 C, in the shown menu 131 of display unit 13, a vernier selects frame 1311 to be moved by the option of originally choosing and chooses the next option.
Control mode by this kind electronic apparatus, the user can avoid operating the button of small size, more need not on the touch-control screen, expend eyesight and retouch the accurate option of desiring to click, as long as electronic apparatus in the hand 1 is done deflection simply or inclination, can assign instruction to control electronic apparatus 1 to electronic apparatus.
Then, seeing also Fig. 4, is among second embodiment of preferred embodiment of the present invention, the functional block diagram of electronic apparatus.As figure, the display unit 23 of electronic apparatus 2 also shows an image 24.Image 24 is made of a background image 241 and a foreground image 242, and wherein foreground image 242 more is made of a plurality of dynamic image element 2421a, 2421b and 2421c.
Seeing also Fig. 5, is among second embodiment of preferred embodiment of the present invention, the process flow diagram of the control method of electronic apparatus.The control method of the electronic apparatus 2 of present embodiment comprises the following step: at first, be to make electronic apparatus 2 enter a gravity steer mode (step 201); Then, make electronic apparatus 2 deflections one deflection angle Φ (step 202).
At this moment, acceleration of gravity sensor 21 detects this deflection angle Φ (step 203), and this deflection angle Φ is sent to controls module 22, judges that for controlling module 22 whether deflection angle Φ is greater than a preset value (step 204).If, to control module 22 and produce a page switching command, page switching command more comprises a dynamic image steering order (step 205).
Control module 22 according to this dynamic image steering order, according to each motor pattern among these dynamic image elements of deflection angle Φ computing 2421a, 2421b and the 2421c, edit these dynamic image elements 2421a, 2421b and 2421c (step 206) according to this, and these dynamic image elements 2421a, 2421b and 2421c (step 207) after display unit 23 is play editor.
Control method for the electronic apparatus that further describes second embodiment of the invention sees also Fig. 6 A and Fig. 6 B, is the schematic appearance of electronic apparatus in the second embodiment of the invention.
See also Fig. 6 A.Show image 24 in the display unit 23, and image 24 comprises a background image 241 and a foreground image 242.Then, seeing also Fig. 7 B, is the enlarged drawing of Fig. 7 A centre circle A.By Fig. 7 B as can be known, foreground image 242 is made of a plurality of dynamic image elements 2421 (each grid is represented a dynamic image element).In other words, these dynamic image elements 2421 can be considered the foreground image 242 of unitization.
Explain orally for convenience, below the forms of motion of electronic apparatus 2 stressed deflections is assumed to be simple plane rotatablely moves.Simultaneously, be that initial point is supposed an XYZ space with acceleration of gravity sensor 21, the surface of display unit 23 is parallel to the XZ plane.When electronic apparatus 2 not limitedly in XYZ space with deflection when motion vector, with the deflection vector on the XZ plane component and the angle of initial point be made as a tiltangle.
Seeing also Fig. 7, is among second embodiment, the synoptic diagram of the control mode of electronic apparatus.As electronic apparatus 2 deflections one deflection angle Φ, and the tiltangle of this deflection angle Φ on the XZ plane is greater than a preset value, control module 22 and perform an analysis, edit these dynamic image elements 2421a, 2421b and 2421c according to this according to the motor pattern of tiltangle to these dynamic image elements 2421a, 2421b and 2421c.
Do not have other dynamic image elements under the dynamic image element of being analyzed 2421, editor's dynamic image element 2421 is applied mechanically the motor pattern of the movement of falling object; Other dynamic image elements are arranged under the dynamic image element of being analyzed 2421, and editor's dynamic image element 2421 is applied mechanically the motor pattern of 45 ° of inclined-plane gliding motilities.
Thus, just can build that dynamic image element 2421a, 2421b and 2421c produce as husky the picture as the visual effect of pouring out with the gravity direction change.
At last, when all dynamic image element 2421a, 2421b and 2421c all arrive in the image 24 towards gravity direction bottom and stop motion is controlled module 22 and according to this page switching command image 24 is switched to next image.
Perhaps, image 24 also might directly be constituted (figure does not look) by dynamic image element 2421, there is no the branch of background image 241 and foreground image 242.When tiltangle greater than preset value, all dynamic image elements 242 are done the bottom disappearance of 45 ° of inclined-plane gliding motilities towards gravity direction.Simultaneously, next image replacement dynamic image element 2421 appears on the display unit 23.So, also build the special visual effect of the cut scene of echoing, break the passing stereotype of imitating design of looking with gravity direction.
Also edited by the analysis of dynamic image element 2421 being made motor pattern, the visual effect that these dynamic image elements 2421 are produced just like Sha Huaban, conversion along with deflection angle Φ, in image 24, slide, and under unsupported situation, continue to fall towards gravity direction towards different directions.
The mode of operation of electronic apparatus in the known technology, the control method of electronic apparatus 2 of the present invention is not only simply laborsaving, more can make the image 24 in the display unit 23 make abundant variation, increase the interest that electronic apparatus uses according to the deflection angle Φ of electronic apparatus 2.
By the above detailed description of preferred embodiments, hope can be known description feature of the present invention and spirit more, and is not to come category of the present invention is limited with the above-mentioned preferred embodiment that is disclosed.On the contrary, its objective is that hope can contain in the category of claim of being arranged in of various changes and tool equality institute of the present invention desire application.