CN105791576B - A kind of processing method and processing device of long-pressing physical button - Google Patents
A kind of processing method and processing device of long-pressing physical button Download PDFInfo
- Publication number
- CN105791576B CN105791576B CN201610118989.5A CN201610118989A CN105791576B CN 105791576 B CN105791576 B CN 105791576B CN 201610118989 A CN201610118989 A CN 201610118989A CN 105791576 B CN105791576 B CN 105791576B
- Authority
- CN
- China
- Prior art keywords
- long
- pressing
- self
- physical button
- shooting bar
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
Abstract
The embodiment of the invention discloses a kind of processing methods of long-pressing physical button, comprising: when the plug of self-shooting bar is inserted into mobile audio interface, receives the self-shooting bar peripheral hardware registration signal that the processing chip of the self-shooting bar is sent;Peripheral type is registered as self-shooting bar in the mobile audio interface according to the self-shooting bar peripheral hardware registration signal;In the long-pressing event for detecting physical button, the long-pressing event is shielded.In addition, the embodiment of the present invention also accordingly discloses a kind of processing unit of long-pressing physical button.Using the present invention, maloperation of the mobile terminal when installing self-shooting bar can be reduced, promotes user experience.
Description
Technical field
The present invention relates to the processing method and processing device of field of computer technology more particularly to a kind of long-pressing physical button and
A kind of processing method and processing device of the long-pressing physical button of self-shooting bar.
Background technique
With popularizing for self-shooting bar, more and more users select to use self-shooting bar when taking pictures or going on a tour.One
As the application method of self-shooting bar be all to provide mobile phone or other terminals on self-shooting bar by the shelf on self-shooting bar, so
It is taken pictures afterwards by the button or Bluetooth control button of self-shooting bar bottom or other is operated.But the terminals such as mobile phone
The buttons such as power key and volume key are generally arranged at the side of terminal, and the fixing on self-shooting bar is arranged in installation hand
It is easy to miss the key at mobile phone terminal side end by even long-pressing, so as to cause mobile phone during machine or aid mobile phone
Terminal is shut down because of maloperation or volume is by mistuning section, and this when of user may be not aware that mobile phone has carried out
Aforesaid operations.
That is, the physical button of mobile phone terminal is easy by certainly in the installation and use process of existing self-shooting bar
The mobile phone aid position of dabber is accidentally pressed, and so as to cause mobile phone terminal, misuse rate is larger during using self-shooting bar, causes
The inconvenience of user in use.
Summary of the invention
Based on this, to solve the mobile phone terminal in traditional technology during using self-shooting bar because physical button is easy
The higher technical problem of existing misuse rate is accidentally pressed by the mobile phone aid position of self-shooting bar, it is special in the first aspect of the present invention
Propose a kind of processing method of long-pressing physical button.
A kind of processing method of long-pressing physical button, comprising:
When the plug of self-shooting bar is inserted into mobile audio interface, the self-shooting bar that the processing chip of the self-shooting bar is sent is received
Peripheral hardware registration signal;
Peripheral type is registered as self-shooting bar in the mobile audio interface according to the self-shooting bar peripheral hardware registration signal;
Detect the long-pressing event of physical button;
In the long-pressing event for detecting the physical button, the long-pressing event is shielded.
Optionally, it is described detection physical button long-pressing event the step of after further include: detect the entity by
When the long-pressing event of key, it is long pressed by vibration prompting physical button.
Optionally, the method also includes: earphone plug be inserted into earphone handset audio when, if not receiving self-shooting bar
Peripheral hardware registration signal then registers peripheral type in the mobile audio interface as earphone.
Optionally, after the peripheral type registered on the acquisition mobile audio interface further include:
When the peripheral type is earphone, the long-pressing event of physical button is detected, and obtain the thing of the long-pressing event
Part parameter, the event argument include at least physical button corresponding with the long-pressing event and identify and/or press duration;
Long-pressing event processing instruction corresponding with physical button mark and the pressing duration is searched, if finding,
Then execute the long-pressing event processing instruction.
In addition, to solve the mobile phone terminal in traditional technology during using self-shooting bar because physical button is easy quilt
The higher technical problem of existing misuse rate is accidentally pressed at the mobile phone aid position of self-shooting bar, and in the second aspect of the present invention, spy is mentioned
A kind of processing unit of long-pressing physical button is gone out.
A kind of processing unit of long-pressing physical button, comprising:
Registration signal receiving module, for receiving the self-shooting bar when the plug of self-shooting bar is inserted into mobile audio interface
Processing chip send self-shooting bar peripheral hardware registration signal;
Self-shooting bar registration module, it is outer for being registered according to the self-shooting bar peripheral hardware registration signal in the mobile audio interface
If type is self-shooting bar;
Long-pressing event checking module, for detecting the long-pressing event of physical button;
Long-pressing event mask module, for shielding the long-pressing thing in the long-pressing event for detecting the physical button
Part.
Optionally, described device further includes vibration prompting module, in the long-pressing event for detecting the physical button
When, it is long pressed by vibration prompting physical button.
Optionally, described device further includes earphone registration module, for earphone plug be inserted into earphone handset audio when,
If not receiving self-shooting bar peripheral hardware registration signal, peripheral type is registered as earphone in the mobile audio interface.
Optionally, described device further includes long-pressing event processing module, is used for:
When the peripheral type is earphone, the long-pressing event of physical button is detected, and obtain the thing of the long-pressing event
Part parameter, the event argument include at least physical button corresponding with the long-pressing event and identify and/or press duration;
Long-pressing event processing instruction corresponding with physical button mark and the pressing duration is searched, if finding,
Then execute the long-pressing event processing instruction.
In the third aspect of the present invention, be solve mobile phone terminal in traditional technology during using self-shooting bar because
Physical button is easy accidentally to press the higher technical problem of existing misuse rate by the mobile phone aid position of self-shooting bar, and spy proposes one
The processing method of the long-pressing physical button of kind self-shooting bar.
A kind of processing method of the long-pressing physical button of self-shooting bar, comprising:
Whether detection self-shooting bar plug is inserted into the mobile audio interface of target mobile phones;
When detecting insertion, self-shooting bar peripheral hardware is sent to the mobile audio interface of the target mobile phones by processing chip
Registration signal, the target mobile phones register peripheral hardware class according to the self-shooting bar peripheral hardware registration signal on the mobile audio interface
Type is self-shooting bar, and the target mobile phones are obtained and infused on the mobile audio interface in the long-pressing event for detecting physical button
The peripheral type of volume shields the long-pressing event when the peripheral type is self-shooting bar.
In the fourth aspect of the present invention, be solve mobile phone terminal in traditional technology during using self-shooting bar because
Physical button is easy accidentally to press the higher technical problem of existing misuse rate by the mobile phone aid position of self-shooting bar, and spy proposes one
The processing unit of the long-pressing physical button of kind self-shooting bar.
A kind of processing unit of the long-pressing physical button of self-shooting bar, comprising:
Audio interface detection module, the mobile audio interface for whether being inserted into target mobile phones for detecting self-shooting bar plug;
Registration signal sending module, for detecting that the self-shooting bar plug is inserted into the handset audio of the target mobile phones
When interface, self-shooting bar peripheral hardware registration signal, the mesh are sent to the mobile audio interface of the target mobile phones by processing chip
Mark mobile phone registers peripheral type on the mobile audio interface according to the self-shooting bar peripheral hardware registration signal as self-shooting bar, described
Target mobile phones obtain the peripheral type registered on the mobile audio interface in the long-pressing event for detecting physical button,
When the peripheral type is self-shooting bar, the long-pressing event is shielded.
Implement the embodiment of the present invention, will have the following beneficial effects:
Using the processing method and processing device of above-mentioned long-pressing physical button, the processing of the long-pressing physical button of above-mentioned self-shooting bar
After method and device, when mobile phone terminal is connect with self-shooting bar by the audio interface of mobile phone terminal, the built-in place of self-shooting bar
It manages chip and carries out self-shooting bar registration to mobile phone terminal, so that mobile phone terminal knows that the device of audio interface of insertion mobile phone is
Self-shooting bar rather than earphone;And when mobile phone terminal is connected with self-shooting bar, if detecting, the physical button of mobile phone terminal is grown
It presses, the long press operation of the physical button is identified as maloperation, and shield the long press operation;Self-shooting bar is being used to reduce
In the case where mobile phone terminal physical button maloperation, reduce the misuse rate of mobile phone terminal, improve user experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Wherein:
Fig. 1 is a kind of flow diagram of the processing method of long-pressing physical button in one embodiment;
Fig. 2 is a kind of flow diagram of the processing method of the long-pressing physical button of self-shooting bar in one embodiment;
Fig. 3 is a kind of structural schematic diagram of the processing unit of long-pressing physical button in one embodiment;
Fig. 4 is a kind of structural schematic diagram of the processing unit of the long-pressing physical button of self-shooting bar in one embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
To solve the mobile phone terminal in traditional technology during using self-shooting bar because physical button is easy by self-timer
The higher technical problem of existing misuse rate is accidentally pressed at the mobile phone aid position of bar, and in the present embodiment, spy proposes a kind of base
In the treatment mechanism of the long-pressing physical button of self-shooting bar.The treatment mechanism of the long-pressing physical button based on self-shooting bar includes fortune
Row in mobile phone terminal a kind of long-pressing physical button processing method and run on the self-shooting bar being connected with the mobile phone terminal
A kind of processing method of the long-pressing physical button of self-shooting bar.The realization of the above method can be dependent on computer program, the calculating
Machine program can run on the computer system based on von Neumann system.
It should be noted that in the present embodiment, mobile phone terminal and self-shooting bar are by the self-shooting bar plug on self-shooting bar
And mobile phone terminal audio interface be connected.
Specifically, as shown in Figure 1, the processing method of above-mentioned long-pressing physical button includes the following steps:
Step S102: when the plug of self-shooting bar is inserted into mobile audio interface, the processing chip hair of the self-shooting bar is received
The self-shooting bar peripheral hardware registration signal sent.
It should be noted that self-timer bar apparatus sends the registration of self-shooting bar peripheral hardware firstly the need of to mobile phone before this step
Signal, specifically, as shown in Fig. 2, self-timer bar apparatus needs to be implemented following step S202- step S204:
Step S202: whether detection self-shooting bar plug is inserted into the mobile audio interface of target mobile phones;
Step S204: it when detecting insertion, is sent by processing chip to the mobile audio interface of the target mobile phones
Self-shooting bar peripheral hardware registration signal.
Specifically, self-shooting bar detects whether its included plug with other equipment establishes connection, if detecting, detection with
The equipment for establishing connection whether be mobile phone or other equipment.That is, the plug in self-shooting bar is inserted into some mobile phone
Mobile audio interface (i.e. earphone interface) when, self-shooting bar and the mobile phone, which are established, to be communicated to connect, and communication between the two is logical
The audio interface and plug for crossing mobile phone are transmitted.
When self-shooting bar detects that its included plug is inserted into the mobile audio interface of target mobile phones, generate outside self-shooting bar
If registration signal.It should be noted that self-shooting bar peripheral hardware registration signal is to be built by the processing chip of self-shooting bar to self-shooting bar
What the mobile phone of vertical connection was sent, be to send to the mobile audio interface of the mobile phone, that is to say, that self-shooting bar exists further
It detects and is connected to after mobile phone, self-shooting bar peripheral hardware registration signal is generated according to the connection, and to the above-mentioned hand being attached thereto
Machine audio interface sends above-mentioned registration information.
Therefore, after self-shooting bar executes the step S202- step S204, target mobile phones can pass through the audio interface of mobile phone
Monitor the self-shooting bar peripheral hardware registration signal that self-timer bar apparatus is sent.
Step S104: peripheral type is registered in the mobile audio interface as certainly according to the self-shooting bar peripheral hardware registration signal
Dabber.
Mobile phone parses self-shooting bar peripheral hardware registration letter after the self-shooting bar peripheral hardware registration signal for receiving self-shooting bar transmission
Relevant information in number, and with being attached thereto in the mobile audio interface registration of mobile phone according to the self-shooting bar peripheral hardware registration signal
External equipment is self-shooting bar, that is to say, that peripheral type is registered in mobile audio interface as self-shooting bar, so that mobile phone is needing
When using earphone or loudspeaker, the peripheral type registered on mobile audio interface can be obtained by the audio interface of mobile phone,
It is self-shooting bar that it is to learn insertion mobile audio interface, which is external equipment type,.
In addition, it is necessary to explanation, if when the plug of earphone is inserted into the mobile audio interface, if not receiving self-timer
Bar peripheral hardware registration signal then registers peripheral type in the mobile audio interface as earphone.
That is, when its audio interface is inserted into external equipment, it is defaulted for mobile phone for earphone, if but receiving
To external equipment registration information then according to the type of the registration information equipment external equipment.That is, in the audio of mobile phone
When interface is inserted into external equipment, if receiving the registration information of external equipment, according to registration information to the peripheral hardware of the external equipment
Type is registered, if not receiving the registration information of external equipment, according to default rule by the peripheral hardware of the external equipment
Type is registered as earphone.
Step S106: the long-pressing event of physical button is detected.
Physical button refers to being arranged in the pressable button on mobile phone terminal, such as power knob (Power key), volume
Increase and decrease button.The long-pressing event of physical button refers to that the physical button is pressed by continual for a long time, it should be noted that
In the present embodiment, long-pressing be for the flicking of physical button, again by etc. moments pressing for, for example, system can be preset
One time threshold is then judged as long-pressing when the time that physical button is pressed being more than the time threshold.In mobile phone terminal
When the physical button of upper setting is pressed and is by long pressing, mobile phone terminal can detect the long-pressing event of physical button.
Step S108: in the long-pressing event for detecting the physical button, the long-pressing event is shielded.
Because what mobile phone terminal and self-shooting bar were connected to, that is to say, that user is used or installs self-shooting bar, at this time
The long-pressing event for physical button on mobile phone terminal is determined to be self-shooting bar clamping part or the maloperation of user, therefore
The maloperation should be ignored, that is to say, that after self-timer bar apparatus is registered to mobile phone terminal in step S104, mobile phone is whole
The external equipment that connect with audio interface is thought at end, in this case, the entities of all mobile phone terminals detected of shielding by
The long-pressing event of key.
Optionally, in the present embodiment, in step S106: after the long-pressing event for detecting physical button further include: examining
When measuring the long-pressing event of physical button, it is long pressed by vibration prompting physical button.
Shield the long-pressing event of the physical button detected in step S108, but user be not aware that the entity by
Key is long pressed, therefore in the long-pressing event for detecting physical button, is long pressed by vibration prompting user subject key, from
And the position for allowing user to adjust self-shooting bar in time avoids key from being long pressed,;Also, it is further, it is used certainly in user
When dabber, it is also possible to which the case where needing some physical button of long-pressing there are user oneself, shaking mobile phone at this time can also prompt to use
Family, to inform user because mobile phone terminal is connected with self-shooting bar, the operation of the long-pressing key can be shielded.
In the present embodiment, if being inserted into external equipment in the audio interface of mobile phone and not receiving self-shooting bar peripheral hardware registration letter
Number when, that is, default the external equipment be earphone.In this case, it is also possible to detect the length of the physical button of mobile phone terminal
By event, which cannot can then ignore.
Specifically, detecting the long-pressing event of physical button, and detect described in acquisition when the peripheral type is earphone
Long-pressing event event argument, the event argument include at least physical button corresponding with the long-pressing event identify and/
Or pressing duration;Long-pressing event processing instruction corresponding with physical button mark and the pressing duration is searched, if searching
It arrives, then executes the long-pressing event processing instruction.
When mobile phone terminal detects the long-pressing event of physical button, obtain the long-pressing event and with the long-pressing event pair
The event argument answered, for example, physical button corresponding with long-pressing event or physical button mark, then for example with above-mentioned long-pressing event
Corresponding pressing duration.In the present embodiment, when system or user can be long pressed with the physical button of preset mobile phone terminal into
Capable relevant operation, for example, long-pressing Power key represents shutdown or long-pressing volume "+" key represents sound being adjusted to maximum
Deng.When detecting long-pressing event, length corresponding with above-mentioned event argument is searched in preset long-pressing event command database
Relevant operation is carried out by event processing instruction, and according to the process instruction found, that is, executes operation corresponding with long-pressing event.
In addition, to solve the mobile phone terminal in traditional technology during using self-shooting bar because physical button is easy quilt
The higher technical problem of existing misuse rate is accidentally pressed at the mobile phone aid position of self-shooting bar, in one embodiment, such as Fig. 3 institute
Show, spy proposes a kind of processing unit of long-pressing physical button, including registration signal receiving module 102, self-shooting bar registration module
104, long-pressing event checking module 106 and long-pressing event mask module 108, in which:
Registration signal receiving module 102, for receiving the self-timer when the plug of self-shooting bar is inserted into mobile audio interface
The self-shooting bar peripheral hardware registration signal that the processing chip of bar is sent;
Self-shooting bar registration module 104, for being infused according to the self-shooting bar peripheral hardware registration signal in the mobile audio interface
Volume peripheral type is self-shooting bar;
Long-pressing event checking module 106, for detecting the long-pressing event of physical button;
Long-pressing event mask module 108, for shielding the long-pressing in the long-pressing event for detecting the physical button
Event.
Optionally, in one embodiment, as shown in figure 3, the processing unit of above-mentioned long-pressing physical button further includes vibration
Cue module 110, for being long pressed by vibration prompting physical button.
Optionally, in one embodiment, as shown in figure 3, the processing unit of above-mentioned long-pressing physical button further includes earphone
Registration module 112, for earphone plug be inserted into earphone handset audio when, if not receiving self-shooting bar peripheral hardware registration signal,
Then peripheral type is registered as earphone in the mobile audio interface.
Optionally, in one embodiment, as shown in figure 3, the processing unit of above-mentioned long-pressing physical button further includes long-pressing
Event processing module 114, is used for: when the peripheral type is earphone, detecting the long-pressing event of physical button, and described in acquisition
The event argument of long-pressing event, the event argument include at least physical button corresponding with the long-pressing event identify and/or
Press duration;Long-pressing event processing instruction corresponding with physical button mark and the pressing duration is searched, if finding,
Then execute the long-pressing event processing instruction.
In addition, to solve the mobile phone terminal in traditional technology during using self-shooting bar because physical button is easy quilt
The higher technical problem of existing misuse rate is accidentally pressed at the mobile phone aid position of self-shooting bar, in one embodiment, such as Fig. 4 institute
Show, spy proposes a kind of processing unit of the long-pressing physical button of self-shooting bar, which is the device being integrated on self-shooting bar, packet
Include audio interface detection module 202 and registration signal sending module 204, in which:
Audio interface detection module 202, the mobile audio interface for whether being inserted into target mobile phones for detecting self-shooting bar plug;
Registration signal sending module 204, for detecting that the self-shooting bar plug is inserted into the mobile phone of the target mobile phones
When audio interface, self-shooting bar peripheral hardware registration signal, institute are sent to the mobile audio interface of the target mobile phones by processing chip
It states target mobile phones and peripheral type is registered on the mobile audio interface as self-shooting bar according to the self-shooting bar peripheral hardware registration signal,
The target mobile phones obtain the peripheral hardware class registered on the mobile audio interface in the long-pressing event for detecting physical button
Type shields the long-pressing event when the peripheral type is self-shooting bar.
Implement the embodiment of the present invention, will have the following beneficial effects:
Using the processing method and processing device of above-mentioned long-pressing physical button, the processing of the long-pressing physical button of above-mentioned self-shooting bar
After method and device, when mobile phone terminal is connect with self-shooting bar by the audio interface of mobile phone terminal, the built-in place of self-shooting bar
It manages chip and carries out self-shooting bar registration to mobile phone terminal, so that mobile phone terminal knows that the device of audio interface of insertion mobile phone is
Self-shooting bar rather than earphone;And when mobile phone terminal is connected with self-shooting bar, if detecting, the physical button of mobile phone terminal is grown
It presses, the long press operation of the physical button is identified as maloperation, and shield the long press operation;Self-shooting bar is being used to reduce
In the case where mobile phone terminal physical button maloperation, reduce the misuse rate of mobile phone terminal, improve user experience.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (12)
1. a kind of processing method of long-pressing physical button characterized by comprising
When the plug of self-shooting bar is inserted into mobile audio interface, the self-shooting bar peripheral hardware that the processing chip of the self-shooting bar is sent is received
Registration signal;
Peripheral type is registered as self-shooting bar in the mobile audio interface according to the self-shooting bar peripheral hardware registration signal;
Detect the long-pressing event of physical button;
In the long-pressing event for detecting the physical button, the long-pressing event is shielded.
2. the processing method of long-pressing physical button according to claim 1, which is characterized in that the detection physical button
After the step of long-pressing event further include:
In the long-pressing event for detecting the physical button, it is long pressed by vibration prompting physical button.
3. the processing method of long-pressing physical button according to claim 1, which is characterized in that the method also includes:
When the plug of earphone is inserted into earphone handset audio, if self-shooting bar peripheral hardware registration signal is not received, in the mobile phone
Audio interface registers peripheral type as earphone.
4. the processing method of long-pressing physical button according to claim 3, which is characterized in that in the mobile audio interface
After the peripheral type of upper registration further include:
When the peripheral type is earphone, the long-pressing event of physical button is detected, and obtains the event ginseng of the long-pressing event
Number, the event argument include at least physical button corresponding with the long-pressing event and identify and/or press duration;
In the case where the event argument includes at least physical button corresponding with the long-pressing event and identifies and press duration,
It searches long-pressing event processing instruction corresponding with physical button mark and the pressing duration and executes institute if finding
State long-pressing event processing instruction;
Or,
The event argument include at least physical button corresponding with the long-pressing event identify in the case where, search with it is described
Physical button identifies corresponding long-pressing event processing instruction and executes the long-pressing event processing instruction if finding;
Or,
In the case where the event argument includes at least pressing duration corresponding with the long-pressing event, search and the pressing
The corresponding long-pressing event processing instruction of duration executes the long-pressing event processing instruction if finding.
5. a kind of processing unit of long-pressing physical button characterized by comprising
Registration signal receiving module, for receiving the place of the self-shooting bar when the plug of self-shooting bar is inserted into mobile audio interface
Manage the self-shooting bar peripheral hardware registration signal that chip is sent;
Self-shooting bar registration module, for registering peripheral hardware class in the mobile audio interface according to the self-shooting bar peripheral hardware registration signal
Type is self-shooting bar;
Long-pressing event checking module, for detecting the long-pressing event of physical button;
Long-pressing event mask module, for shielding the long-pressing event in the long-pressing event for detecting the physical button.
6. the processing unit of long-pressing physical button according to claim 5, which is characterized in that described device further includes vibration
Cue module, for being long pressed by vibration prompting physical button in the long-pressing event for detecting the physical button.
7. the processing unit of long-pressing physical button according to claim 5, which is characterized in that described device further includes earphone
Registration module, for earphone plug be inserted into earphone handset audio when, if not receiving self-shooting bar peripheral hardware registration signal,
The mobile audio interface registers peripheral type as earphone.
8. the processing unit of long-pressing physical button according to claim 7, which is characterized in that described device further includes long-pressing
Event processing module is used for:
When the peripheral type is earphone, the long-pressing event of physical button is detected, and obtains the event ginseng of the long-pressing event
Number, the event argument include at least physical button corresponding with the long-pressing event and identify and/or press duration;
In the case where the event argument includes at least physical button corresponding with the long-pressing event and identifies and press duration,
It searches long-pressing event processing instruction corresponding with physical button mark and the pressing duration and executes institute if finding
State long-pressing event processing instruction;
Or,
The event argument include at least physical button corresponding with the long-pressing event identify in the case where, search with it is described
Physical button identifies corresponding long-pressing event processing instruction and executes the long-pressing event processing instruction if finding;
Or,
In the case where the event argument includes at least pressing duration corresponding with the long-pressing event, search and the pressing
The corresponding long-pressing event processing instruction of duration executes the long-pressing event processing instruction if finding.
9. a kind of processing method of the long-pressing physical button of self-shooting bar characterized by comprising
Whether detection self-shooting bar plug is inserted into the mobile audio interface of target mobile phones;
When detecting insertion, the registration of self-shooting bar peripheral hardware is sent to the mobile audio interface of the target mobile phones by processing chip
Signal, the target mobile phones according to the self-shooting bar peripheral hardware registration signal registered on the mobile audio interface peripheral type as
Self-shooting bar, the target mobile phones are obtained and are registered on the mobile audio interface in the long-pressing event for detecting physical button
Peripheral type shields the long-pressing event when the peripheral type is self-shooting bar.
10. a kind of processing unit of the long-pressing physical button of self-shooting bar characterized by comprising
Audio interface detection module, the mobile audio interface for whether being inserted into target mobile phones for detecting self-shooting bar plug;
Registration signal sending module, for detecting that the self-shooting bar plug is inserted into the mobile audio interface of the target mobile phones
When, self-shooting bar peripheral hardware registration signal, the target hand are sent to the mobile audio interface of the target mobile phones by processing chip
Machine registers peripheral type on the mobile audio interface according to the self-shooting bar peripheral hardware registration signal as self-shooting bar, the target
Mobile phone obtains the peripheral type registered on the mobile audio interface, described in the long-pressing event for detecting physical button
When peripheral type is self-shooting bar, the long-pressing event is shielded.
11. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium is stored with calculating
Machine program, the computer program is for instructing related hardware, to complete method described in Claims 1-4 any one.
12. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium is stored with calculating
Machine program, the computer program is for instructing related hardware, to complete method as claimed in claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610118989.5A CN105791576B (en) | 2016-03-01 | 2016-03-01 | A kind of processing method and processing device of long-pressing physical button |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610118989.5A CN105791576B (en) | 2016-03-01 | 2016-03-01 | A kind of processing method and processing device of long-pressing physical button |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105791576A CN105791576A (en) | 2016-07-20 |
CN105791576B true CN105791576B (en) | 2019-03-15 |
Family
ID=56386919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610118989.5A Active CN105791576B (en) | 2016-03-01 | 2016-03-01 | A kind of processing method and processing device of long-pressing physical button |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105791576B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108445695A (en) * | 2018-03-30 | 2018-08-24 | 广东电网有限责任公司 | A kind of nameplate acquisition camera pole |
CN108803407B (en) * | 2018-04-13 | 2021-02-26 | 浙江绍兴苏泊尔生活电器有限公司 | Cooking utensil |
CN108720780A (en) * | 2018-04-28 | 2018-11-02 | 佛山市顺德区美的洗涤电器制造有限公司 | Key control method and device, dish-washing machine |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268196A (en) * | 2013-04-28 | 2013-08-28 | 广东欧珀移动通信有限公司 | Method and device for preventing misoperations |
CN104980586A (en) * | 2015-06-26 | 2015-10-14 | 努比亚技术有限公司 | Control method and device of terminal physical button |
CN105025560A (en) * | 2015-07-28 | 2015-11-04 | 广东欧珀移动通信有限公司 | Method, mobile terminal and system for using selfie stick-locking device to reduce power consumption |
CN105022499A (en) * | 2015-07-16 | 2015-11-04 | 广东欧珀移动通信有限公司 | Physical press key response method of mobile terminal and physical press key response device of mobile terminal |
CN105120388A (en) * | 2015-08-12 | 2015-12-02 | 青岛海信移动通信技术股份有限公司 | Identification method and device of selfie stick |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9259077B2 (en) * | 2011-05-26 | 2016-02-16 | Johnny Rhymes With Connie, Llc | Elastic securing apparatus and mounting system for electronic device |
-
2016
- 2016-03-01 CN CN201610118989.5A patent/CN105791576B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268196A (en) * | 2013-04-28 | 2013-08-28 | 广东欧珀移动通信有限公司 | Method and device for preventing misoperations |
CN104980586A (en) * | 2015-06-26 | 2015-10-14 | 努比亚技术有限公司 | Control method and device of terminal physical button |
CN105022499A (en) * | 2015-07-16 | 2015-11-04 | 广东欧珀移动通信有限公司 | Physical press key response method of mobile terminal and physical press key response device of mobile terminal |
CN105025560A (en) * | 2015-07-28 | 2015-11-04 | 广东欧珀移动通信有限公司 | Method, mobile terminal and system for using selfie stick-locking device to reduce power consumption |
CN105120388A (en) * | 2015-08-12 | 2015-12-02 | 青岛海信移动通信技术股份有限公司 | Identification method and device of selfie stick |
Also Published As
Publication number | Publication date |
---|---|
CN105791576A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6316987B2 (en) | Method, apparatus, terminal device, program, and recording medium for realizing touch button and fingerprint recognition | |
CN104318741B (en) | Bluetooth equipment control method and device | |
JP6154979B2 (en) | Method, apparatus, electronic device, program, and recording medium for controlling state of terminal screen | |
CN104158722B (en) | For light information push method, device, terminal and the server applied | |
US20150373083A1 (en) | Electronic devices for, a system and a method of controlling one of the electronic devices | |
CN108319886B (en) | Fingerprint identification method and device | |
JP2017537414A (en) | Fingerprint authentication method and apparatus, program and recording medium | |
RU2647638C2 (en) | Fingerprint identification method and apparatus, and mobile terminal | |
CN105791576B (en) | A kind of processing method and processing device of long-pressing physical button | |
CN104571498A (en) | Application program starting method | |
CN104168385B (en) | Double card changing method and device | |
CN105246074A (en) | Method and device for establishing connections | |
CN105516488A (en) | Information reminding method, information reminding apparatus, and terminal | |
CN106022058A (en) | Fingerprint unlocking method and terminal | |
RU2665300C2 (en) | Method and device for processing point reporting of touch screen | |
CN107958239B (en) | Fingerprint identification method and device | |
CN105657690A (en) | Method and device for processing mobile terminal setting information | |
CN106205657B (en) | A kind of lyric display method and device | |
CN105700669A (en) | Terminal application execution method, wearable device and user terminal | |
CN104536781A (en) | Terminal | |
CN102866834A (en) | Communication system, display control device, mobile terminal and display state control method thereof | |
KR101737638B1 (en) | Device and method for transmitting data in wireless terminal | |
WO2015051742A1 (en) | Method and device for automatically implementing wireless connection between devices | |
CN109947520B (en) | Webpage control processing method, device, equipment and storage medium | |
KR20170047301A (en) | Terminal, terminal control device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |