CN103927101A - Method and device for controlling ActiveX - Google Patents
Method and device for controlling ActiveX Download PDFInfo
- Publication number
- CN103927101A CN103927101A CN201410119853.7A CN201410119853A CN103927101A CN 103927101 A CN103927101 A CN 103927101A CN 201410119853 A CN201410119853 A CN 201410119853A CN 103927101 A CN103927101 A CN 103927101A
- Authority
- CN
- China
- Prior art keywords
- control
- alternative
- rocker
- selecting
- determined
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000004044 response Effects 0.000 claims description 28
- 230000009471 action Effects 0.000 claims description 10
- 238000001514 detection method Methods 0.000 claims description 4
- 210000003813 thumb Anatomy 0.000 abstract description 12
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 9
- 101000674728 Homo sapiens TGF-beta-activated kinase 1 and MAP3K7-binding protein 2 Proteins 0.000 description 6
- 102100021227 TGF-beta-activated kinase 1 and MAP3K7-binding protein 2 Human genes 0.000 description 6
- 101000674731 Homo sapiens TGF-beta-activated kinase 1 and MAP3K7-binding protein 1 Proteins 0.000 description 5
- 102100021228 TGF-beta-activated kinase 1 and MAP3K7-binding protein 1 Human genes 0.000 description 5
- 210000003811 finger Anatomy 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 229910003460 diamond Inorganic materials 0.000 description 1
- 239000010432 diamond Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to a method and a device for controlling ActiveX and belongs to the technical field of touch control. The method includes: displaying a rocker with at least two direction keys on an interface; when triggering operation in the direction indicated by optional direction key of the rocker is detected, determining the alternative ActiveX corresponding to the direction indicated by the direction key; selecting one ActiveX from the determined alternative ActiveX according preset rules; setting the selected ActiveX in a selected state. The device comprises a display module, a detecting module, a selecting module and a setting module. The method and the device have the advantages that ActiveX operation based on the rocker is achieved, the problem of thumb blind area in single-hand operation can be solved, no blind areas exist in the interface, the method and the method are applicable to simple and complex interfaces, single-hand operation flexibility is increased greatly, application is facilitated, and wide application is achieved.
Description
Technical Field
The present disclosure relates to the field of touch technologies, and in particular, to a method and an apparatus for operating a control.
Background
Touch screen technology is rapidly developing, so that more and more intelligent terminals support touch screen operation. The touch screen is widely applied to the fields of smart phones, tablet computers, large-size touch display screens, touch virtual keyboards and the like. Due to the fact that the large screen brings good experience in reading and video, the smart phone with higher resolution and larger size is continuously released in the field of the smart device. However, this is accompanied by an increasing difficulty of one-handed operation.
At present, there is a drop-down hovering technology, when a finger cannot touch the list content at the top of a screen, as long as any position of a dragged list slides downwards, the top content can be pulled downwards for a certain distance, and when a HOLD character appears at the top, the finger is released, and the list can stay at the current position to wait for clicking.
However, the pull-down hovering technology can only solve the single-hand operation in the form of a pull-down list, cannot be applied to a complex interface, and cannot solve the problem of the blind area of the thumb in the single-hand operation.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for operating a control, so as to improve the flexibility of single-handed operation and solve the problem of thumb blind area.
According to a first aspect of the embodiments of the present disclosure, there is provided a method of operating a control, the method including:
displaying a rocker with at least two direction keys on an interface;
when the rocker is detected to generate triggering operation in the direction indicated by any direction key, determining an alternative control corresponding to the direction indicated by the direction key;
selecting a control from the determined alternative controls according to a preset rule;
and setting the selected control to be in a selected state.
Wherein the method further comprises:
setting a control on the interface as a default control;
selecting one control from the determined alternative controls according to a preset rule, comprising:
and selecting the control with the shortest distance to the default control from the determined alternative controls according to the distance between the default control and each determined alternative control.
Wherein, the selecting a control from the determined alternative controls according to a preset rule includes:
for each alternative control, determining the priority of the alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control;
and selecting the alternative control with the highest priority from all the determined alternative controls.
Wherein, for each alternative control, determining the priority of the alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control comprises:
calculating the priority of each alternative control according to the following formula:
P=D×K1+N×K2;
p is the priority of the alternative control, D is the distance from the alternative control to the rocker, N is the using frequency of the alternative control, and K1 and K2 are preset coefficients.
Wherein the method further comprises:
after the selected control is set to be in the selected state, executing response operation corresponding to clicking the selected control by default; or,
and after the selected control is set to be in the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
Wherein the method further comprises:
when the condition that the direction key is dragged is detected, the rocker and the at least two direction keys are moved together along the dragged direction until the dragging action is finished.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for operating a control, the apparatus comprising:
the display module is used for displaying a rocker with at least two direction keys on the interface;
the detection module is used for determining an alternative control corresponding to the direction indicated by the direction key when the rocker is detected to generate triggering operation in the direction indicated by any direction key;
the selection module is used for selecting one control from the determined alternative controls according to a preset rule;
and the setting module is used for setting the selected control to be in a selected state.
Wherein the apparatus further comprises:
the default module is used for setting a control on the interface as a default control;
the selection module comprises:
and the first selection unit is used for selecting the control with the shortest distance to the default control from the determined alternative controls according to the distance between the default control and each determined alternative control.
Wherein the selection module comprises:
the second selection unit is used for determining the priority of each alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control; and selecting the alternative control with the highest priority from all the determined alternative controls.
Wherein the second selection unit includes:
a calculating subunit, configured to calculate the priority of each candidate control according to the following formula:
P=D×K1+N×K2;
p is the priority of the alternative control, D is the distance from the alternative control to the rocker, N is the using frequency of the alternative control, and K1 and K2 are preset coefficients.
Wherein the apparatus further comprises:
the response module is used for executing response operation corresponding to clicking the selected control by default after the selected control is set to be in the selected state; or after the selected control is set to be in the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
Wherein the apparatus further comprises:
and the moving module is used for moving the rocker and the at least two direction keys together along the dragged direction until the dragging action is finished when the direction key is detected to be dragged.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for operating a control, the apparatus comprising:
a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to:
displaying a rocker with at least two direction keys on an interface;
when detecting that the trigger operation is generated in the direction indicated by any direction key of the rocker, determining an alternative control corresponding to the direction indicated by the direction key;
selecting a control from the determined alternative controls according to a preset rule;
and setting the selected control to be in a selected state.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of determining alternative controls corresponding to the direction indicated by the direction keys when detecting that the rocker generates triggering operation in the direction indicated by any direction key by displaying the rocker with at least two direction keys on an interface, selecting one control from the determined alternative controls according to a preset rule, and setting the selected control to be in a selected state, so that the operation of the control based on the rocker is realized, the problem of thumb blind areas in one-hand operation can be solved, no blind area exists on the interface, the method is applicable to both simple interfaces and complex interfaces, the flexibility of one-hand operation is greatly improved, and the method is convenient for users to use and wide in application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of operating a control in accordance with an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating a rocker and directional keys in accordance with an exemplary embodiment.
FIG. 3 is a flow diagram illustrating another method of operating a control in accordance with an exemplary embodiment.
FIG. 4 is a diagram illustrating selection of a control that is closest in distance in accordance with an exemplary embodiment.
FIG. 5 is a flow diagram illustrating yet another method of operating a control in accordance with an exemplary embodiment.
FIG. 6 is a diagram illustrating selection of a highest priority control, according to an exemplary embodiment.
FIG. 7 is a schematic diagram illustrating an apparatus for operating a control in accordance with an illustrative embodiment.
FIG. 8 is a block diagram illustrating an apparatus for operating a control in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for operating a control according to an exemplary embodiment, where the method for operating the control is used in a terminal, as shown in fig. 1, and includes the following steps:
in step S11, a jog dial having at least two direction keys is displayed on the interface.
The shape and size of the rocker are not limited, and the shape can be circular, square, triangular and the like. The shape, size and number of the direction keys are not limited, for example, the shape may be a triangle, a diamond, an arrow, etc., and the number may be 4, 5, 8, 10 or 11, etc., which is not specifically limited in this embodiment.
And after the terminal detects that the rocker displays the trigger instruction, displaying the rocker on the interface. For example, when the user holds the terminal most naturally and comfortably with the thumb, the terminal screen detects the touch signal where the stick is displayed. For another example, when a predetermined click button or a predetermined interface area is detected, the joystick is displayed at a predetermined position. When the rocker is displayed, the position of the rocker on the interface may be the most natural and comfortable position of the thumb when the user operates with one hand by default, and of course, the position may be set to other positions, which is not specifically limited in this embodiment.
In addition, the rocker and the direction keys can be displayed on the interface in a suspension mode, and certain transparency can be set, so that the original contents on the interface can not be checked by a user. The rocker and the direction keys are relatively fixed, the direction keys can be arranged around the rocker and can be uniformly distributed, for example, 4 direction keys, namely an upper direction key, a lower direction key, a left direction key and a right direction key, are respectively arranged.
For example, referring to FIG. 2, a schematic illustration of an exemplary rocker and arrow key is shown. The rocker is circular, 8 triangular direction keys are uniformly arranged on the periphery of the rocker, the rocker and the direction keys are displayed on the interface in a suspended mode and are in a semitransparent state, and therefore the user can not be influenced to view other contents on the interface.
In the present embodiment, when the direction keys are arranged around the rocker, the range of motion of the rocker is the range surrounded by these direction keys. The rocker can be located at the central position of the range initially, the rocker can be dragged randomly in the range, but cannot exceed the range, and when dragging is finished, the rocker can reset to the central position.
In step S12, when it is detected that the rocker has a trigger operation in any direction indicated by the direction key, the candidate control corresponding to the direction indicated by the direction key is determined.
In this embodiment, the triggering operation may be any operation, such as a sliding operation, a dragging operation, and the like, which is not specifically limited in this embodiment.
In step S13, a control is selected from the determined candidate controls according to a preset rule.
The direction indicated by the direction key may be one or multiple alternative controls corresponding to the direction. When only one alternative control is determined, the alternative control is directly selected. And when a plurality of determined undesired controls exist, selecting one alternative control from the undesired controls according to a preset rule.
In step S14, the selected control is set to the selected state.
In the embodiment, one control is selected by operating the rocker, so that the operation of a user is facilitated, especially, the operation of the user with one hand is more convenient, when the control to be selected is far away from the finger, the control can be selected by operating the rocker with the finger, and the flexibility is greatly improved. Of course, in this embodiment, the user may also select the control directly with a finger, which is not described herein.
In this embodiment, the method may further include: setting a control on the interface as a default control; correspondingly, selecting one control from the determined alternative controls according to a preset rule may include:
and selecting the control with the shortest distance to the default control from the determined alternative controls according to the distance between the default control and each determined alternative control.
In this embodiment, selecting one control from the determined alternative controls according to a preset rule may include:
for each alternative control, determining the priority of the alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control; and selecting the alternative control with the highest priority from the determined alternative controls.
In the embodiment, for each alternative control, the priority of the alternative control is determined according to the distance between the alternative control and the rocker and the use frequency of the alternative control; selecting the candidate control with the highest priority from the determined candidate controls may include:
the priority of each alternative control is calculated according to the following formula: p = D × K1+ N × K2; p is the priority of the alternative control, D is the distance from the alternative control to the rocker, N is the using frequency of the alternative control, and K1 and K2 are preset coefficients.
In this embodiment, the method may further include:
after the selected control is set to be in the selected state, executing response operation corresponding to clicking the selected control by default; or after the selected control is set to be in the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
In this embodiment, the method may further include:
when the condition that the direction key is dragged is detected, the rocker and the at least two direction keys are moved together along the dragged direction until the dragging action is finished.
In this embodiment, the display and the hiding of the joystick may be implemented by corresponding setting options, for example, selecting a certain option in the setting menu to display the joystick, and hiding the joystick by not selecting the option, or the like, which may be implemented in other manners, and this embodiment is not particularly limited thereto.
According to the method provided by the embodiment, the rocker with at least two direction keys is displayed on the interface, when the rocker is detected to generate the trigger operation in the direction indicated by any direction key, the alternative control corresponding to the direction indicated by the direction key is determined, one control is selected from the determined alternative controls according to the preset rule, and the selected control is set to be in the selected state, so that the operation of the control based on the rocker is realized, the problem of the blind zone of the thumb in the single-hand operation can be solved, the blind zone does not exist on the interface, the method is applicable to both simple interfaces and complex interfaces, the flexibility of the single-hand operation is greatly improved, the use by a user is facilitated, and the method is wide in application.
Fig. 3 is a flowchart illustrating a method of operating a control, which is used in a terminal as shown in fig. 3, according to an exemplary embodiment.
In step S31, a jog dial having at least two direction keys is displayed on the interface.
In this embodiment, after the joystick and the direction keys are displayed, one control on the interface is set as a default control. The default control may be set in advance, and the most commonly used control on the interface may be generally set as the default control, or other rules may be used to set the default control, which is not limited herein. The default control may be set in a highlighted or frame-selected form, and the present embodiment is not particularly limited thereto.
In step S32, when it is detected that the rocker has a trigger operation in any direction indicated by the direction key, the candidate control corresponding to the direction indicated by the direction key is determined.
In step S33, a control with the shortest distance to the default control is selected from the determined candidate controls according to the distance between the default control and each of the determined candidate controls.
In this embodiment, the initial position of the rocker is equivalent to the position of the default control, and the drag operation on the rocker is equivalent to a selection operation along the drag direction with the default control as the center.
In this embodiment, the distance between the determined alternative control and the default control may be calculated in various ways, including but not limited to: calculating a distance between center points of the controls, or calculating a distance between edge points of the controls, and the like, which is not specifically limited in this embodiment. The control with the shortest distance is selected to be more accordant with the operation habit of the user, is easier to be accepted by the user, and can improve the satisfaction degree of the user.
In step S34, the selected control is set to the selected state.
For example, referring to fig. 4, the default control on the interface is TAB2, and when the joystick is dragged along the direction key at the upper left corner, 2 controls in the direction of the upper left corner of the TAB2 control are determined, including: and the TAB1 and the OPTION1 respectively calculate the distance between the TAB1 and the TAB2 and the distance between the OPTION1 and the TAB2, select the control TAB1 with the closest distance, and set the TAB1 to be in a selected state. After the TAB1 is selected, the joystick returns to the center of the 8 arrow keys for the next operation.
In this embodiment, the method may further include:
after the selected control is set to be in the selected state, executing response operation corresponding to clicking the selected control by default; or,
and after the selected control is set to be in the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
The response operation is a response operation corresponding to the control, which is a function already set in each application, for example, an operation of entering a next-level sub-menu, or popping up a sub-window, or entering an editing state, and the like may be performed, which is not described herein again.
And the response operation corresponding to clicking the selected control is executed by directly defaulting, so that the operation times of the user can be saved, and the efficiency is improved. After the selected control is set to be in the selected state, the selected control is detected to be clicked, corresponding response operation is executed, and the user can confirm the response operation again to avoid misoperation of the user, so that the operation accuracy is improved.
In this embodiment, the method may further include:
when the condition that the direction key is dragged is detected, the rocker and the at least two direction keys are moved together along the dragged direction until the dragging action is finished.
The rocker and the direction key can be moved to any position on the screen according to the needs of a user by dragging the direction key, and the relative positions of the rocker and the direction key are unchanged in the moving process, for example, the rocker is always positioned at the central position of the range limited by the direction key.
According to the method provided by the embodiment, the rocker with at least two direction keys is displayed on the interface, when the rocker is detected to generate the trigger operation in the direction indicated by any direction key, the alternative control corresponding to the direction indicated by the direction key is determined, the control with the shortest distance to the default control is selected from the determined alternative controls according to the distance between the default control and each determined alternative control, and the selected control is set to be in the selected state, so that the operation of the control based on the rocker is realized, the problem of the blind area of the thumb in the single-hand operation can be solved, the blind area does not exist on the interface, the method is applicable to both a simple interface and a complex interface, the flexibility of the single-hand operation is greatly improved, the use by a user is convenient, and the method is wide in application.
Fig. 5 is a flowchart illustrating a method of operating a control, which is used in a terminal as shown in fig. 5, according to an exemplary embodiment.
In step S51, a jog dial having at least two direction keys is displayed on the interface.
In step S52, when it is detected that the rocker has a trigger operation in any direction indicated by the direction key, the candidate control corresponding to the direction indicated by the direction key is determined.
In this embodiment, the control corresponding to the direction indicated by the direction key is centered on the currently selected control on the interface, and the currently selected control may be the control selected by the user operating the rocker last time, or may also be the control selected by default initially, and the control is centered on the control to determine which controls are in the direction indicated by the direction key.
In step S53, for each candidate control, determining a priority of the candidate control according to a distance between the candidate control and the joystick and a frequency of use of the candidate control.
In this embodiment, the distance between the alternative control and the rocker may be a distance between a center point of the alternative control and a center point of the rocker, or a distance between an edge point of the alternative control and an edge point of the rocker, and the like, which is not specifically limited in this embodiment. The use frequency of the alternative control is the number of times that the alternative control is used on the current interface within a specified time, and is obtained by statistics according to the actual use condition of the user within a period of time.
For each alternative control, determining the priority of the alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control may include:
the priority of each alternative control is calculated according to the following formula:
P=D×K1+N×K2;
and P is the priority of the alternative control, D is the distance from the alternative control to the rocker, N is the use frequency of the alternative control, and K1 and K2 are preset coefficients. The values of K1 and K2 may be preset, and this embodiment is not specifically limited in this respect.
In step S54, the highest priority control is selected among the determined candidate controls.
After the priorities of all the determined alternative controls are calculated, the alternative control with the highest priority can be regarded as the alternative control with the highest probability of being selected by the user, and therefore the alternative control is selected to improve the satisfaction degree of the user and better provide service for the user. Of course, if the alternative control with the highest priority is not the control required by the user, the user may continue to drag the joystick and perform the next control selection according to the dragging direction.
In step S55, the selected control is set to the selected state.
For example, referring to fig. 6, when the currently selected control on the interface is TAB2, and the direction key along the lower left corner drags the joystick, 6 controls in the lower left corner direction of the TAB2 control are determined, including: and the priority levels of the ICON1 to the ICON6 are respectively calculated by the ICON1 to the ICON6, the control ICON1 with the highest priority level is selected, and the ICON1 is set to be in a selected state. After ICON1 is selected, the joystick returns to the center of the 8 arrow keys for the next operation.
In this embodiment, the method may further include:
after the selected control is set to be in the selected state, executing response operation corresponding to clicking the selected control by default; or after the selected control is set to be in the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
The response operation is a response operation corresponding to the control, which is described in detail in the foregoing embodiments and is not described herein again.
In this embodiment, the method may further include:
when the condition that the direction key is dragged is detected, the rocker and the at least two direction keys are moved together along the dragged direction until the dragging action is finished.
The movement operation of the rocker and the direction key can be realized by dragging the direction key, which is described in the above embodiments and is not repeated here.
According to the method provided by the embodiment, the rocker with at least two direction keys is displayed on the interface, when the rocker is detected to generate the trigger operation in the direction indicated by any direction key, the alternative control corresponding to the direction indicated by the direction key is determined, for each alternative control, the priority of the alternative control is determined according to the distance between the alternative control and the rocker and the use frequency of the alternative control, the control with the highest priority is selected from the determined alternative controls, and the selected control is set to be in the selected state, so that the operation of the control based on the rocker is realized, the problem of the thumb blind area in the one-hand operation can be solved, the blind area does not exist on the interface, the method is applicable to both simple interfaces and complex interfaces, the flexibility of the one-hand operation is greatly improved, the use by a user is facilitated, and the application range is wide.
FIG. 7 is an apparatus diagram illustrating an operational control in accordance with an exemplary embodiment. Referring to fig. 7, the apparatus includes a display module 71, a detection module 72, a selection module 73, and a setting module 74.
The display module 71 is configured to display a joystick having at least two direction keys on an interface;
the detection module 72 is configured to determine an alternative control corresponding to a direction indicated by any one of the direction keys when detecting that the rocker generates a trigger operation in the direction indicated by the direction key;
the selecting module 73 is configured to select one control from the determined alternative controls according to a preset rule;
the setting module 74 is configured to set the selected control to a selected state.
In this embodiment, in one mode, the apparatus further includes:
the default module is used for setting a control on the interface as a default control;
the selection module 73 may include:
and the first selection unit is configured to select the control which is the shortest distance from the default control from the determined alternative controls according to the distance between the default control and each determined alternative control.
In this embodiment, in another manner, the selecting module 73 may include:
the second selection unit is configured to determine the priority of the alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control for each alternative control; and selecting the alternative control with the highest priority from all the determined alternative controls.
In this embodiment, the second selecting unit may include:
a calculating subunit configured to calculate the priority of each alternative control according to the following formula:
P=D×K1+N×K2;
p is the priority of the alternative control, D is the distance from the alternative control to the rocker, N is the using frequency of the alternative control, and K1 and K2 are preset coefficients.
In this embodiment, the apparatus may further include:
the response module is configured to execute a response operation corresponding to clicking the selected control by default after the selected control is set to be in the selected state; or after the selected control is set to the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
In this embodiment, the apparatus may further include:
and the moving module is configured to move the rocker and the at least two direction keys together along the dragged direction until the dragging action is finished when the direction key is detected to be dragged.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the device provided by the embodiment, the rocker with at least two direction keys is displayed on the interface, when the rocker is detected to generate the trigger operation in the direction indicated by any direction key, the alternative control corresponding to the direction indicated by the direction key is determined, one control is selected from the determined alternative controls according to the preset rule, and the selected control is set to be in the selected state, so that the operation of the control based on the rocker is realized, the problem of the blind area of the thumb in the single-hand operation can be solved, the blind area does not exist on the interface, and the device is applicable to both simple interfaces and complex interfaces, so that the flexibility of the single-hand operation is greatly improved, and the device is convenient for users to use and is wide in application.
The embodiment of the present disclosure further provides a device for operating a control, including:
a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to:
displaying a rocker with at least two direction keys on an interface; when detecting that the rocker generates a trigger operation in the direction indicated by any direction key, determining an alternative control corresponding to the direction indicated by the direction key; selecting a control from the determined alternative controls according to a preset rule; setting the selected control to a selected state.
Fig. 8 is a block diagram illustrating an apparatus 800 for operating a control in accordance with an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
According to the device provided by the embodiment, the rocker with at least two direction keys is displayed on the interface, when the rocker is detected to generate the trigger operation in the direction indicated by any direction key, the alternative control corresponding to the direction indicated by the direction key is determined, one control is selected from the determined alternative controls according to the preset rule, and the selected control is set to be in the selected state, so that the operation of the control based on the rocker is realized, the problem of the blind area of the thumb in the single-hand operation can be solved, the blind area does not exist on the interface, and the device is applicable to both simple interfaces and complex interfaces, so that the flexibility of the single-hand operation is greatly improved, and the device is convenient for users to use and is wide in application.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of operating a control, the method comprising:
displaying a rocker with at least two direction keys on an interface;
when the rocker is detected to generate triggering operation in the direction indicated by any direction key, determining an alternative control corresponding to the direction indicated by the direction key;
selecting a control from the determined alternative controls according to a preset rule;
and setting the selected control to be in a selected state.
Wherein the method further comprises: setting a control on the interface as a default control;
selecting one control from the determined alternative controls according to a preset rule, comprising:
and selecting the control with the shortest distance to the default control from the determined alternative controls according to the distance between the default control and each determined alternative control.
Wherein, the selecting a control from the determined alternative controls according to a preset rule includes:
for each alternative control, determining the priority of the alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control;
and selecting the alternative control with the highest priority from all the determined alternative controls.
Wherein, for each alternative control, determining the priority of the alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control comprises:
calculating the priority of each alternative control according to the following formula:
P=D×K1+N×K2;
p is the priority of the alternative control, D is the distance from the alternative control to the rocker, N is the using frequency of the alternative control, and K1 and K2 are preset coefficients.
Wherein the method further comprises:
after the selected control is set to be in the selected state, executing response operation corresponding to clicking the selected control by default; or,
and after the selected control is set to be in the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
Wherein the method further comprises:
when the condition that the direction key is dragged is detected, the rocker and the at least two direction keys are moved together along the dragged direction until the dragging action is finished.
According to the non-transitory computer-readable storage medium provided by the embodiment, the rocker with at least two direction keys is displayed on the interface, when the rocker is detected to generate the trigger operation in the direction indicated by any direction key, the alternative control corresponding to the direction indicated by the direction key is determined, one control is selected from the determined alternative controls according to the preset rule, and the selected control is set to be in the selected state, so that the operation of the control based on the rocker is realized, the problem of the blind area of the thumb in the one-hand operation can be solved, the blind area does not exist on the interface, the interface is applicable to both a simple interface and a complex interface, the flexibility of the one-hand operation is greatly improved, the use by a user is facilitated, and the application range is wide.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (13)
1. A method of operating a control, the method comprising:
displaying a rocker with at least two direction keys on an interface;
when the rocker is detected to generate triggering operation in the direction indicated by any direction key, determining an alternative control corresponding to the direction indicated by the direction key;
selecting a control from the determined alternative controls according to a preset rule;
and setting the selected control to be in a selected state.
2. The method of claim 1, further comprising:
setting a control on the interface as a default control;
selecting one control from the determined alternative controls according to a preset rule, comprising:
and selecting the control with the shortest distance to the default control from the determined alternative controls according to the distance between the default control and each determined alternative control.
3. The method according to claim 1, wherein the selecting one of the determined alternative controls according to a preset rule comprises:
for each alternative control, determining the priority of the alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control;
and selecting the alternative control with the highest priority from all the determined alternative controls.
4. The method of claim 3, wherein the determining, for each alternative control, the priority of the alternative control according to the distance of the alternative control from the joystick and the frequency of use of the alternative control comprises:
calculating the priority of each alternative control according to the following formula:
P=D×K1+N×K2;
p is the priority of the alternative control, D is the distance from the alternative control to the rocker, N is the using frequency of the alternative control, and K1 and K2 are preset coefficients.
5. The method of claim 1, further comprising:
after the selected control is set to be in the selected state, executing response operation corresponding to clicking the selected control by default; or,
and after the selected control is set to be in the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
6. The method of claim 1, further comprising:
when the condition that the direction key is dragged is detected, the rocker and the at least two direction keys are moved together along the dragged direction until the dragging action is finished.
7. An apparatus for operating a control, the apparatus comprising:
the display module is used for displaying a rocker with at least two direction keys on the interface;
the detection module is used for determining an alternative control corresponding to the direction indicated by the direction key when the rocker is detected to generate triggering operation in the direction indicated by any direction key;
the selection module is used for selecting one control from the determined alternative controls according to a preset rule;
and the setting module is used for setting the selected control to be in a selected state.
8. The apparatus of claim 7, further comprising:
the default module is used for setting a control on the interface as a default control;
the selection module comprises:
and the first selection unit is used for selecting the control with the shortest distance to the default control from the determined alternative controls according to the distance between the default control and each determined alternative control.
9. The apparatus of claim 7, wherein the selection module comprises:
the second selection unit is used for determining the priority of each alternative control according to the distance between the alternative control and the rocker and the use frequency of the alternative control; and selecting the alternative control with the highest priority from all the determined alternative controls.
10. The apparatus of claim 9, wherein the second selecting unit comprises:
a calculating subunit, configured to calculate the priority of each candidate control according to the following formula:
P=D×K1+N×K2;
p is the priority of the alternative control, D is the distance from the alternative control to the rocker, N is the using frequency of the alternative control, and K1 and K2 are preset coefficients.
11. The apparatus of claim 7, further comprising:
the response module is used for executing response operation corresponding to clicking the selected control by default after the selected control is set to be in the selected state; or after the selected control is set to be in the selected state, if the selected control is detected to be clicked, executing corresponding response operation.
12. The apparatus of claim 7, further comprising:
and the moving module is used for moving the rocker and the at least two direction keys together along the dragged direction until the dragging action is finished when the direction key is detected to be dragged.
13. An apparatus for operating a control, the apparatus comprising:
a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to:
displaying a rocker with at least two direction keys on an interface;
when detecting that the trigger operation is generated in the direction indicated by any direction key of the rocker, determining an alternative control corresponding to the direction indicated by the direction key;
selecting a control from the determined alternative controls according to a preset rule;
and setting the selected control to be in a selected state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410119853.7A CN103927101B (en) | 2014-03-27 | 2014-03-27 | The method and apparatus of operational controls |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410119853.7A CN103927101B (en) | 2014-03-27 | 2014-03-27 | The method and apparatus of operational controls |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103927101A true CN103927101A (en) | 2014-07-16 |
CN103927101B CN103927101B (en) | 2016-10-19 |
Family
ID=51145341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410119853.7A Active CN103927101B (en) | 2014-03-27 | 2014-03-27 | The method and apparatus of operational controls |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103927101B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104436657A (en) * | 2014-12-22 | 2015-03-25 | 青岛烈焰畅游网络技术有限公司 | Method and device for controlling game and electronic equipment |
CN105389104A (en) * | 2015-07-14 | 2016-03-09 | 魅族科技(中国)有限公司 | Application interface control controlling method and related equipment |
CN105404448A (en) * | 2015-12-30 | 2016-03-16 | 小米科技有限责任公司 | One-handed operation method and device |
CN106662881A (en) * | 2016-09-26 | 2017-05-10 | 深圳市大疆创新科技有限公司 | Control method, system and user terminal for unmanned aircraft |
CN107092410A (en) * | 2016-02-24 | 2017-08-25 | 口碑控股有限公司 | Interface alternation method, equipment and the intelligent terminal of a kind of touch-screen |
WO2019179052A1 (en) * | 2018-03-18 | 2019-09-26 | 平安科技(深圳)有限公司 | Button self-adaptive method and device, mobile terminal and storage medium |
CN110471587A (en) * | 2019-07-17 | 2019-11-19 | 深圳传音控股股份有限公司 | Exchange method, interactive device, terminal and computer readable storage medium |
CN111870945A (en) * | 2020-08-10 | 2020-11-03 | 网易(杭州)网络有限公司 | Control selection method, device, host and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2002320736A1 (en) * | 2001-12-19 | 2003-07-10 | Canon Kabushiki Kaisha | Selecting Moving Objects on a System |
CN1581029A (en) * | 2003-08-15 | 2005-02-16 | 漆波 | Alphalbet soft keyboard for mobile phone |
CN102819394A (en) * | 2012-07-27 | 2012-12-12 | 东莞宇龙通信科技有限公司 | Terminal and terminal operating method |
CN102880399A (en) * | 2012-08-01 | 2013-01-16 | 北京三星通信技术研究有限公司 | Screen operation method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2002320736B2 (en) * | 2001-12-19 | 2005-09-08 | Canon Kabushiki Kaisha | Selecting Moving Objects on a System |
-
2014
- 2014-03-27 CN CN201410119853.7A patent/CN103927101B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2002320736A1 (en) * | 2001-12-19 | 2003-07-10 | Canon Kabushiki Kaisha | Selecting Moving Objects on a System |
CN1581029A (en) * | 2003-08-15 | 2005-02-16 | 漆波 | Alphalbet soft keyboard for mobile phone |
CN102819394A (en) * | 2012-07-27 | 2012-12-12 | 东莞宇龙通信科技有限公司 | Terminal and terminal operating method |
CN102880399A (en) * | 2012-08-01 | 2013-01-16 | 北京三星通信技术研究有限公司 | Screen operation method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104436657A (en) * | 2014-12-22 | 2015-03-25 | 青岛烈焰畅游网络技术有限公司 | Method and device for controlling game and electronic equipment |
CN105389104A (en) * | 2015-07-14 | 2016-03-09 | 魅族科技(中国)有限公司 | Application interface control controlling method and related equipment |
CN105404448A (en) * | 2015-12-30 | 2016-03-16 | 小米科技有限责任公司 | One-handed operation method and device |
CN107092410A (en) * | 2016-02-24 | 2017-08-25 | 口碑控股有限公司 | Interface alternation method, equipment and the intelligent terminal of a kind of touch-screen |
CN106662881A (en) * | 2016-09-26 | 2017-05-10 | 深圳市大疆创新科技有限公司 | Control method, system and user terminal for unmanned aircraft |
WO2018053845A1 (en) * | 2016-09-26 | 2018-03-29 | 深圳市大疆创新科技有限公司 | Method and system for controlling unmanned aerial vehicle, and user terminal |
WO2019179052A1 (en) * | 2018-03-18 | 2019-09-26 | 平安科技(深圳)有限公司 | Button self-adaptive method and device, mobile terminal and storage medium |
CN110471587A (en) * | 2019-07-17 | 2019-11-19 | 深圳传音控股股份有限公司 | Exchange method, interactive device, terminal and computer readable storage medium |
CN111870945A (en) * | 2020-08-10 | 2020-11-03 | 网易(杭州)网络有限公司 | Control selection method, device, host and medium |
Also Published As
Publication number | Publication date |
---|---|
CN103927101B (en) | 2016-10-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103927101B (en) | The method and apparatus of operational controls | |
JP6553719B2 (en) | Screen split display method and apparatus | |
EP2975838B1 (en) | Image shooting parameter adjustment method and device | |
CN105955607B (en) | Content sharing method and device | |
CN107908351B (en) | Application interface display method and device and storage medium | |
KR102045232B1 (en) | Gesture identification methods, devices, programs and recording media | |
CN107124508B (en) | Position adjusting method and device of suspension control, terminal and readable storage medium | |
EP3099040B1 (en) | Button operation processing method in single-hand mode, apparatus and electronic device | |
CN105975166B (en) | Application control method and device | |
EP3249509A1 (en) | Method and device for playing live videos | |
EP3260967A1 (en) | Method and apparatus for text selection | |
CN103927080A (en) | Method and device for controlling control operation | |
EP3232340A1 (en) | Method for operating a display device and display device for displaying pages of an application program | |
CN105487805B (en) | Object operation method and device | |
CN105912258B (en) | Operation processing method and device | |
CN104317402B (en) | Description information display method and device and electronic equipment | |
EP3239827B1 (en) | Method and apparatus for adjusting playing progress of media file | |
CN107992257B (en) | Screen splitting method and device | |
EP3232301B1 (en) | Mobile terminal and virtual key processing method | |
KR101763270B1 (en) | Method, apparatus, program and computer-readable recording medium for determining character | |
EP3828682A1 (en) | Method, apparatus for adding shortcut plug-in, and intelligent device | |
CN116954540A (en) | Application program display method and device and terminal | |
CN106940653B (en) | Method, apparatus and computer-readable storage medium for controlling application program | |
CN112269525B (en) | Small screen window display method and device and storage medium | |
CN115543064A (en) | Interface display control method, interface display control device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |