CN108815840A - A kind of method, device and mobile terminal controlling application program - Google Patents

A kind of method, device and mobile terminal controlling application program Download PDF

Info

Publication number
CN108815840A
CN108815840A CN201810554692.2A CN201810554692A CN108815840A CN 108815840 A CN108815840 A CN 108815840A CN 201810554692 A CN201810554692 A CN 201810554692A CN 108815840 A CN108815840 A CN 108815840A
Authority
CN
China
Prior art keywords
mobile terminal
screen
barrier
mentioned
distance
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.)
Granted
Application number
CN201810554692.2A
Other languages
Chinese (zh)
Other versions
CN108815840B (en
Inventor
廖新风
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810554692.2A priority Critical patent/CN108815840B/en
Publication of CN108815840A publication Critical patent/CN108815840A/en
Application granted granted Critical
Publication of CN108815840B publication Critical patent/CN108815840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/217Input arrangements for video game devices characterised by their sensors, purposes or types using environment-related information, i.e. information generated otherwise than by the player, e.g. ambient temperature or humidity
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6045Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Ecology (AREA)
  • Environmental & Geological Engineering (AREA)
  • Environmental Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of method, apparatus, mobile terminal and computer readable storage mediums for controlling application program, wherein the method for the control application program includes:It is described to be used to indicate the distance between the range sensor and barrier apart from influence value by the range sensor detecting distance influence value of mobile terminal during operational objective application program;Determine the barrier at a distance from the screen of the mobile terminal apart from influence value according to described;According to the barrier at a distance from the screen of the mobile terminal, controls the destination application and execute and the barrier and corresponding operation at a distance from the screen of the mobile terminal.By the application, the convenience of application program operation can effectively improve.

Description

A kind of method, device and mobile terminal controlling application program
Technical field
The application belongs to technical field of information processing more particularly to a kind of method, apparatus for controlling application program, movement eventually End and computer readable storage medium.
Background technique
Currently, the game class application program of mobile terminal mostly uses physical button or screen virtual key to carry out game Operation, such as the acceleration control of game game scenario or control of slowing down are realized by screen virtual key.Existing control Mode needs user constantly to click physical button or virtual key manually, and it is not convenient enough to operate.
Summary of the invention
In view of this, controlling the method, apparatus of application program, mobile terminal and computer-readable this application provides a kind of The convenience of application program operation can be improved in storage medium.
The first aspect of the application provides a kind of method for controlling application program, and the above method includes:
During operational objective application program, by the range sensor detecting distance influence value of mobile terminal, on It states and is used to indicate the distance between above-mentioned range sensor and barrier apart from influence value;
Determine above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal apart from influence value according to above-mentioned;
According to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal, control above-mentioned destination application execute with it is upper State barrier corresponding operation at a distance from the screen of above-mentioned mobile terminal.
The second aspect of the application provides a kind of device for controlling application program, and above-mentioned apparatus includes:
First detection module, for passing through the range sensor of mobile terminal during operational objective application program Detecting distance influence value, it is above-mentioned to be used to indicate the distance between above-mentioned range sensor and barrier apart from influence value;
Determining module, for according to the above-mentioned screen that above-mentioned barrier and above-mentioned mobile terminal are determined apart from influence value away from From;
Control module is answered at a distance from the screen of above-mentioned mobile terminal, controlling above-mentioned target according to above-mentioned barrier It is executed and above-mentioned barrier and corresponding operation at a distance from the screen of above-mentioned mobile terminal with program.
The third aspect of the application provides a kind of mobile terminal, above-mentioned mobile terminal include memory, processor and It is stored in the computer program that can be run in above-mentioned memory and on above-mentioned processor, above-mentioned processor executes above-mentioned computer The step of method of first aspect as above is realized when program.
The fourth aspect of the application provides a kind of computer readable storage medium, and above-mentioned computer readable storage medium is deposited Computer program is contained, above-mentioned computer program realizes the method for first aspect as above when being executed by processor the step of.
The 5th aspect of the application provides a kind of computer program product, and above-mentioned computer program product includes computer Program, when above-mentioned computer program is executed by one or more processors the step of the realization such as method of above-mentioned first aspect.
Therefore the application can be directly according to the screen of barrier (such as finger of user etc.) and mobile terminal Distance, control application program execute corresponding operation, reduce the operation for frequently clicking object key or virtual key, effectively improve The convenience of application program operation, has stronger usability and practicality.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of the method for control application program provided by the embodiments of the present application;
Fig. 2 is another implementation process schematic diagram of the method for control application program provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram of the device of control application program provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other Portable device.It is to be further understood that in certain embodiments, above equipment is not portable communication device, but is had The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple:Drawing application program, demonstration application Program, word-processing application, website creation application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer With program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on mobile terminals Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example, Touch sensitive surface) it can support the various application programs with user interface intuitive and transparent for a user.
In addition, term " first ", " second " etc. are only used for distinguishing description, and should not be understood as in the description of the present application Indication or suggestion relative importance.
In order to illustrate the above-mentioned technical solution of the application, the following is a description of specific embodiments.
Embodiment one
It is a kind of implementation process schematic diagram of the method for control application program provided by the embodiments of the present application referring to Fig. 1, it should The method of control application program may comprise steps of:
Step 101, during operational objective application program, pass through the range sensor detecting distance sense of mobile terminal It should be worth, it is above-mentioned to be used to indicate the distance between above-mentioned range sensor and barrier apart from influence value.
In the embodiment of the present application, above-mentioned destination application can control to there is acceleration or the application journey for control of slowing down Sequence, such as game class application program.
Illustratively, it in the embodiment of the present application, can be got by the front page layout state of the above-mentioned mobile terminal of acquisition In the application program of the front stage operation of mobile terminal, when detecting the above-mentioned target application journey of front stage operation in above-mentioned mobile terminal When sequence, the range sensor for beginning through mobile terminal is obtained apart from influence value, and in the mistake of front stage operation destination application Cheng Zhong is persistently obtained above-mentioned apart from influence value.In addition it is also possible to be application program in the above-mentioned mobile terminal of monitoring operation into Journey is such as determined according to operation process above-mentioned mobile whole when detecting that there are qualified monitor events in above-mentioned operation process Above-mentioned destination application is currently running in end, then the range sensor for beginning through mobile terminal is obtained apart from influence value, and During operational objective application program, persistently obtain above-mentioned apart from influence value.
In the embodiment of the present application, above-mentioned range sensor can be used for incuding its between object at a distance from.Illustratively, Above-mentioned range sensor can emit ultrasonic wave or light pulse and measure the ultrasonic wave or light pulse from being emitted to by object The reflected time calculates the distance between object by surveying time interval.Illustratively, above-mentioned range sensor can To be infrared distance sensor, ultrasonic distance sensor etc..It is above-mentioned when above-mentioned range sensor is infrared distance sensor The light pulse of range sensor transmitting is infrared light, and above-mentioned range sensor has infrared emission tube and infrared receiver at this time Pipe, by judge the case where above-mentioned infrared receiver tube receives the infrared ray reflected, can be calculated above-mentioned barrier to away from With a distance from sensor.
Illustratively, in the embodiment of the present application, the ultrasonic wave of above-mentioned range sensor transmitting or light pulse etc. can hang down It, can also be with the plane where above-mentioned screen at specified angle directly in the plane where the screen of above-mentioned mobile terminal.In addition, Above-mentioned range sensor can emit a branch of light pulse and perhaps ultrasonic wave or emit multi beam light pulse or ultrasonic wave, and And multi beam light pulse or ultrasonic wave can be respectively directed to different directions.The multi beam light pulse of multiple directions is directed toward by transmitting Or ultrasonic wave, can make above-mentioned range sensor detect the barrier in multiple orientation and obtain the barrier it is corresponding away from From influence value, to expand the detection zone of range sensor.
Above-mentioned barrier can be a variety of objects in the embodiment of the present application, it is not limited here.Illustratively, the application is real Apply in example, above-mentioned barrier can be the finger of user so that user can easily just be controlled by a hand it is above-mentioned Destination application executes corresponding operation.
Step 102, determine above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal apart from influence value according to above-mentioned.
Illustratively, when the signals such as the ultrasonic wave of above-mentioned range sensor transmitting or light pulse are perpendicular to above-mentioned mobile whole When plane where the screen at end, obtain above-mentioned range sensor to screen distance, according to above-mentioned range sensor and screen The distance between and apart from influence value, can determine above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal.When above-mentioned When the ultrasonic wave of range sensor transmitting or plane where the signals such as light pulse and above-mentioned screen are at specified angle, Ke Yitong Cross the specified angle, above-mentioned range sensor to above-mentioned screen distance and it is above-mentioned apart from influence value determine above-mentioned barrier with The distance of the screen of above-mentioned mobile terminal.
Step 103, according to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal, above-mentioned destination application is controlled It executes and above-mentioned barrier and corresponding operation at a distance from the screen of above-mentioned mobile terminal.
In the embodiment of the present application, the corresponding operation at a distance from the screen of above-mentioned mobile terminal of above-mentioned barrier can be speed Degree control operation, above-mentioned speed control operation, which can serve to indicate that, executes correspondence to the target object in above-mentioned destination application Speed control.
Wherein, illustratively, above-mentioned destination application can be game class application program, correspondingly, above-mentioned according to upper Barrier is stated at a distance from the screen of above-mentioned mobile terminal, control above-mentioned destination application execute with above-mentioned barrier with it is above-mentioned The distance of the screen of mobile terminal it is corresponding operation may include:
If above-mentioned barrier is less than preset value at a distance from the screen of above-mentioned mobile terminal, above-mentioned game class application is controlled Scene of game in program, which executes, accelerates operation;
If above-mentioned barrier is greater than or equal to above-mentioned preset value at a distance from the screen of above-mentioned mobile terminal, control above-mentioned Scene of game in game class application program executes deceleration-operation.
Wherein, illustratively, the scene of game in above-mentioned game class application program may include automobile in application program, Traveling picture under personage, manipulator visual angle etc. sub-scene.Acceleration and above-mentioned deceleration-operation in above-mentioned acceleration operation In acceleration can pre-establish mapping relations at a distance from the screen of above-mentioned mobile terminal with above-mentioned barrier.It is exemplary , above-mentioned acceleration operation can be the acceleration operation of fixed acceleration, and above-mentioned deceleration-operation can be acceleration and directional velocity The fixed deceleration-operation of the opposite and acceleration value.Alternatively, the acceleration of above-mentioned acceleration operation and adding for above-mentioned deceleration-operation Speed changes with variation of the above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal.
By taking above-mentioned game class application program is the application program of automobile sports class as an example, it can wrap in the application program at this time The operation such as the speed for controlling specified automobile and traffic route is included, when determining that barrier is small at a distance from the screen of above-mentioned mobile terminal When 3cm, it can control the automobile in automobile sports class application program and execute the acceleration operation that acceleration is 2m/s;Work as determination When barrier is greater than or equal to 3cm at a distance from the screen of above-mentioned mobile terminal, automobile sports class application program can control In automobile execute acceleration be -2m/s deceleration-operation.Alternatively, set barrier at a distance from the screen of above-mentioned mobile terminal as D can control automobile sports class application journey when determining that barrier is less than 3cm at a distance from the screen of above-mentioned mobile terminal Automobile in sequence executes the acceleration that acceleration is 200 (3-d)/s and operates;When the screen for determining barrier and above-mentioned mobile terminal Distance be greater than or equal to 3cm when, can control the automobile sports class application program in automobile execute acceleration be 200 (3-d)/ The deceleration-operation of s, the acceleration of deceleration-operation is negative value at this time.
Optionally, include above by the range sensor detecting distance influence value of mobile terminal:
The state of the screen of mobile terminal is detected by the gravity sensor of mobile terminal, if the state of above-mentioned screen is cross When screen state, then pass through the range sensor detecting distance influence value of mobile terminal.
In the embodiment of the present application, above-mentioned gravity sensor can be realized based on the principle of piezoelectric effect, be passed by gravity Sensor can measure the acceleration due to caused by gravity, can calculate the tilt angle of equipment with respect to the horizontal plane.
In the embodiment of the present application, above-mentioned transverse screen state can be using the long side of screen as horizontal axis, be vertical with the short side of screen The state that axis is shown.Above-mentioned transverse screen state can be to be rotated by 90 ° by vertical screen state and obtain.
The embodiment of the present application by the range sensor of mobile terminal by being examined during operational objective application program Ranging can determine that above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal, is answered to control above-mentioned target from influence value It is executed with above-mentioned with program apart from corresponding operation, user is controlled by controlling at a distance from above-mentioned screen The operation in destination application is stated, so as to improve the convenience of application program operation, there is stronger ease for use and reality The property used.
Embodiment two
It referring to fig. 2, is another implementation process schematic diagram of the method provided by the embodiments of the present application for controlling application program, it should The method of control application program may comprise steps of:
Step 201, during operational objective application program, pass through the range sensor detecting distance sense of mobile terminal It should be worth, it is above-mentioned to be used to indicate the distance between above-mentioned range sensor and barrier apart from influence value.
Step 202, determine above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal apart from influence value according to above-mentioned.
In the embodiment of the present application, above-mentioned steps 201,202 are identical as above-mentioned steps 101,102 respectively, for details, reference can be made to The associated description of above-mentioned steps 101,102, details are not described herein.
Step 203, during operational objective application program, above-mentioned obstacle is detected by the optical sensor of mobile terminal The location status of the screen of object and above-mentioned mobile terminal, above-mentioned location status include close to state or far from state.
In the embodiment of the present application, above-mentioned optical sensor can be sensitive to light energy, and light energy is converted to electric signal Device.Wherein, above-mentioned optical sensor may include light-sensitive element, with by light-sensitive element come detection light influence value, thus logical It crosses and judges the size of the photoinduction value come the location status for the screen for determining above-mentioned barrier and above-mentioned mobile terminal.Above-mentioned light sensation Should be worth can be set near above-mentioned range sensor, such as can be disposed side by side on above-mentioned mobile terminal with above-mentioned range sensor Top, and, be arranged on the outside of the top edge of above-mentioned screen.
Illustratively, the screen of above-mentioned barrier Yu above-mentioned mobile terminal is detected above by the optical sensor of mobile terminal Location status may include:
By the optical sensor detection light influence value of above-mentioned mobile terminal, above-mentioned photoinduction value is used to indicate above-mentioned mobile whole The ambient brightness at end;
If above-mentioned photoinduction value is less than photoinduction preset value, it is determined that the screen of above-mentioned barrier and above-mentioned mobile terminal Location status is close to state;
If above-mentioned photoinduction value is greater than or equal to above-mentioned photoinduction preset value, it is determined that above-mentioned barrier and above-mentioned movement are eventually The location status of the screen at end is far from state.
Wherein, the ambient brightness of the above-mentioned mobile terminal of above-mentioned photoinduction value instruction can be the screen of above-mentioned mobile terminal Preceding ambient brightness.
Optionally, in the embodiment of the present application, judge whether can also include during the operational objective application program Judge whether in non-talking state.When above-mentioned mobile terminal needs under talking state through above-mentioned range sensor and upper When stating optical sensor and judging whether to need to cease screen, in order to make in the embodiment of the present application through the inspection of range sensor and optical sensor It surveys and does not conflict with the breath screen detection in talking state, it can be just real when determining that above-mentioned mobile terminal is under non-talking state Apply the embodiment of the present application.
In addition, in not operational objective application program, can be set to not use the control application in the embodiment of the present application The method of program.It can also be controlled whether by presetting the modes such as option or key using the control application program Method allows user to stop implementing the application implementation by the option or key in operational objective application program Example.
Step 204, according to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal and above-mentioned barrier with it is above-mentioned The location status of the screen of mobile terminal controls above-mentioned destination application and executes and above-mentioned barrier and above-mentioned mobile terminal The corresponding operation of the distance of screen.
Optionally, above-mentioned destination application is game class application program;
Correspondingly, according to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal and above-mentioned barrier and above-mentioned shifting The location status of the screen of dynamic terminal controls the screen of above-mentioned destination application execution and above-mentioned barrier and above-mentioned mobile terminal Curtain distance it is corresponding operation may include:
If above-mentioned barrier is less than preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned optical sensor detects The location status of the screen of above-mentioned barrier and above-mentioned mobile terminal is then to control in above-mentioned game class application program close to state Scene of game execute accelerate operation;
If above-mentioned barrier is greater than or equal to above-mentioned preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned light passes Sensor detects that the location status of the screen of above-mentioned barrier and above-mentioned mobile terminal is then to control above-mentioned game class far from state Scene of game in application program executes deceleration-operation.
Wherein, illustratively, the scene of game in above-mentioned game class application program may include automobile in application program, Traveling picture under personage, manipulator visual angle etc. sub-scene.Velocity amplitude and above-mentioned deceleration-operation in above-mentioned acceleration operation In velocity amplitude can pre-establish mapping relations at a distance from the screen of above-mentioned mobile terminal with above-mentioned barrier.
Optionally, in the embodiment of the present application, the velocity amplitude and above-mentioned barrier of above-mentioned acceleration operation and above-mentioned mobile terminal Screen apart from inverse correlation;The velocity amplitude of above-mentioned deceleration-operation is at a distance from the screen of above-mentioned barrier and above-mentioned mobile terminal Inverse correlation.
Wherein, illustratively, the relationship of above-mentioned inverse correlation can be linear relationship or exponential relationship etc..For example, for Accelerate operation, the acceleration of above-mentioned acceleration operation can be with above-mentioned barrier subtracting at a distance from the screen of above-mentioned mobile terminal It is small and increase, so that the growth of corresponding speed is getting faster.For deceleration-operation, the acceleration of deceleration-operation can be with speed It is contrary, at this point, when detecting that above-mentioned barrier is gradually increased at a distance from above-mentioned screen, the acceleration of the deceleration-operation Absolute value can be gradually increased according to corresponding mapping relations, but the symbol of the acceleration of the deceleration-operation is negative, so The acceleration value of the deceleration-operation reduces with increase of the above-mentioned barrier at a distance from above-mentioned screen, and corresponding speed is reduced Amplitude also increase with it.
In addition, optional, when detecting above-mentioned barrier with the screen of above-mentioned mobile terminal at a distance from greater than specified threshold When, or work as and detect that above-mentioned barrier is greater than specified threshold and above-mentioned location status at a distance from the screen of above-mentioned mobile terminal When for far from state, or when can't detect apart from influence value, it is believed that above-mentioned barrier is in effective detection model at this time Outside enclosing, to not execute above-mentioned deceleration-operation.
Optionally, it is above-mentioned according to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal and above-mentioned barrier with it is upper The location status for stating the screen of mobile terminal controls the screen of above-mentioned application program execution and above-mentioned barrier and above-mentioned mobile terminal Curtain the corresponding operation of distance can also include:
If above-mentioned barrier is less than preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned optical sensor detects The variation of the location status of the screen of above-mentioned barrier and above-mentioned mobile terminal in the given time in a certain range, then controls Scene of game execution in above-mentioned game class application program at the uniform velocity operates.
Wherein, above-mentioned barrier is less than preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned optical sensor is examined The variation of the location status of the screen of above-mentioned barrier and above-mentioned mobile terminal in the given time is measured in a certain range may be used To think distance fluctuating change in a certain range close to above-mentioned screen of above-mentioned barrier to above-mentioned screen, such as in 3s Above-mentioned location status has changed three times, is separate state by close state change, then by being close state far from state change, and Above-mentioned barrier is always less than preset value at a distance from the screen of above-mentioned mobile terminal at this time, it may be considered that above-mentioned light passes at this time Sensor detects that above-mentioned barrier is in the state of the fuctuation within a narrow range variation within a preset range at a distance from above-mentioned screen, thus this When can control scene of game in above-mentioned game class application program and execute the constant at the uniform velocity operation of speed.
In the embodiment of the present application the embodiment of the present application, detected by using range sensor and optical sensor, it can be with Erroneous judgement is reduced, so that corresponding control operation is more accurate.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment one and two, The execution sequence of each process should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application, which is constituted, appoints What is limited.
Embodiment three
It is the structural schematic diagram of the device of control application program provided by the embodiments of the present application, for the ease of saying referring to Fig. 3 It is bright, illustrate only part relevant to the embodiment of the present application.The device of the scene detection can be used for various having image procossing The terminal of function, such as laptop, pocket computer (Pocket Personal Computer, PPC), individual digital help It manages in (Personal Digital Assistant, PDA) etc., can be the software unit being built in these terminals, hardware Unit or software and hardware combining unit etc..The device 300 of control application program in the embodiment of the present application includes:
First detection module 301, for passing through the Distance-sensing of mobile terminal during operational objective application program Device detecting distance influence value, it is above-mentioned to be used to indicate the distance between above-mentioned range sensor and barrier apart from influence value;
Determining module 302, for according to the above-mentioned screen for determining above-mentioned barrier Yu above-mentioned mobile terminal apart from influence value Distance;
Control module 303, at a distance from the screen of above-mentioned mobile terminal, controlling above-mentioned target according to above-mentioned barrier Application program executes and above-mentioned barrier and corresponding operation at a distance from the screen of above-mentioned mobile terminal.
Optionally, the device 300 of above-mentioned control application program further includes:
Second detection module, for being examined by the optical sensor of mobile terminal during operational objective application program The location status of the screen of above-mentioned barrier and above-mentioned mobile terminal is surveyed, above-mentioned location status includes close to state or far from shape State;
Correspondingly, above-mentioned control module 303 is specifically used for:
According to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal and above-mentioned barrier and above-mentioned mobile terminal Screen location status, control above-mentioned destination application execute with the screen of above-mentioned barrier and above-mentioned mobile terminal away from From corresponding operation.
Optionally, in the device 300 of above-mentioned control application program, above-mentioned destination application is game class application program;
Correspondingly, above-mentioned control module 303 is specifically used for:
If above-mentioned barrier is less than preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned optical sensor detects The location status of the screen of above-mentioned barrier and above-mentioned mobile terminal is then to control in above-mentioned game class application program close to state Scene of game execute accelerate operation;
If above-mentioned barrier is greater than or equal to above-mentioned preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned light passes Sensor detects that the location status of the screen of above-mentioned barrier and above-mentioned mobile terminal is then to control above-mentioned game class far from state Scene of game in application program executes deceleration-operation.
Optionally, in the device 300 of above-mentioned control application program, the velocity amplitude and above-mentioned barrier of above-mentioned acceleration operation with The screen of above-mentioned mobile terminal apart from inverse correlation;
The velocity amplitude of above-mentioned deceleration-operation and inverse correlation at a distance from the screen of above-mentioned barrier and above-mentioned mobile terminal.
Optionally, above-mentioned control module 303 is specifically also used to:
If above-mentioned barrier is less than preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned optical sensor detects The variation of the location status of the screen of above-mentioned barrier and above-mentioned mobile terminal in the given time in a certain range, then controls Scene of game execution in above-mentioned game class application program at the uniform velocity operates.
Optionally, above-mentioned first detection module 301 is specifically used for:
The state of the screen of mobile terminal is detected by the gravity sensor of mobile terminal, if the state of above-mentioned screen is cross When screen state, then pass through the range sensor detecting distance influence value of mobile terminal.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of above-mentioned apparatus is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Example IV
The embodiment of the present application four provides a kind of mobile terminal, referring to Fig. 4, the mobile terminal packet in the embodiment of the present application It includes:Memory 401, one or more processors 402 (only showing one in Fig. 4) and is stored on memory 401 and can locate The computer program run on reason device.Wherein:For memory 401 for storing software program and module, processor 402 passes through fortune Row is stored in the software program and unit of memory 401, thereby executing various function application and data processing.Specifically, Processor 402 is stored by operation and realizes following steps in the above-mentioned computer program of memory 401:
During operational objective application program, by the range sensor detecting distance influence value of mobile terminal, on It states and is used to indicate the distance between above-mentioned range sensor and barrier apart from influence value;
Determine above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal apart from influence value according to above-mentioned;
According to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal, control above-mentioned destination application execute with it is upper State barrier corresponding operation at a distance from the screen of above-mentioned mobile terminal.
Assuming that it is above-mentioned be the first possible embodiment, then based on the first above-mentioned possible embodiment and In second of the possible embodiment provided, processor 402 is stored in the above-mentioned computer program of memory 401 by operation When also realize following steps:
During operational objective application program, by the optical sensor of mobile terminal detect above-mentioned barrier with it is above-mentioned The location status of the screen of mobile terminal, above-mentioned location status include close to state or far from state;
Correspondingly, controlling above-mentioned destination application according to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal Executing operation corresponding at a distance from above-mentioned mobile terminal with above-mentioned barrier includes:
According to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal and above-mentioned barrier and above-mentioned mobile terminal Screen location status, control above-mentioned destination application execute with the screen of above-mentioned barrier and above-mentioned mobile terminal away from From corresponding operation.
It is above-mentioned in the third the possible embodiment provided based on above-mentioned second of possible embodiment Destination application is game class application program;
Correspondingly, according to above-mentioned barrier at a distance from the screen of above-mentioned mobile terminal and above-mentioned barrier and above-mentioned shifting The location status of the screen of dynamic terminal controls the screen of above-mentioned destination application execution and above-mentioned barrier and above-mentioned mobile terminal Curtain distance it is corresponding operation include:
If above-mentioned barrier is less than preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned optical sensor detects The location status of the screen of above-mentioned barrier and above-mentioned mobile terminal is then to control in above-mentioned game class application program close to state Scene of game execute accelerate operation;
If above-mentioned barrier is greater than or equal to above-mentioned preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned light passes Sensor detects that the location status of the screen of above-mentioned barrier and above-mentioned mobile terminal is then to control above-mentioned game class far from state Scene of game in application program executes deceleration-operation.
In the 4th kind of possible embodiment provided based on the third possible embodiment, above-mentioned acceleration The velocity amplitude of operation and inverse correlation at a distance from the screen of above-mentioned barrier and above-mentioned mobile terminal;
The velocity amplitude of above-mentioned deceleration-operation and inverse correlation at a distance from the screen of above-mentioned barrier and above-mentioned mobile terminal.
In the 5th kind of possible embodiment provided based on the third possible embodiment, above-mentioned basis Above-mentioned barrier is at a distance from the screen of above-mentioned mobile terminal and the position of the screen of above-mentioned barrier and above-mentioned mobile terminal State controls above-mentioned application program and executes operation corresponding at a distance from the screen of above-mentioned mobile terminal with above-mentioned barrier also Including:
If above-mentioned barrier is less than preset value at a distance from the screen of above-mentioned mobile terminal, and above-mentioned optical sensor detects The variation of the location status of the screen of above-mentioned barrier and above-mentioned mobile terminal in the given time in a certain range, then controls Scene of game execution in above-mentioned game class application program at the uniform velocity operates.
Based on the first possible embodiment or based on above-mentioned second of possible embodiment, Perhaps based on the third above-mentioned possible embodiment or based on above-mentioned 4th kind of possible embodiment, or In the 6th kind of possible embodiment provided based on the above-mentioned 5th kind of possible embodiment of person, above by movement The range sensor detecting distance influence value of terminal includes:
The state of the screen of mobile terminal is detected by the gravity sensor of mobile terminal, if the state of above-mentioned screen is cross When screen state, then pass through the range sensor detecting distance influence value of mobile terminal.
Further, as shown in figure 4, above-mentioned mobile terminal may also include:One or more input equipments 403 (only show in Fig. 4 One out) and one or more output equipments 404 (one is only shown in Fig. 4).Memory 401, processor 402, input equipment 403 and output equipment 404 connected by bus 405.
It should be appreciated that in the embodiment of the present application, alleged processor 402 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 403 may include keyboard, Trackpad, fingerprint collecting sensor (for acquiring the finger print information of user With the directional information of fingerprint), microphone, camera etc., output equipment 404 may include display, loudspeaker etc..
Memory 401 may include read-only memory and random access memory, and provide instruction sum number to processor 402 According to.Part or all of memory 401 can also include nonvolatile RAM.For example, memory 401 may be used also With the information of storage device type.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or external equipment software and electronic hardware.These functions are studied carefully Unexpectedly it is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technique people Member can use different methods to achieve the described function each specific application, but this realization is it is not considered that super Scope of the present application out.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, system embodiment described above is only schematical, for example, the division of above-mentioned module or unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical property, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
If above-mentioned integrated unit, module be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-described embodiment All or part of the process in method can also instruct relevant hardware to complete, above-mentioned calculating by computer program Machine program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned The step of each embodiment of the method.Wherein, above-mentioned computer program includes computer program code, above-mentioned computer program code It can be source code form, object identification code form, executable file or certain intermediate forms etc..Above-mentioned computer-readable storage medium Matter may include:Can carry above-mentioned computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disk, CD, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate Be, the content that above-mentioned computer readable storage medium includes can according in jurisdiction make laws and patent practice requirement into Row increase and decrease appropriate, such as in certain jurisdictions, do not include according to legislation and patent practice, computer readable storage medium It is electric carrier signal and telecommunication signal.
Above above-described embodiment is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that:It still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of method for controlling application program, which is characterized in that including:
During operational objective application program, by the range sensor detecting distance influence value of mobile terminal, it is described away from The distance between the range sensor and barrier are used to indicate from influence value;
Determine the barrier at a distance from the screen of the mobile terminal apart from influence value according to described;
According to the barrier at a distance from the screen of the mobile terminal, controls the destination application and execute and the barrier Hinder object corresponding operation at a distance from the screen of the mobile terminal.
2. the method as described in claim 1, which is characterized in that the method also includes:
During operational objective application program, the barrier and the movement are detected by the optical sensor of mobile terminal The location status of the screen of terminal, the location status include close to state or far from state;
Correspondingly, controlling the destination application according to the barrier at a distance from the screen of the mobile terminal and executing Include with operate corresponding at a distance from the mobile terminal of the barrier:
According to the barrier at a distance from the screen of the mobile terminal and the screen of the barrier and the mobile terminal The location status of curtain controls the destination application and executes and phase at a distance from the screen of the barrier and the mobile terminal Corresponding operation.
3. method according to claim 2, which is characterized in that the destination application is game class application program;
Correspondingly, according to the barrier at a distance from the screen of the mobile terminal and the barrier and it is described it is mobile eventually The location status of the screen at end controls the destination application and executes and the screen of the barrier and the mobile terminal Include apart from corresponding operation:
If the barrier is less than preset value at a distance from the screen of the mobile terminal, and the optical sensor detect it is described The location status of the screen of barrier and the mobile terminal is then to control the trip in the game class application program close to state Scene of playing, which executes, accelerates operation;
If the barrier is greater than or equal to the preset value, and the optical sensor at a distance from the screen of the mobile terminal The location status for detecting the screen of the barrier and the mobile terminal is then to control the game class application far from state Scene of game in program executes deceleration-operation.
4. method as claimed in claim 3, which is characterized in that velocity amplitude and the barrier for accelerating operation with it is described The screen of mobile terminal apart from inverse correlation;
The velocity amplitude of the deceleration-operation and inverse correlation at a distance from the screen of the barrier and the mobile terminal.
5. method as claimed in claim 3, which is characterized in that the screen according to the barrier and the mobile terminal Distance and the barrier and the mobile terminal screen location status, control the application program execute with it is described Barrier at a distance from the screen of the mobile terminal it is corresponding operation further include:
If the barrier is less than preset value at a distance from the screen of the mobile terminal, and the optical sensor detect it is described The variation of the location status of the screen of barrier and the mobile terminal in the given time in a certain range, then described in control Scene of game execution in game class application program at the uniform velocity operates.
6. such as method described in any one of claim 1 to 5, which is characterized in that the range sensor by mobile terminal Detecting distance influence value includes:
The state of the screen of mobile terminal is detected by the gravity sensor of mobile terminal, if the state of the screen is transverse screen shape When state, then pass through the range sensor detecting distance influence value of mobile terminal.
7. a kind of device for controlling application program, which is characterized in that including:
First detection module, for being detected by the range sensor of mobile terminal during operational objective application program It is described to be used to indicate the distance between the range sensor and barrier apart from influence value apart from influence value;
Determining module, for determining the barrier at a distance from the screen of the mobile terminal apart from influence value according to described;
Control module, at a distance from the screen of the mobile terminal, controlling the target application journey according to the barrier Sequence executes and the barrier and corresponding operation at a distance from the screen of the mobile terminal.
8. device as claimed in claim 7, which is characterized in that further include:
Second detection module detects the screen of the barrier Yu the mobile terminal for the optical sensor by mobile terminal Location status, the location status includes close to state or far from state;
Correspondingly, the control module is specifically used for:
According to the barrier at a distance from the screen of the mobile terminal and the screen of the barrier and the mobile terminal The location status of curtain controls the destination application and executes and phase at a distance from the screen of the barrier and the mobile terminal Corresponding operation.
9. a kind of mobile terminal, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
CN201810554692.2A 2018-06-01 2018-06-01 Method and device for controlling application program, mobile terminal and storage medium Active CN108815840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810554692.2A CN108815840B (en) 2018-06-01 2018-06-01 Method and device for controlling application program, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810554692.2A CN108815840B (en) 2018-06-01 2018-06-01 Method and device for controlling application program, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108815840A true CN108815840A (en) 2018-11-16
CN108815840B CN108815840B (en) 2021-07-09

Family

ID=64147126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810554692.2A Active CN108815840B (en) 2018-06-01 2018-06-01 Method and device for controlling application program, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108815840B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110448901A (en) * 2018-11-20 2019-11-15 网易(杭州)网络有限公司 The control method for movement and device of virtual objects in game

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011005095A (en) * 2009-06-29 2011-01-13 Kyoraku Sangyo Kk Game machine
CN105251204A (en) * 2015-11-30 2016-01-20 华勤通讯技术有限公司 Game control method and game system
CN105635384A (en) * 2016-01-05 2016-06-01 上海卓易科技股份有限公司 Method and system for controlling mobile phone game based on mobile phone distance sensor
CN107491261A (en) * 2017-07-21 2017-12-19 广州瑞汇网络科技有限公司 The touch-control game control method and device of a kind of optional control model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011005095A (en) * 2009-06-29 2011-01-13 Kyoraku Sangyo Kk Game machine
CN105251204A (en) * 2015-11-30 2016-01-20 华勤通讯技术有限公司 Game control method and game system
CN105635384A (en) * 2016-01-05 2016-06-01 上海卓易科技股份有限公司 Method and system for controlling mobile phone game based on mobile phone distance sensor
CN107491261A (en) * 2017-07-21 2017-12-19 广州瑞汇网络科技有限公司 The touch-control game control method and device of a kind of optional control model

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110448901A (en) * 2018-11-20 2019-11-15 网易(杭州)网络有限公司 The control method for movement and device of virtual objects in game

Also Published As

Publication number Publication date
CN108815840B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
US10511778B2 (en) Method and apparatus for push interaction
KR101542625B1 (en) Method and apparatus for selecting an object within a user interface by performing a gesture
US8593398B2 (en) Apparatus and method for proximity based input
US7847786B2 (en) Multi-view display
CN107796395B (en) It is a kind of for the air navigation aid of indoor objects position, device and terminal device
CN107038455A (en) A kind of image processing method and device
CN103119628A (en) Three dimensional user interface effects on a display by using properties of motion
KR102057531B1 (en) Mobile devices of transmitting and receiving data using gesture
CN104137045A (en) User gesture recognition
CN107067455B (en) A kind of method and apparatus of real-time rendering
CN107656666A (en) Mobile terminal and rolling speed determine method
CN111144822A (en) Warehouse-out time length determining method and device, computer equipment and storage medium
WO2020211607A1 (en) Video generation method, apparatus, electronic device, and medium
CN110045829A (en) Utilize the device and method of the event of user interface
CN107656682A (en) Mobile terminal and angle of bend computational methods
US10078374B2 (en) Method and system enabling control of different digital devices using gesture or motion control
CN107690614A (en) Movement between multiple views
JP7194286B2 (en) Session creation method and terminal equipment
CN109002223A (en) A kind of touch interface display methods and mobile terminal
TWI817208B (en) Method and apparatus for determining selected target, computer device, non-transitory computer-readable storage medium, and computer program product
CN108815840A (en) A kind of method, device and mobile terminal controlling application program
CN110246561A (en) A kind of moving distance calculation method, device and system
CN112214115B (en) Input mode identification method and device, electronic equipment and storage medium
CN111310526B (en) Parameter determination method and device for target tracking model and storage medium
Yatani et al. Information transfer techniques for mobile devices by" toss" and" swing" actions

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant