WO2014044063A1 - 一种触摸按键控制方法及装置 - Google Patents

一种触摸按键控制方法及装置 Download PDF

Info

Publication number
WO2014044063A1
WO2014044063A1 PCT/CN2013/076970 CN2013076970W WO2014044063A1 WO 2014044063 A1 WO2014044063 A1 WO 2014044063A1 CN 2013076970 W CN2013076970 W CN 2013076970W WO 2014044063 A1 WO2014044063 A1 WO 2014044063A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
time
button
buttons
touch button
Prior art date
Application number
PCT/CN2013/076970
Other languages
English (en)
French (fr)
Inventor
叶大伟
Original Assignee
惠州Tcl移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2014044063A1 publication Critical patent/WO2014044063A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/23Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a touch button control method and apparatus.
  • the latest mobile operating system redefines the physical operation keys of the mobile phone.
  • the original design of the new operating system is to reduce the physical keys from 4 physical keys to 3 physical keys.
  • these changes have caused a lot of troubles for mobile phone manufacturers in designing products.
  • some manufacturers follow the design concept of the new operating system and reduce a physical key on the mobile phone, but the mobile phone manufacturer has to design a virtual virtual display screen.
  • the menu button allows the user to recall the functions of the menu settings, but the virtual menu setting button takes up a valuable display area, which makes the screen display area of the mobile phone smaller.
  • Other mobile phone manufacturers simply give up the design of the new operating system and still use the definition of four key bits. This not only does not conform to the design concept of the new operating system, but also makes the entire keyboard area crowded and inconvenient to operate.
  • the technical problem to be solved by the present invention is to provide a touch button control method and device, which can effectively reduce the number of physical buttons and virtual buttons while satisfying the original button function.
  • a technical solution adopted by the present invention is to provide a touch button control method, which includes: acquiring a press time of a press event of at least two touch buttons and a release time of a release event, Obtaining a touch stay time of each touch button according to the pressing time and the release time, the touch button includes a physical touch button or a virtual touch button; and obtaining an interval according to the release time of the touch button and the pressing time of the touch button adjacent thereto; Whether the touch stay time meets the preset touch stay time and whether the interval time meets the preset interval time; if both are met, the call menu setting function is executed.
  • the at least two touch buttons are three touch buttons, and the three touch buttons are a return button, a home screen button, and a multitasking button.
  • a touch button control method which includes: acquiring a touch stay time of each touch button of at least two touch buttons, the touch button including an entity Touching a button or a virtual touch button; obtaining an interval between a release event of each touch button and a pressing event of a touch button adjacent thereto; determining whether the touch stay time meets the preset touch stay time and whether the interval time conforms to the preset Interval time; if they match, execute the preset control command.
  • the step of acquiring the touch dwell time of each touch button of the at least two touch buttons includes: acquiring a press time of a press event of each touch button and a release time of the release event; acquiring a touch according to the press time and the release time Stay time.
  • the step of obtaining the interval between the release event of each touch button and the pressing event of the touch button adjacent thereto includes: obtaining the interval according to the release time of the touch button and the pressing time of the touch button adjacent thereto .
  • the at least two touch buttons are three touch buttons, and the three touch buttons are a return button, a home screen button, and a multitasking button.
  • the preset control command is a call menu setting function.
  • a touch button control device configured to provide a touch button control device, where the touch button control device includes: a first time acquisition module, configured to acquire each touch button of at least two touch buttons Touch touch time, the touch button includes a physical touch button or a virtual touch button; the second time acquisition module is configured to obtain an interval between a release event of each touch button and a press event of a touch button adjacent thereto; The module is configured to determine whether the touch dwell time meets the preset touch dwell time and whether the interval time meets the preset interval time; and the execution module, if the judging module judges that all meets, the execution module executes the preset control command.
  • the first time acquiring module includes: an event time acquiring unit, configured to acquire a pressing time of a pressing event of each touch button and a release time of the release event; and a first calculating unit, configured to press the pressing time and the release time Get touch time.
  • the second time acquiring module includes: a second calculating unit, configured to acquire an interval time according to a release time of the touch button and a pressing time of the touch button adjacent thereto.
  • the at least two touch buttons are three touch buttons, and the three touch buttons are a return button, a home screen button, and a multitasking button.
  • the preset control command is a call menu setting function.
  • the touch button control method and device of the present invention can effectively reduce the number of physical buttons and virtual buttons when the original button function is satisfied, thereby reducing the entity.
  • the button occupies the space of the mobile phone and the virtual button occupies the problem of the screen display area, which avoids the overcrowding between the physical buttons and the screen display area being reduced, which is convenient for the user to operate.
  • FIG. 1 is a flow chart of a first embodiment of a touch button control method of the present invention
  • FIG. 2 is a schematic structural view of a mobile phone to which the touch button control method of FIG. 1 is applied;
  • FIG. 3 is a schematic structural view of a first embodiment of a touch button control device of the present invention.
  • FIG. 1 is a flow chart of a first embodiment of a touch button control method of the present invention. As shown in FIG. 1, the touch button control method of this embodiment includes the following steps:
  • Step S101 Acquire a touch stay time of each touch button of at least two touch buttons
  • Step S102 Acquire an interval between a release event of each touch button and a press event of a touch button adjacent thereto;
  • Step S103 determining whether the touch stay time meets the preset touch stay time and whether the interval time meets the preset interval time;
  • Step S104 If both are met, the preset control command is executed.
  • the preset control command is a call menu setting function.
  • the preset control command may also be designed as other command functions according to actual requirements, and is not limited herein.
  • step S101 includes the following steps:
  • the touch dwell time is obtained according to the pressed time and the release time.
  • step S102 includes the steps of: acquiring the interval time according to the release time of the touch button and the pressing time of the touch button adjacent thereto.
  • FIG. 2 is a schematic structural diagram of a mobile phone applying the touch button control method of FIG.
  • the touch button in this embodiment may be a physical touch button or a virtual touch button, which is not limited herein.
  • At least two touch buttons are, for example, three touch buttons, and the three touch buttons are A button multitasking button, B button home screen button and C button return button, and these three buttons are Android.
  • the physical operation key of the mobile phone defined by the 4.0 (Android) mobile phone operating system, that is, the layout of the three keys recommended by the mobile phone manufacturer.
  • step S101 of the embodiment the event occurrence time is recorded by the system function Gettime(), and the time when the state of the touch button changes is recorded by a plurality of variables, and each time the touch button behavior occurs, the pressed time and the released time are recorded to Go to the corresponding variable.
  • the system function Gettime() the time when the state of the touch button changes is recorded by a plurality of variables, and each time the touch button behavior occurs, the pressed time and the released time are recorded to Go to the corresponding variable.
  • the phone gets the signal that A is pressed, and calls the system function Gettime() to record the current time to the variable Ta-p.
  • the finger slides from the A button and draws to the B button, the A is obtained.
  • the system function Gettime() is called to record the current time to the variable Ta-r;
  • step S101 of this embodiment the following can be adopted:
  • Tc-r – Tc-p gets the touch dwell time of the user's finger on each touch button.
  • step S102 of this embodiment the following can be adopted:
  • Tc-p – Tb-r gets the interval between the time when the A button is released until the B button is pressed and the interval between when the B button is released and when the C button is pressed.
  • step S103 it is determined whether the time point meets the following characteristics:
  • the first threshold is a preset touch stay time on the touch button of the mobile phone
  • the second threshold is a preset interval between a release event of the touch button of the mobile phone and a press event of the touch button adjacent thereto. Both the first threshold and the second threshold are a very small value used to determine whether the time interval between two behavioral events is very short.
  • step S103 If it is judged in the step S103 that the above time points satisfy the above judgment formula, the behavior of the user's finger swiping through the three touch buttons of A, B, and C is displayed once, and in step S104, the mobile phone invokes the menu setting function. Displayed in the display area 15.
  • the first threshold indicates that the time interval between the release of the A key and the pressing of the A key is very small, indicating that the A key is released after being quickly pressed;
  • the second threshold indicates that the time interval between the release of the B button and the release of the A button is very small, indicating that the B button is quickly pressed after the A button is released;
  • the first threshold indicates that the time interval between the release of the B key and the pressing of the B key is very small, indicating that the B key is released after being quickly pressed;
  • the second threshold indicates that the time interval between the release of the C button and the release of the B button is very small, indicating that the C button is quickly pressed after the B button is released;
  • Tc-r – Tc-p First threshold, indicating that the time interval between the release of the C key and the pressing of the C key is very small, indicating that the C key is released after being quickly pressed.
  • the first threshold and the second threshold are thresholds customized by the handset manufacturer, and the handset manufacturer can set the sensitivity of the user's finger slip detection by adjusting the first threshold and the second threshold.
  • the threshold is larger, the longer the interval between two intervals is allowed, that is, the slow slip can be detected; when the threshold is smaller, the time between the two event intervals is allowed to be shorter, indicating that it is very A quick swipe to meet the above formula.
  • the program When the program is running, it will continuously receive physical events sent by the mobile operating system. For example, when the user presses the return key once, the running program will receive the event signal submitted by the operating system and process the event accordingly.
  • the method of the invention analyzes and judges the operation of the touch button, and gives an appropriate event, and the operating system forwards the event to the running program.
  • the present invention also provides a touch button control device 10 for applying the touch button control method of the present invention.
  • FIG. 3 is a schematic structural view of a first embodiment of the touch button control device of the present invention.
  • the touch button control device 10 includes a first time acquisition module 11, a second time acquisition module 12, a determination module 13, and an execution module 14.
  • the first time acquiring module 11 is configured to acquire a touch stay time of each touch button of at least two touch buttons, where the touch button includes a physical touch button or a virtual touch button.
  • the second time acquisition module 12 is configured to acquire an interval between a release event of each touch button and a press event of a touch button adjacent thereto.
  • the judging module 13 is configured to determine whether the touch dwell time meets the preset touch dwell time and whether the interval time meets the preset interval time. If the determining module 13 determines that both are met, the executing module 14 executes the preset control command.
  • the first time acquisition module 11 includes an event time acquisition unit 111 and a first calculation unit 112.
  • the event time obtaining unit 111 is configured to acquire a pressing time of a pressing event of each touch button and a release time of the release event.
  • the first calculating unit 112 is configured to acquire a touch stay time according to the pressing time and the release time.
  • the second time acquisition module 12 includes a second calculation unit 121 for acquiring an interval time according to the release time of the touch button and the pressing time of the touch button adjacent thereto.
  • the touch button control method and apparatus of the embodiments of the present invention are applicable to prior art communication electronic devices.
  • the touch button control method and device of the present invention can effectively reduce the number of physical buttons and virtual buttons when the original button function is satisfied, thereby reducing the entity.
  • the button occupies the space of the mobile phone and the virtual button occupies the problem of the screen display area, which avoids the overcrowding between the physical buttons and the screen display area being reduced, which is convenient for the user to operate.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

本发明公开了一种触摸按键控制方法及装置,该触摸按键控制方法包括:获取至少两个触摸按键的每一触摸按键的触摸停留时间,触摸按键包括实体触摸按键或虚拟触摸按键;获取每一触摸按键的释放事件和与其相邻的触摸按键的按下事件之间的间隔时间;判断触摸停留时间是否符合预设触摸停留时间以及间隔时间是否符合预设间隔时间;若皆符合,则执行预设控制命令。通过上述方式,本发明的触摸按键控制方法及装置能够在满足原有按键功能的情况下,有效减少实体按键与虚拟按键的个数。

Description

一种触摸按键控制方法及装置
【技术领域】
本发明涉及电子技术领域,特别是涉及一种触摸按键控制方法及装置。
【背景技术】
最新的手机操作系统重新定义了手机的物理操作键,新操作系统的初衷设计是希望减少实体键,从4个实体键变成3个实体键。然而这些改变给手机厂商在实际设计产品时带来了很多困扰,比如一些厂商虽然遵循新的操作系统的设计理念,在手机上减少一个实体键,但手机厂商不得不在显示屏幕上多设计一个虚拟的菜单键,供用户调用菜单设置的功能,但是虚拟菜单设置键会占掉一块宝贵的显示区域,这使得手机屏幕显示区域变小。而另外一些手机厂商则干脆放弃遵循新操作系统的设计,仍然使用4个键位的定义,这不仅不符合新操作系统的设计理念,也让整个键盘区域变的拥挤狭小,不便操作。
综上所述,有必要提供一种触摸按键控制方法及装置以解决上述问题。
【发明内容】
本发明主要解决的技术问题是提供一种触摸按键控制方法及装置,该方法及装置能够在满足原有按键功能的情况下,有效减少实体按键与虚拟按键的个数。
为解决上述技术问题,本发明采用的一个技术方案是:提供一种触摸按键控制方法,触摸按键控制方法包括:获取至少两个触摸按键的按下事件的按下时间以及释放事件的释放时间,根据按下时间和释放时间获取每一触摸按键的触摸停留时间,触摸按键包括实体触摸按键或虚拟触摸按键;根据触摸按键的释放时间和与其相邻的触摸按键的按下时间获取间隔时间;判断触摸停留时间是否符合预设触摸停留时间以及间隔时间是否符合预设间隔时间;若皆符合,则执行调用菜单设置功能。
其中,至少两个触摸按键为三个触摸按键,三个触摸按键分别为返回键、主屏幕键和多任务键。
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种触摸按键控制方法,触摸按键控制方法包括:获取至少两个触摸按键的每一触摸按键的触摸停留时间,触摸按键包括实体触摸按键或虚拟触摸按键;获取每一触摸按键的释放事件和与其相邻的触摸按键的按下事件之间的间隔时间;判断触摸停留时间是否符合预设触摸停留时间以及间隔时间是否符合预设间隔时间;若皆符合,则执行预设控制命令。
其中,获取至少两个触摸按键的每一触摸按键的触摸停留时间的步骤包括:获取每一触摸按键的按下事件的按下时间以及释放事件的释放时间;根据按下时间和释放时间获取触摸停留时间。
其中,获取每一触摸按键的释放事件和与其相邻的触摸按键的按下事件之间的间隔时间的步骤包括:根据触摸按键的释放时间和与其相邻的触摸按键的按下时间获取间隔时间。
其中,至少两个触摸按键为三个触摸按键,三个触摸按键分别为返回键、主屏幕键和多任务键。
其中,预设控制命令为调用菜单设置功能。
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种触摸按键控制装置,该触摸按键控制装置包括:第一时间获取模块,用于获取至少两个触摸按键的每一触摸按键的触摸停留时间,触摸按键包括实体触摸按键或虚拟触摸按键;第二时间获取模块,用于获取每一触摸按键的释放事件和与其相邻的触摸按键的按下事件之间的间隔时间;判断模块,用于判断触摸停留时间是否符合预设触摸停留时间以及间隔时间是否符合预设间隔时间;执行模块,若判断模块判断为皆符合,则执行模块执行预设控制命令。
其中,第一时间获取模块包括:事件时间获取单元,用于获取每一触摸按键的按下事件的按下时间以及释放事件的释放时间;第一计算单元,用于根据按下时间和释放时间获取触摸停留时间。
其中,第二时间获取模块包括:第二计算单元,用于根据触摸按键的释放时间和与其相邻的触摸按键的按下时间获取间隔时间。
其中,至少两个触摸按键为三个触摸按键,三个触摸按键分别为返回键、主屏幕键和多任务键。
其中,预设控制命令为调用菜单设置功能。
本发明的有益效果是:区别于现有技术的情况,本发明的触摸按键控制方法及装置能够在满足原有按键功能的情况下,有效减少实体按键与虚拟按键的个数,从而减少了实体按键占用手机空间及虚拟按键占用屏幕显示区域的问题,避免了实体按键之间过于拥挤以及屏幕显示区域被缩小,方便了用户操作。
【附图说明】
图1是本发明触摸按键控制方法第一实施例的流程图;
图2是应用图1中触摸按键控制方法的手机的结构示意图;以及
图3是本发明触摸按键控制装置第一实施例的结构示意图。
【具体实施方式】
下面结合附图和实施方式对本发明进行详细说明。
图1是本发明触摸按键控制方法第一实施例的流程图。如图1所示,本实施例的触摸按键控制方法包括如下步骤:
步骤S101:获取至少两个触摸按键的每一触摸按键的触摸停留时间;
步骤S102:获取每一触摸按键的释放事件和与其相邻的触摸按键的按下事件之间的间隔时间;
步骤S103:判断触摸停留时间是否符合预设触摸停留时间以及间隔时间是否符合预设间隔时间;以及
步骤S104:若皆符合,则执行预设控制命令。其中预设控制命令为调用菜单设置功能,当然在其他实施例中,预设控制命令也可以根据实际需求设计为其他命令功能,此处不作限制。
本实施例中,步骤S101包括步骤:
获取每一触摸按键的按下事件的按下时间以及释放事件的释放时间;以及
并根据按下时间和释放时间获取触摸停留时间。
本实施例中,步骤S102包括步骤:根据触摸按键的释放时间和与其相邻的触摸按键的按下时间获取间隔时间。
请一并参考图2,图2是应用图1中触摸按键控制方法的手机的结构示意图。本实施例中的触摸按键可以是实体触摸按键或虚拟触摸按键,此处不作限定。其中至少两个触摸按键例如为三个触摸按键,三个触摸按键分别为A键多任务键、B键主屏幕键和C键返回键,这三个键是Android 4.0(安卓)的手机操作系统所定义的手机的物理操作键,即推荐手机厂商使用的三个键的布局。
本实施例的步骤S101中通过系统函数Gettime()记录事件发生时间并通过多个变量记录触摸按键状态发生变化的时间,每一次触摸按键行为的发生都会把按下的时间和释放的时间记录到相应的变量中去。例如,如图2箭头所示方向,假设用户手指快速滑过A、B、C三个触摸按键,在这一滑动过程中,
当A按键被按下的时候,手机得到A被按下的信号,并调用系统函数Gettime()记录当前时间到变量Ta-p中,当手指从A按键滑过并划向B按键,得到A按键被释放的信号,调用系统函数Gettime()记录得到当前时间到变量Ta-r中;
当手指滑到B按键以后,又得到了B按键被按下的信号,调用系统函数Gettime()记录下时间到变量Tb-p中,当手指从B按键滑过并划向C按键时,得到B按键被释放的信号,调用系统函数Gettime()记录下时间到变量Tb-r;
当手指滑到C按键后,又得到了C按键被按下的信号,调用系统函数Gettime()记录下时间到变量Tc-p,当手指划过C按键后,又得到C按键被释放的信号,调用系统函数Gettime()记录下时间到变量Tc-r。
因此,本实施例的步骤S101中可通过:
Ta-r – Ta-p;
Tb-r – Tb-p;以及
Tc-r – Tc-p得到用户手指在每个触摸按键上的触摸停留时间。
本实施例的步骤S102中则可通过:
Tb-p – Ta-r;以及
Tc-p – Tb-r得到A按键被释放至B按键被按下两个事件之间的间隔时间以及B按键被释放至C按键被按下之间的间隔时间。
通过上述两个步骤得到上述事件及对应的时间点,并在S103步骤中判断时间点是否符合以下特征:
Ta-r – Ta-p < 第一阈值;
Tb-p – Ta-r < 第二阈值;
Tb-r – Tb-p < 第一阈值;
Tc-p – Tb-r < 第二阈值;
Tc-r – Tc-p < 第一阈值。
其中,第一阈值为手机触摸按键上的预设触摸停留时间,第二阈值为手机一触摸按键的释放事件和与其相邻的触摸按键的按下事件之间的预设间隔时间。第一阈值和第二阈值皆是一个非常小的值,用来判断两个行为事件的时间间隔是否非常短。
如果在S103步骤中判断得出以上的时间点都满足上述判断公式,则说明一次用户手指快速滑过A、B、C三个触摸按键的行为,并在S104步骤中触发手机调用菜单设置功能在显示区域15内显示。
具体而言,当Ta-r – Ta-p < 第一阈值,说明A键释放和A键被按下的时间间隔非常小,表明A键被快速按下后又被释放;
当Tb-p –Ta-r < 第二阈值,说明B键按下后和A键释放的时间间隔非常小,表明A键被松开后,B键又被快速按下;
当Tb-r –Tb-p < 第一阈值,说明B键释放和B键被按下的时间间隔非常小,表明B键被快速按下后又被释放;
当Tc-p – Tb-r < 第二阈值,说明C键按下后和B键释放的时间间隔非常小,表明B键被松开后,C键又被快速按下;
当Tc-r – Tc-p <第一阈值,说明C键释放和C键被按下的时间间隔非常小,表明C键被快速按下后又被释放。
其中,第一阈值和第二阈值是手机制造商自定义的阈值,手机制造商可以通过调节第一阈值和第二阀值的大小来设置对用户手指滑动侦测的灵敏度。当阀值越大的时候,两次间隔的时间被允许越长,即慢速滑动也能被检测到;当阀值越小的时候,两次事件间隔的时间被允许越短,说明要非常快速的滑动才能满足上述公式。
当程序在运行的时候,会不断接收手机操作系统发送过来的物理事件。例如当用户按一次返回键,运行中的程序便会接收到由操作系统递交的事件信号,并对该事件进行相应的处理。本发明方法对触摸按键的操作情况进行分析和判断,并给出合适的事件,操作系统便转发该事件给运行中的程序。进一步地,当手机的至少两个触摸按键发生一次滑动行为,便认为发生了一次调用菜单设置功能事件的请求,同时向操作系统发出调用菜单设置功能事件,当操作系统接收到调用菜单设置功能事件后,把调用菜单设置功能事件转发给当前运行程序,当前运行程序接收到调用菜单设置功能事件后,根据自己的程序设计弹出菜单设置功能到屏幕上给用户使用,从而完整的实现了一次菜单设置功能的调用。
早期的Android 2.3系统是四个键的布局,即返回键,返回主屏幕键,搜索键,菜单设置键,但是新的Android 4.0系统去掉了搜索键和菜单设置键,新增加了多任务键,安卓希望手机开发者能够为新的系统更新自己的程序,把菜单设置键放在程序本身的显示界面中。对于没有及时更新的程序,安卓在新系统中设计了系统级的虚拟菜单设置键,供用户使用。本实施例通过设置时间变量进行简单判断,能够迅速识别出是否有滑过三个触摸键的事件的发生,同时在不增加额外的物理菜单设置触摸按键的前提下,最大程度的复用了现有的功能键,实现菜单设置功能,并且不破坏屏幕布局,遵循了安卓新操作系统的设计理念。对于没有包含3个实体触摸键,仅有虚拟触摸键的系统,本发明也仍然适用。
本发明还提供了一种应用本发明触摸按键控制方法的触摸按键控制装置10,如图3所示,图3是本发明触摸按键控制装置第一实施例的结构示意图。触摸按键控制装置10包括第一时间获取模块11、第二时间获取模块12、判断模块13和执行模块14。
其中,第一时间获取模块11用于获取至少两个触摸按键的每一触摸按键的触摸停留时间,该触摸按键包括实体触摸按键或虚拟触摸按键。第二时间获取模块12用于获取每一触摸按键的释放事件和与其相邻的触摸按键的按下事件之间的间隔时间。判断模块13用于判断触摸停留时间是否符合预设触摸停留时间以及间隔时间是否符合预设间隔时间。若判断模块13判断为皆符合,则执行模块14执行预设控制命令。
进一步的,第一时间获取模块11包括事件时间获取单元111和第一计算单元112。其中事件时间获取单元111用于获取每一触摸按键的按下事件的按下时间以及释放事件的释放时间。第一计算单元112用于根据按下时间和释放时间获取触摸停留时间。
第二时间获取模块12包括第二计算单元121,第二计算单元121用于根据触摸按键的释放时间和与其相邻的触摸按键的按下时间获取间隔时间。
本发明实施例的触摸按键控制方法及装置适用于现有技术的通信电子设备中。
本发明的有益效果是:区别于现有技术的情况,本发明的触摸按键控制方法及装置能够在满足原有按键功能的情况下,有效减少实体按键与虚拟按键的个数,从而减少了实体按键占用手机空间及虚拟按键占用屏幕显示区域的问题,避免了实体按键之间过于拥挤以及屏幕显示区域被缩小,方便了用户操作。
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (12)

  1. 一种触摸按键控制方法,其特征在于,所述触摸按键控制方法包括:
    获取至少两个触摸按键的按下事件的按下时间以及释放事件的释放时间,根据所述按下时间和所述释放时间获取每一所述触摸按键的触摸停留时间,所述触摸按键包括实体触摸按键或虚拟触摸按键;
    根据所述触摸按键的所述释放时间和与其相邻的所述触摸按键的所述按下时间获取所述间隔时间;
    判断所述触摸停留时间是否符合预设触摸停留时间以及所述间隔时间是否符合预设间隔时间;
    若皆符合,则执行调用菜单设置功能。
  2. 根据权利要求1所述的触摸按键控制方法,其特征在于,所述至少两个触摸按键为三个触摸按键,所述三个触摸按键分别为返回键、主屏幕键和多任务键。
  3. 一种触摸按键控制方法,其特征在于,所述触摸按键控制方法包括:
    获取至少两个触摸按键的每一所述触摸按键的触摸停留时间,所述触摸按键包括实体触摸按键或虚拟触摸按键;
    获取每一所述触摸按键的释放事件和与其相邻的所述触摸按键的按下事件之间的间隔时间;
    判断所述触摸停留时间是否符合预设触摸停留时间以及所述间隔时间是否符合预设间隔时间;
    若皆符合,则执行预设控制命令。
  4. 根据权利要求3所述的触摸按键控制方法,其特征在于,所述获取至少两个触摸按键的每一触摸按键的触摸停留时间的步骤包括:
    获取每一所述触摸按键的按下事件的按下时间以及释放事件的释放时间;
    根据所述按下时间和所述释放时间获取所述触摸停留时间。
  5. 根据权利要求3所述的触摸按键控制方法,其特征在于,所述获取每一触摸按键的释放事件和与其相邻的触摸按键的按下事件之间的间隔时间的步骤包括:
    根据所述触摸按键的所述释放时间和与其相邻的所述触摸按键的所述按下时间获取所述间隔时间。
  6. 根据权利要求3所述的触摸按键控制方法,其特征在于,所述至少两个触摸按键为三个触摸按键,所述三个触摸按键分别为返回键、主屏幕键和多任务键。
  7. 根据权利要求6所述的触摸按键控制方法,其特征在于,所述预设控制命令为调用菜单设置功能。
  8. 一种触摸按键控制装置,其特征在于,所述触摸按键控制装置包括:
    第一时间获取模块,用于获取至少两个触摸按键的每一所述触摸按键的触摸停留时间,所述触摸按键包括实体触摸按键或虚拟触摸按键;
    第二时间获取模块,用于获取每一所述触摸按键的释放事件和与其相邻的所述触摸按键的按下事件之间的间隔时间;
    判断模块,用于判断所述触摸停留时间是否符合预设触摸停留时间以及所述间隔时间是否符合预设间隔时间;
    执行模块,若所述判断模块判断为皆符合,则所述执行模块执行预设控制命令。
  9. 根据权利要求8所述的触摸按键控制装置,其特征在于,所述
    第一时间获取模块包括:
    事件时间获取单元,用于获取每一所述触摸按键的按下事件的按下时间以及释放事件的释放时间;
    第一计算单元,用于根据所述按下时间和所述释放时间获取所述触摸停留时间。
  10. 根据权利要求8所述的触摸按键控制装置,其特征在于,所述第二时间获取模块包括:
    第二计算单元,用于根据所述触摸按键的所述释放时间和与其相邻的所述触摸按键的所述按下时间获取所述间隔时间。
  11. 根据权利要求8所述的触摸按键控制装置,其特征在于,所述至少两个触摸按键为三个触摸按键,所述三个触摸按键分别为返回键、主屏幕键和多任务键。
  12. 根据权利要求11所述的触摸按键控制装置,其特征在于,所述预设控制命令为调用菜单设置功能。
PCT/CN2013/076970 2012-09-24 2013-06-08 一种触摸按键控制方法及装置 WO2014044063A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210359499.6A CN102929425B (zh) 2012-09-24 2012-09-24 一种触摸按键控制方法及装置
CN201210359499.6 2012-09-24

Publications (1)

Publication Number Publication Date
WO2014044063A1 true WO2014044063A1 (zh) 2014-03-27

Family

ID=47644250

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/076970 WO2014044063A1 (zh) 2012-09-24 2013-06-08 一种触摸按键控制方法及装置

Country Status (2)

Country Link
CN (1) CN102929425B (zh)
WO (1) WO2014044063A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991732A (zh) * 2015-06-24 2015-10-21 广州创显光电科技有限公司 一种实现按键第二功能的方法及一体机系统

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929425B (zh) * 2012-09-24 2016-02-24 惠州Tcl移动通信有限公司 一种触摸按键控制方法及装置
CN104063142B (zh) * 2013-03-21 2017-08-29 联想(北京)有限公司 信息处理方法、装置和电子设备
CN103338116B (zh) * 2013-05-28 2016-08-24 华为技术有限公司 机框框号设置装置及机框
CN104615299B (zh) * 2014-12-22 2019-04-30 深圳市万普拉斯科技有限公司 基于触摸屏的指令触发方法和装置
CN104639746A (zh) * 2015-01-28 2015-05-20 上海华豚科技有限公司 具有至少两个物理触点的电子设备及控制方法
CN105791561A (zh) * 2016-02-26 2016-07-20 努比亚技术有限公司 一种实现移动终端的控制方法和装置
CN107179849B (zh) * 2017-05-19 2021-08-17 努比亚技术有限公司 终端及其输入控制方法、计算机可读存储介质
CN109802660A (zh) * 2017-11-16 2019-05-24 佛山市顺德区美的电热电器制造有限公司 按键触控控制方法和装置
CN110594822A (zh) * 2019-09-20 2019-12-20 浙江帅康电气股份有限公司 一种触控面板组件、触控面板清洗锁定判断方法和油烟机
CN110932710A (zh) * 2019-10-28 2020-03-27 深圳市亿联智能有限公司 基于蓝牙广播遥控面板的按键系统、家居设备及控制方法
CN117667240A (zh) * 2024-02-01 2024-03-08 荣耀终端有限公司 电子设备的唤醒方法、电子设备和计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599769A (zh) * 2009-06-01 2009-12-09 康佳集团股份有限公司 一种触摸式感应按键的容错方法
CN102323864A (zh) * 2011-08-30 2012-01-18 北京神州泰岳软件股份有限公司 一种触屏响应方法、装置和终端设备
CN102929425A (zh) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 一种触摸按键控制方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100771626B1 (ko) * 2006-04-25 2007-10-31 엘지전자 주식회사 단말기 및 이를 위한 명령 입력 방법
US8350815B2 (en) * 2007-06-20 2013-01-08 Sony Mobile Communications Portable communication device including touch input with scrolling function
US20090322686A1 (en) * 2008-06-25 2009-12-31 Parakrama Jayasinghe Control And Navigation For A Device Implementing a Touch Screen
KR101549558B1 (ko) * 2009-03-18 2015-09-03 엘지전자 주식회사 휴대 단말기 및 그 제어방법
KR20130052745A (ko) * 2010-12-23 2013-05-23 한국전자통신연구원 제스처를 이용한 메뉴 제공 방법 및 이를 이용한 휴대 단말

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599769A (zh) * 2009-06-01 2009-12-09 康佳集团股份有限公司 一种触摸式感应按键的容错方法
CN102323864A (zh) * 2011-08-30 2012-01-18 北京神州泰岳软件股份有限公司 一种触屏响应方法、装置和终端设备
CN102929425A (zh) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 一种触摸按键控制方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991732A (zh) * 2015-06-24 2015-10-21 广州创显光电科技有限公司 一种实现按键第二功能的方法及一体机系统

Also Published As

Publication number Publication date
CN102929425B (zh) 2016-02-24
CN102929425A (zh) 2013-02-13

Similar Documents

Publication Publication Date Title
WO2014044063A1 (zh) 一种触摸按键控制方法及装置
WO2013115558A1 (en) Method of operating multi-touch panel and terminal supporting the same
WO2012060589A2 (en) Touch control method and portable terminal supporting the same
WO2012099363A2 (ko) 터치 센서 제어기에서의 터치 신호 처리 방법 및 그 장치
WO2014135023A1 (zh) 一种智能终端的人机交互方法及系统
WO2010005185A2 (en) Method and apparatus to use a user interface
WO2016089186A1 (en) Hybrid touch-based electronic device and method for controlling the same
WO2016036135A1 (en) Method and apparatus for processing touch input
WO2014051201A1 (en) Portable device and control method thereof
WO2016175570A1 (en) Electronic device
WO2014113923A1 (zh) 基于触摸屏的物理按键模拟方法及装置
WO2017107557A1 (zh) 一种基于移动终端的快捷菜单弹出方法及系统
WO2013163920A1 (zh) 插入或删除电子表格中单元格或行列的方法及其装置
WO2011099713A2 (en) Screen control method and apparatus for mobile terminal having multiple touch screens
WO2012136126A1 (zh) 根据通话模式控制背光及触摸屏误操作的通讯终端及方法
WO2016018085A1 (en) Electronic device operating in idle mode and method thereof
WO2013155823A1 (zh) 一种解除移动终端屏幕锁定的方法及移动终端
WO2014107005A1 (en) Mouse function provision method and terminal implementing the same
WO2014026513A1 (zh) 操作界面调整方法、装置及移动终端
WO2014107026A1 (en) Electronic apparatus, and method for determining validity of touch key input used for the electronic apparatus
WO2014086145A1 (zh) 一种文件的共享方法及手持设备
WO2016184330A1 (zh) 一种屏幕解锁方法、装置及存储介质
WO2018004140A1 (ko) 전자 장치 및 그의 동작 방법
WO2017211056A1 (zh) 一种移动终端的单手操作方法、及系统
WO2016188285A1 (zh) 一种终端应用的进程管理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13839236

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13839236

Country of ref document: EP

Kind code of ref document: A1