Movatterモバイル変換


[0]ホーム

URL:


CN102033682B - Input method and input equipment - Google Patents

Input method and input equipment
Download PDF

Info

Publication number
CN102033682B
CN102033682BCN200910093074.3ACN200910093074ACN102033682BCN 102033682 BCN102033682 BCN 102033682BCN 200910093074 ACN200910093074 ACN 200910093074ACN 102033682 BCN102033682 BCN 102033682B
Authority
CN
China
Prior art keywords
click event
screen click
event
handwriting input
input
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.)
Expired - Fee Related
Application number
CN200910093074.3A
Other languages
Chinese (zh)
Other versions
CN102033682A (en
Inventor
夏博
黄晓庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co LtdfiledCriticalChina Mobile Communications Group Co Ltd
Priority to CN200910093074.3ApriorityCriticalpatent/CN102033682B/en
Publication of CN102033682ApublicationCriticalpatent/CN102033682A/en
Application grantedgrantedCritical
Publication of CN102033682BpublicationCriticalpatent/CN102033682B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明公开了一种输入方法,包括:接收触摸屏点击事件,判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域;根据所述触摸屏点击事件的起始位置的判断结果确定所述触摸屏点击事件为手写输入事件或者虚拟键盘输入事件,并执行手写输入或者虚拟键盘输入。本发明中,终端设备接收触摸屏点击事件,根据触摸屏点击事件的起始位置处于手写输入区域或者键盘输入区域,判断触摸屏点击事件为手写输入事件或者虚拟键盘输入事件,并进行相应的输入处理;从而可以实现手写输入和虚拟键盘输入的协同输入,提高了触摸屏终端设备的输入速度。

The invention discloses an input method, comprising: receiving a touch screen click event, judging that the start position of the touch screen click event is in a handwriting input area or a virtual keyboard input area; determining the start position according to the judgment result of the touch screen click event The touch screen click event is a handwriting input event or a virtual keyboard input event, and the handwriting input or virtual keyboard input is performed. In the present invention, the terminal device receives the touch screen click event, according to the initial position of the touch screen click event being in the handwriting input area or the keyboard input area, judges that the touch screen click event is a handwriting input event or a virtual keyboard input event, and performs corresponding input processing; thus The collaborative input of handwriting input and virtual keyboard input can be realized, and the input speed of the touch screen terminal device is improved.

Description

Translated fromChinese
一种输入方法和设备A kind of input method and equipment

技术领域technical field

本发明涉及通信领域,尤其涉及一种输入方法和设备。 The present invention relates to the communication field, in particular to an input method and device. the

背景技术Background technique

随着触摸屏技术的日益完善,触摸屏设备越来越多的出现在人们的日常生活中,尤其是在手机等移动通信设备领域触摸屏设备的使用越来越广泛。通过触摸屏技术在移动通信设备中的使用,很大程度上增强了手机等移动通信设备的用户体验。 With the increasingly perfect touch screen technology, more and more touch screen devices appear in people's daily life, especially in the field of mobile communication devices such as mobile phones, the use of touch screen devices is more and more extensive. The use of touch screen technology in mobile communication devices greatly enhances the user experience of mobile communication devices such as mobile phones. the

其中,在手机等移动通信设备中,输入法是人机交互的重要方式,对于引入触摸屏技术的手机等通信设备,其输入方式主要有虚拟键盘输入和手写识别两种。虚拟键盘的布局通常继承自传统手机按键布局、或者电脑键盘布局,有传统手机或者电脑使用经验的用户,可以快速掌握虚拟键盘并实现较高的输入速度。而相比键盘输入,手写识别输入更加适用于不熟悉拼音输入的中老年人,以及南方方言使用较广泛的地域。 Among them, in mobile communication devices such as mobile phones, the input method is an important way of human-computer interaction. For communication devices such as mobile phones that introduce touch screen technology, the input methods mainly include virtual keyboard input and handwriting recognition. The layout of the virtual keyboard is usually inherited from the traditional mobile phone key layout or computer keyboard layout. Users with experience in using traditional mobile phones or computers can quickly master the virtual keyboard and achieve a higher input speed. Compared with keyboard input, handwriting recognition input is more suitable for middle-aged and elderly people who are not familiar with pinyin input, and regions where southern dialects are widely used. the

对于大多数用户,虚拟键盘输入通常会作为首选的输入方式。然而,当需要输入生僻字,或者无法准确掌握发音的汉字时,手写输入则可起到很好的辅助输入作用。 For most users, virtual keyboard input is usually the preferred input method. However, when it is necessary to input uncommon characters, or Chinese characters whose pronunciation cannot be accurately grasped, handwriting input can play a very good role in auxiliary input. the

目前的触摸屏手机大多集成了这两种输入方式,但是这两种输入方式的存在形式是相互独立的:当手机模式为手写输入时,手机将触摸屏点击事件作为手写输入事件处理;当手机模式为虚拟键盘输入时,手机将触摸屏点击事件作为键盘按钮点击事件处理。 Most of the current touch screen mobile phones integrate these two input methods, but the existence forms of these two input methods are independent of each other: when the mobile phone mode is handwriting input, the mobile phone processes the touch screen click event as a handwriting input event; when the mobile phone mode is When the virtual keyboard is input, the mobile phone processes the touch screen click event as a keyboard button click event. the

现有技术中通过设置特定按键来进行输入模式的切换,即当用户需要从一种输入模式切换到另一种输入模式时,通过该特定按键进行模式切换。 In the prior art, the switching of the input mode is performed by setting a specific key, that is, when the user needs to switch from one input mode to another input mode, the mode switching is performed through the specific key. the

现有技术的缺点在于:当用户需要在虚拟键盘输入与手写输入模式间切换时,需要通过特定按键切换,增加了手机切换模式的开销,并且影响用户 的输入速度,用户体验差。 The disadvantages of the prior art are: when the user needs to switch between the virtual keyboard input mode and the handwriting input mode, it needs to switch through a specific key, which increases the overhead of switching modes of the mobile phone, and affects the user's input speed, and the user experience is poor. the

发明内容Contents of the invention

本发明的实施例提供了一种输入方法和设备,以使触摸屏终端设备能够实现手写输入与虚拟键盘的协同输入。 Embodiments of the present invention provide an input method and device, so that the touch screen terminal device can realize the coordinated input of handwriting input and virtual keyboard. the

本发明的实施例提供一种输入方法,包括: Embodiments of the present invention provide an input method, including:

接收触摸屏点击事件,判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域; Receiving a touch screen click event, judging that the initial position of the touch screen click event is in the handwriting input area or the virtual keyboard input area;

根据所述触摸屏点击事件的起始位置的判断结果确定所述触摸屏点击事件为手写输入事件或者虚拟键盘输入事件,并执行手写输入或者虚拟键盘输入。 According to the judgment result of the start position of the touch screen click event, it is determined that the touch screen click event is a handwriting input event or a virtual keyboard input event, and the handwriting input or virtual keyboard input is performed. the

所述判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域包括: The judging that the initial position of the touch screen click event is in the handwriting input area or the virtual keyboard input area includes:

获取所述触摸屏点击事件的起始位置的坐标; Obtain the coordinates of the starting position of the touch screen click event;

根据配置的所述手写输入区域或者虚拟键盘输入区域的坐标范围判断所述触摸屏点击事件的起始位置所属于的区域。 According to the configured coordinate range of the handwriting input area or the virtual keyboard input area, the area to which the start position of the touch screen click event belongs is determined. the

根据所述触摸屏点击事件的起始位置的判断结果确定所述触摸屏点击事件为手写输入事件或者虚拟键盘输入事件包括: Determining that the touch screen click event is a handwriting input event or a virtual keyboard input event according to the judgment result of the initial position of the touch screen click event includes:

当所述触摸屏点击事件的起始位置处于所述手写输入区域时,进一步判断所述触摸屏点击事件的移动距离是否大于配置的标准距离;若所述触摸屏点击事件的移动距离大于配置的标准距离,确定所述触摸屏点击事件为手写输入事件;若所述触摸屏点击事件的移动距离小于或者等于配置的标准距离,确定所述触摸屏点击事件为光标移动事件; When the starting position of the touch screen click event is in the handwriting input area, it is further judged whether the moving distance of the touch screen click event is greater than the configured standard distance; if the moving distance of the touch screen click event is greater than the configured standard distance, Determine that the touch screen click event is a handwriting input event; if the moving distance of the touch screen click event is less than or equal to the configured standard distance, determine that the touch screen click event is a cursor movement event;

当所述触摸屏点击事件的起始位置处于所述虚拟键盘输入区域时,判断所述触摸屏点击事件为虚拟键盘输入事件。 When the start position of the touch screen click event is in the virtual keyboard input area, it is determined that the touch screen click event is a virtual keyboard input event. the

确定所述触摸屏点击事件为手写输入事件之后,还包括: After determining that the touch screen click event is a handwriting input event, it also includes:

判断后续触摸屏点击事件距离上一次触摸屏点击事件的间隔时间是否超过识别等待时间; Determine whether the interval between the subsequent touch screen click event and the last touch screen click event exceeds the recognition waiting time;

如果判断结果为否,将后续触摸屏点击事件确定为手写输入事件进行相应处理; If the judgment result is no, determine the subsequent touch screen click event as a handwriting input event and process it accordingly;

如果判断结果为是,重新执行判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域的步骤。 If the judging result is yes, re-execute the step of judging that the start position of the touch screen click event is in the handwriting input area or the virtual keyboard input area. the

所述判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域之前,还包括: The judging that the starting position of the touch screen click event is before the handwriting input area or the virtual keyboard input area also includes:

判断当前输入模式是否为手写输入模式; Determine whether the current input mode is handwriting input mode;

如果当前输入模式是手写输入模式,则进一步判断当前触摸屏点击事件距离上次触摸屏点击事件的时间间隔是否超过配置的标准时间;若判断结果为是,则执行判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域的步骤;若判断结果为否,则保持手写输入状态; If the current input mode is a handwriting input mode, then further judge whether the time interval between the current touch screen click event and the last touch screen click event exceeds the configured standard time; if the judgment result is yes, then perform judgment on the initial position of the touch screen click event The step of being in the handwriting input area or the virtual keyboard input area; if the judgment result is no, keep the handwriting input state;

如果当前输入模式不是手写输入模式,则执行判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域的步骤。 If the current input mode is not the handwriting input mode, then perform the step of judging that the start position of the touch screen click event is in the handwriting input area or the virtual keyboard input area. the

本发明的实施例提供一种输入设备,包括: Embodiments of the present invention provide an input device, including:

输入事件判断单元,用于接收触摸屏点击事件,判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域;根据所述触摸屏点击事件的起始位置的判断结果确定所述触摸屏点击事件为手写输入事件或者虚拟键盘输入事件; The input event judging unit is used to receive a touch screen click event, and judge that the initial position of the touch screen click event is in a handwriting input area or a virtual keyboard input area; determine the touch screen click according to the judgment result of the initial position of the touch screen click event The event is a handwriting input event or a virtual keyboard input event;

处理单元,用于根据所述输入事件判断单元的判断结果执行手写输入或者虚拟键盘输入。 A processing unit, configured to perform handwriting input or virtual keyboard input according to the judgment result of the input event judging unit. the

所述输入事件判断单元具体用于: The input event judging unit is specifically used for:

获取所述触摸屏点击事件的起始位置的坐标; Obtain the coordinates of the starting position of the touch screen click event;

根据配置的所述手写输入区域或者虚拟键盘输入区域的坐标范围判断所述触摸屏点击事件的起始位置所属于的区域。 According to the configured coordinate range of the handwriting input area or the virtual keyboard input area, the area to which the start position of the touch screen click event belongs is determined. the

所述输入事件判断单元具体用于: The input event judging unit is specifically used for:

当所述触摸屏点击事件的起始位置处于所述手写输入区域时,进一步判断所述触摸屏点击事件的移动距离是否大于配置的标准距离;若所述触摸屏 点击事件的移动距离大于配置的标准距离,确定所述触摸屏点击事件为手写输入事件;若所述触摸屏点击事件的移动距离小于或者等于配置的标准距离,确定所述触摸屏点击事件为光标移动事件; When the starting position of the touch screen click event is in the handwriting input area, further judge whether the moving distance of the touch screen click event is greater than the configured standard distance; if the moving distance of the touch screen click event is greater than the configured standard distance, Determine that the touch screen click event is a handwriting input event; if the moving distance of the touch screen click event is less than or equal to the configured standard distance, determine that the touch screen click event is a cursor movement event;

当所述触摸屏点击事件的起始位置处于所述虚拟键盘输入区域时,判断所述触摸屏点击事件为虚拟键盘输入事件。 When the start position of the touch screen click event is in the virtual keyboard input area, it is determined that the touch screen click event is a virtual keyboard input event. the

所述输入事件判断单元还用于: The input event judging unit is also used for:

确定所述触摸屏点击事件为手写输入事件之后,判断后续触摸屏点击事件距离上一次触摸屏点击事件的间隔时间是否超过识别等待时间; After determining that the touch screen click event is a handwriting input event, determine whether the interval between the subsequent touch screen click event and the last touch screen click event exceeds the recognition waiting time;

如果判断结果为否,将后续触摸屏点击事件确定为手写输入事件进行相应处理; If the judgment result is no, determine the subsequent touch screen click event as a handwriting input event and process it accordingly;

如果判断结果为是,重新执行判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域的步骤。 If the judging result is yes, re-execute the step of judging that the start position of the touch screen click event is in the handwriting input area or the virtual keyboard input area. the

所述输入事件判断单元还用于: The input event judging unit is also used for:

判断当前输入模式是否为手写输入模式; Determine whether the current input mode is handwriting input mode;

如果当前输入模式是手写输入模式,则进一步判断当前触摸屏点击事件距离上次触摸屏点击事件的时间间隔是否超过配置的标准时间;若判断结果为是,则执行判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域的步骤;若判断结果为否,则保持手写输入状态; If the current input mode is a handwriting input mode, then further judge whether the time interval between the current touch screen click event and the last touch screen click event exceeds the configured standard time; if the judgment result is yes, then perform judgment on the initial position of the touch screen click event The step of being in the handwriting input area or the virtual keyboard input area; if the judgment result is no, keep the handwriting input state;

如果当前输入模式不是手写输入模式,则执行判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域的步骤。 If the current input mode is not the handwriting input mode, then perform the step of judging that the start position of the touch screen click event is in the handwriting input area or the virtual keyboard input area. the

与现有技术相比,本发明至少具有以下优点: Compared with prior art, the present invention has following advantage at least:

本发明实施例中,终端设备接收触摸屏点击事件,根据触摸屏点击事件的起始位置处于手写输入区域或者键盘输入区域,判断触摸屏点击事件为手写输入事件或者虚拟键盘输入事件,并进行相应的输入处理;从而可以实现手写输入和虚拟键盘输入的协同输入,提高了触摸屏终端设备的输入速度。 In the embodiment of the present invention, the terminal device receives a touch screen click event, judges that the touch screen click event is a handwriting input event or a virtual keyboard input event according to the initial position of the touch screen click event being in the handwriting input area or the keyboard input area, and performs corresponding input processing ; Thereby, the collaborative input of handwriting input and virtual keyboard input can be realized, and the input speed of the touch screen terminal device is improved. the

附图说明Description of drawings

为了更清楚地说明本发明的实施例或现有技术中的技术方案,下面将对 本发明的实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to illustrate the technical solutions in the embodiments of the present invention or the prior art more clearly, the accompanying drawings that need to be used in the description of the embodiments of the present invention or the prior art will be briefly introduced below. Obviously, in the following description The accompanying drawings are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to these drawings without any creative effort. the

图1是本发明的实施例一提供的输入方法的流程示意图; Fig. 1 is a schematic flow chart of the input method provided by Embodiment 1 of the present invention;

图2是本发明的实施例中触摸屏移动终端的触摸屏划分示意图; Fig. 2 is a schematic diagram of the division of the touch screen of the touch screen mobile terminal in an embodiment of the present invention;

图3是本发明实施例二提供的输入方法的流程示意图; Fig. 3 is a schematic flow chart of the input method provided by Embodiment 2 of the present invention;

图4是本发明实施例三提供的输入方法的流程示意图; Fig. 4 is a schematic flow chart of the input method provided by Embodiment 3 of the present invention;

图5是本发明实施例四提供的输入设备的结构示意图。 FIG. 5 is a schematic structural diagram of an input device provided by Embodiment 4 of the present invention. the

具体实施方式Detailed ways

下面将结合本发明的实施例中的附图,对本发明的实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明的实施例保护的范围。 The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of them. example. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of the embodiments of the present invention. the

本发明的实施例的主要思想是:通过设置终端设备对当前输入模式的判断方式,使终端设备自动判断当前的输入模式,并根据当前输入模式执行相应的触摸屏点击事件处理操作。该判断方式主要为:通过对触摸屏点击事件的起始位置以及滑动长度进行综合判断,判断当前触摸屏点击事件为虚拟键盘输入、光标移动或者手写输入,并进行相应事件处理;当判断结果为手写输入或者光标移动时,则在完成一个字的输入后,重新进行下一次综合判断。通过这种对当前输入模式的判断方式,使终端设备自动识别当前输入模式,并执行相应的操作,输入方式灵活、高效,用户体验好。 The main idea of the embodiments of the present invention is: by setting the judgment mode of the terminal device on the current input mode, the terminal device can automatically judge the current input mode, and execute the corresponding touch screen click event processing operation according to the current input mode. The judging method is mainly: by comprehensively judging the starting position and sliding length of the touch screen click event, judging that the current touch screen click event is virtual keyboard input, cursor movement or handwriting input, and performing corresponding event processing; when the judgment result is handwriting input Or when the cursor moves, after completing the input of a character, the next comprehensive judgment is carried out again. Through this way of judging the current input mode, the terminal device can automatically recognize the current input mode and perform corresponding operations. The input mode is flexible and efficient, and the user experience is good. the

具体的,本发明的实施例一提供一种输入方法,如图1所示,包括以下步骤: Specifically, Embodiment 1 of the present invention provides an input method, as shown in Figure 1, comprising the following steps:

步骤101,接收触摸屏点击事件,判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域; Step 101, receiving a touch screen click event, and judging that the starting position of the touch screen click event is in the handwriting input area or the virtual keyboard input area;

步骤102,根据所述触摸屏点击事件的起始位置的判断结果确定所述触摸屏点击事件为手写输入事件或者虚拟键盘输入事件,并执行手写输入或者虚拟键盘输入。 Step 102: Determine that the touch screen click event is a handwriting input event or a virtual keyboard input event according to the judgment result of the start position of the touch screen click event, and perform handwriting input or virtual keyboard input. the

本发明的实施例二提供一种输入方法,其中,该输入方法应用的终端设备以触摸屏移动终端,例如手机为例,当然也可以是其他类型移动终端设备。该触摸屏移动终端的触摸屏划分为虚拟键盘输入区域与手写输入区域,如图2所示,其中,虚拟键盘输入区域是软键盘覆盖的屏幕区域,包括候选汉字选择区域和词语联想区域。手写输入区域为移动终端触摸屏上虚拟键盘输入区域以外的区域。 Embodiment 2 of the present invention provides an input method, wherein the terminal device applied to the input method is a mobile terminal with a touch screen, such as a mobile phone, for example, and of course other types of mobile terminal devices may also be used. The touch screen of the touch screen mobile terminal is divided into a virtual keyboard input area and a handwriting input area, as shown in Figure 2, wherein the virtual keyboard input area is a screen area covered by a soft keyboard, including a candidate Chinese character selection area and a word association area. The handwriting input area is an area other than the virtual keyboard input area on the touch screen of the mobile terminal. the

虚拟键盘输入区域与手写输入区域使用同一感应模块,当前输入模式为键盘输入区域时,感应模块将当前触摸屏点击事件发送到相应的键盘输入控制模块进行相应的输入处理;当前输入模式为手写输入模式时,感应模块将当前触摸屏点击事件发送到相应的手写输入控制模块进行相应的输入处理。 The virtual keyboard input area and the handwriting input area use the same sensing module. When the current input mode is the keyboard input area, the sensing module sends the current touch screen click event to the corresponding keyboard input control module for corresponding input processing; the current input mode is the handwriting input mode , the sensing module sends the current touch screen click event to the corresponding handwriting input control module for corresponding input processing. the

本发明的实施例中,移动终端中的感应模块对当前输入模式的判断为主动进行: In the embodiment of the present invention, the sensing module in the mobile terminal is active in judging the current input mode:

当触摸屏点击事件的起始位置处于虚拟键盘输入区域时,感应模块默认当前输入模式为键盘输入模式,将当前触摸屏点击事件作为键盘按钮点击事件进行处理; When the starting position of the touch screen click event is in the virtual keyboard input area, the sensor module defaults the current input mode to the keyboard input mode, and processes the current touch screen click event as a keyboard button click event;

当触摸屏点击事件的起始位置处于手写输入区域时,感应模块进一步判断该触摸屏点击事件在触摸屏上的移动长度是否超过配置的标准长度,例如5个像素;如果移动长度超过标准长度,则感应模块判断该触摸屏点击事件以及后续触摸屏点击事件为手写输入事件,并将当前以及后续触摸屏点击事件发送到手写输入控制模块进行相应的输入处理,直到后续触摸屏点击事件的间隔时间超过识别等待时间时,对后续触摸屏点击事件重新进行判断;如果移动长度没有超过标准长度,则感应模块判断该触摸屏点击事件为光标移动,不需要进行相应输入处理,对下一触摸屏点击事件重新进行输入模式判断。 When the starting position of the touch screen click event is in the handwriting input area, the sensing module further judges whether the moving length of the touch screen clicking event on the touch screen exceeds the configured standard length, such as 5 pixels; if the moving length exceeds the standard length, the sensing module Judging that the touch screen click event and the follow-up touch screen click event are handwriting input events, and sending the current and follow-up touch screen click events to the handwriting input control module for corresponding input processing until the interval time of the follow-up touch screen click events exceeds the recognition waiting time. Subsequent touch screen click events are re-judged; if the movement length does not exceed the standard length, the sensing module judges that the touch screen click event is a cursor movement, and does not need to perform corresponding input processing, and re-judges the input mode for the next touch screen click event. the

具体的,本发明实施例二提供的输入方法如图3所示,包括以下步骤: Specifically, the input method provided by Embodiment 2 of the present invention is shown in Figure 3, and includes the following steps:

步骤301,移动终端开启键盘手写组合输入模式,进入触屏事件判断状态。 In step 301, the mobile terminal starts the keyboard handwriting combination input mode, and enters the touch screen event judging state. the

具体的,用户在触摸屏移动终端上点击文本框进行编辑时,弹出虚拟键盘。本发明实施例的虚拟键盘具体为Qwerty键盘或者九宫格键盘等任意布局,本发明实施例对于键盘种类不做限制。 Specifically, when the user clicks on the text box on the touch screen mobile terminal to edit, a virtual keyboard pops up. The virtual keyboard in the embodiment of the present invention is specifically any layout such as a Qwerty keyboard or a nine-grid keyboard, and the embodiment of the present invention does not limit the type of keyboard. the

考虑到用户的输入习惯:汉字书写基本上都是自上而下的书写,起始笔画巨大多数都在整个汉字上半部分,因此将屏幕上半部分作为手写起始区域,符合汉字书写习惯。本发明的实施例中,优选的,将移动终端屏幕的上部作为手写输入区域,将移动终端屏幕的下部作为虚拟键盘输入区域;当然,具体实现时也可以根据实际需要将移动终端屏幕以及虚拟键盘输入区域进行其他设置,例如将两者的区域上下颠倒或者左右划分。 Considering the user's input habits: Chinese characters are basically written from top to bottom, and most of the starting strokes are in the upper half of the entire Chinese character. Therefore, the upper half of the screen is used as the starting area for handwriting, which is in line with the writing habits of Chinese characters. In the embodiments of the present invention, preferably, the top of the mobile terminal screen is used as the handwriting input area, and the bottom of the mobile terminal screen is used as the virtual keyboard input area; certainly, the mobile terminal screen and the virtual keyboard can also be used according to actual needs Enter the area to make other settings, such as turning the two areas upside down or dividing them left and right. the

步骤302,移动终端接收触摸屏点击事件,判断该触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域;当判断结果为手写输入区域时,执行步骤304;当判断结果为虚拟键盘输入区域时,执行步骤303。 Step 302, the mobile terminal receives the touch screen click event, and judges that the initial position of the touch screen click event is in the handwriting input area or the virtual keyboard input area; when the judgment result is the handwriting input area, perform step 304; when the judgment result is the virtual keyboard input area , execute step 303. the

具体的,移动终端中配置手写输入区域以及虚拟键盘输入区域的坐标范围,该坐标范围与手写输入区域以及虚拟键盘输入区域在触摸屏上的划分有关,本发明实施例中,由于手写输入区域以及虚拟键盘输入区域位于移动终端触摸屏的上下两部分,因此,该输入区域的坐标范围可以仅包括纵坐标,即仅需要能够区分手写输入区域与虚拟键盘输入区域。 Specifically, the coordinate range of the handwriting input area and the virtual keyboard input area is configured in the mobile terminal, and the coordinate range is related to the division of the handwriting input area and the virtual keyboard input area on the touch screen. The keyboard input area is located in the upper and lower parts of the touch screen of the mobile terminal. Therefore, the coordinate range of the input area may only include the vertical coordinate, that is, it only needs to be able to distinguish the handwriting input area from the virtual keyboard input area. the

当移动终端接收到触摸屏点击事件时,移动终端获取该触摸屏点击事件的起始位置的纵坐标,根据配置的手写输入区域以及虚拟键盘输入区域的坐标范围,判断触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域。 When the mobile terminal receives a touch screen click event, the mobile terminal obtains the ordinate of the start position of the touch screen click event, and judges that the start position of the touch screen click event is in the handwriting position according to the configured handwriting input area and the coordinate range of the virtual keyboard input area. Input area or virtual keyboard input area. the

步骤303,移动终端将该触摸屏点击事件向键盘输入控制模块发送,由键盘输入控制模块对该触摸屏点击事件进行相应的输入处理;然后,返回步骤301。 Step 303 , the mobile terminal sends the touch screen click event to the keyboard input control module, and the keyboard input control module performs corresponding input processing on the touch screen click event; then, returns to step 301 . the

移动终端判断触摸屏点击事件的起始位置处于虚拟键盘输入区域,移动终端判断当前输入模式为虚拟键盘输入模式,将该触摸屏点击事件向键盘输入控制模块发送。 The mobile terminal judges that the initial position of the touch screen click event is in the virtual keyboard input area, the mobile terminal judges that the current input mode is the virtual keyboard input mode, and sends the touch screen click event to the keyboard input control module. the

步骤304,移动终端判断该触摸屏点击事件在触摸屏上的移动长度是否大于配置的标准长度;如果判断结果为小于,执行步骤305;如果判断结果为大于,执行步骤306。 In step 304, the mobile terminal judges whether the movement length of the touch screen click event on the touch screen is greater than the configured standard length; if the judgment result is less, execute step 305; if the judgment result is greater, execute step 306. the

步骤305,移动终端判断该触摸屏点击事件为光标移动事件,根据该光标移动事件进行相应处理,然后,返回步骤301。 Step 305 , the mobile terminal judges that the touch screen click event is a cursor movement event, performs corresponding processing according to the cursor movement event, and then returns to step 301 . the

具体的,光标移动事件可以对应于用户使用手写输入时,点击已录入文本,移动光标的位置,进行文本编辑等相关操作。光标移动后,重新对触屏事件进行状态判断。 Specifically, the cursor movement event may correspond to when the user uses handwriting input, clicks on the entered text, moves the position of the cursor, and performs related operations such as text editing. After the cursor moves, the state judgment of the touch screen event is performed again. the

步骤306,移动终端将该触摸屏点击事件向手写输入控制模块发送,由手写输入控制模块对该触摸屏点击事件进行相应的输入处理,同时,将后续触摸屏点击事件设置为手写输入事件。 Step 306, the mobile terminal sends the touch screen click event to the handwriting input control module, and the handwriting input control module performs corresponding input processing on the touch screen click event, and at the same time sets subsequent touch screen click events as handwriting input events. the

具体的,移动终端判断触摸屏点击事件的起始位置处于手写输入区域且该触摸屏点击事件在触摸屏上的移动长度是否大于配置的标准长度时,移动终端判断当前输入模式为手写输入模式,将触摸屏点击事件向移动终端输入控制模块发送;考虑到手写输入的连续性,移动终端在判断当前输入模式为手写输入模式后,将后续移动终端输入模式设置为手写输入模式,执行步骤307。 Specifically, when the mobile terminal judges that the initial position of the touch screen click event is in the handwriting input area and whether the moving length of the touch screen click event on the touch screen is greater than the configured standard length, the mobile terminal determines that the current input mode is the handwriting input mode, and clicks on the touch screen. The event is sent to the mobile terminal input control module; considering the continuity of the handwriting input, after the mobile terminal judges that the current input mode is the handwriting input mode, the subsequent mobile terminal input mode is set to the handwriting input mode, and step 307 is executed. the

步骤307,移动终端接收触摸屏点击事件,判断当前触摸屏点击事件的发生时间距离上一次触摸屏点击的时间是否大于识别等待时间;如果判断结果为大于,返回步骤301;否则,执行步骤308。 Step 307, the mobile terminal receives the touch screen click event, and judges whether the time of occurrence of the current touch screen click event is greater than the recognition waiting time from the time of the last touch screen click; if the judgment result is greater than, return to step 301; otherwise, execute step 308. the

具体的,移动终端内可以设置计时器件,例如计时器,统计当前触摸屏点击事件的发生时间距离上一次触摸屏点击的时间。当前触摸屏点击事件的发生时间距离上一次触摸屏点击的时间超过识别等待时间时,移动终端判断一次手写输入已完成,移动终端开始进行下一次输入,重新执行步骤301。 Specifically, a timing device, such as a timer, may be set in the mobile terminal to count the time between the occurrence time of the current touch-screen click event and the time of the last touch-screen click. When the time between the current touch screen click event and the last touch screen click exceeds the recognition waiting time, the mobile terminal judges that a handwriting input has been completed, and the mobile terminal starts the next input, and re-executes step 301 . the

步骤308,移动终端判断当前输入模式为手写输入,将当前触摸屏事件确定为手写输入事件进行相应处理。 In step 308, the mobile terminal judges that the current input mode is handwriting input, determines the current touch screen event as a handwriting input event, and performs corresponding processing. the

具体的,当移动终端判断当前输入模式为手写输入时,移动终端不再区分触摸屏事件的输入区域,而是直接作为手写输入事件进行处理。 Specifically, when the mobile terminal determines that the current input mode is handwriting input, the mobile terminal no longer distinguishes the input area of the touch screen event, but directly processes it as a handwriting input event. the

本发明实施例三提供一种输入方法,如图4所示,终端设备仍然以移动终端为例,包括以下步骤: Embodiment 3 of the present invention provides an input method, as shown in Figure 4, the terminal device still takes a mobile terminal as an example, including the following steps:

步骤401,移动终端接收触摸屏点击事件,判断当前输入模式是否为手写输入模式;如果是,则执行步骤402;否则,执行步骤404。 Step 401 , the mobile terminal receives a touch screen click event, and judges whether the current input mode is handwriting input mode; if yes, execute step 402 ; otherwise, execute step 404 . the

具体的,由于移动终端进行手写输入时,会将一次文字输入结束之前的触摸屏点击事件都作为手写输入事件处理,因此,移动终端在接收到触摸屏点击事件后,首先判断当前状态是否为手写输入模式。 Specifically, when the mobile terminal performs handwriting input, all touch-screen click events before the end of text input are processed as handwriting input events. Therefore, after receiving the touch-screen click event, the mobile terminal first judges whether the current state is the handwriting input mode. . the

步骤402,移动终端判断当前触摸屏点击事件距离上次触摸屏点击事件的时间间隔是否超过识别等待时间;如果没有超过,则执行步骤403;否则,执行步骤404。 Step 402 , the mobile terminal judges whether the time interval between the current touch screen click event and the last touch screen click event exceeds the recognition waiting time; if not, execute step 403 ; otherwise, execute step 404 . the

步骤403,移动终端将当前触摸屏点击事件作为手写输入事件处理,且不判断当前触摸屏点击事件的状态。 Step 403, the mobile terminal handles the current touch screen click event as a handwriting input event, and does not judge the state of the current touch screen click event. the

具体的,此时,考虑到用户一次手写输入还没有结束,因此,对当前的触摸屏点击事件不做判断,而直接发送到手写输入处理模块进行相应的事件处理。 Specifically, at this time, considering that the user's handwriting input has not yet ended, the current touch screen click event is not judged, but is directly sent to the handwriting input processing module for corresponding event processing. the

步骤404,移动终端进入触屏事件判断状态,判断当前触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域,并进行相应处理。 Step 404, the mobile terminal enters a touch screen event judging state, judges that the start position of the current touch screen click event is in the handwriting input area or the virtual keyboard input area, and performs corresponding processing. the

具体的,本步骤与步骤301和302中的操作相同或者相似,可以参考步骤301和302,在此不再详细叙述。 Specifically, this step is the same as or similar to the operations in steps 301 and 302, and reference may be made to steps 301 and 302, which will not be described in detail here. the

通过采用本发明实施例提供的方法,移动终端接收触摸屏点击事件,根据触摸屏点击事件的起始位置处于手写输入区域或者键盘输入区域,判断触摸屏点击事件为手写输入事件或者虚拟键盘输入事件,并进行相应的输入处理;从而可以实现手写输入和虚拟键盘输入的协同输入,提高了触摸屏移动终端的输入速度。 By adopting the method provided by the embodiment of the present invention, the mobile terminal receives the touch screen click event, according to the initial position of the touch screen click event being in the handwriting input area or the keyboard input area, judges that the touch screen click event is a handwriting input event or a virtual keyboard input event, and performs Corresponding input processing; thus, the collaborative input of handwriting input and virtual keyboard input can be realized, and the input speed of the touch screen mobile terminal is improved. the

本发明的实施例四提供一种输入设备,如图5所示,包括: Embodiment 4 of the present invention provides an input device, as shown in Figure 5, comprising:

输入事件判断单元10,用于接收触摸屏点击事件,判断所述触摸屏点击 事件的起始位置处于手写输入区域或者虚拟键盘输入区域;根据所述触摸屏点击事件的起始位置的判断结果确定所述触摸屏点击事件为手写输入事件或者虚拟键盘输入事件; Input event judging unit 10, is used for receiving touch-screen click event, judges that the initial position of described touch-screen click event is in handwriting input area or virtual keyboard input area; Determine the touch-screen according to the judgment result of the initial position of described touch-screen click event The click event is a handwriting input event or a virtual keyboard input event;

处理单元20,与所述输入事件判断单元10连接,用于根据所述输入事件判断单元10的判断结果执行手写输入或者虚拟键盘输入。 The processing unit 20 is connected with the input event judging unit 10 and configured to perform handwriting input or virtual keyboard input according to the judging result of the input event judging unit 10 . the

所述输入事件判断单元10具体用于: The input event judging unit 10 is specifically used for:

获取所述触摸屏点击事件的起始位置的坐标; Obtain the coordinates of the starting position of the touch screen click event;

根据配置的所述手写输入区域或者虚拟键盘输入区域的坐标范围判断所述触摸屏点击事件的起始位置所属于的区域。 According to the configured coordinate range of the handwriting input area or the virtual keyboard input area, the area to which the start position of the touch screen click event belongs is determined. the

所述输入事件判断单元10还用于: The input event judging unit 10 is also used for:

当所述触摸屏点击事件的起始位置处于所述手写输入区域时,进一步判断所述触摸屏点击事件的移动距离是否大于配置的标准距离;若所述触摸屏点击事件的移动距离大于配置的标准距离,确定所述触摸屏点击事件为手写输入事件;若所述触摸屏点击事件的移动距离小于或者等于配置的标准距离,确定所述触摸屏点击事件为光标移动事件; When the starting position of the touch screen click event is in the handwriting input area, it is further judged whether the moving distance of the touch screen click event is greater than the configured standard distance; if the moving distance of the touch screen click event is greater than the configured standard distance, Determine that the touch screen click event is a handwriting input event; if the moving distance of the touch screen click event is less than or equal to the configured standard distance, determine that the touch screen click event is a cursor movement event;

当所述触摸屏点击事件的起始位置处于所述虚拟键盘输入区域时,判断所述触摸屏点击事件为虚拟键盘输入事件。 When the start position of the touch screen click event is in the virtual keyboard input area, it is determined that the touch screen click event is a virtual keyboard input event. the

所述输入事件判断单元10还用于: The input event judging unit 10 is also used for:

确定所述触摸屏点击事件为手写输入事件之后,判断后续触摸屏点击事件距离上一次触摸屏点击事件的间隔时间是否超过识别等待时间; After determining that the touch screen click event is a handwriting input event, determine whether the interval between the subsequent touch screen click event and the last touch screen click event exceeds the recognition waiting time;

如果判断结果为否,将后续触摸屏点击事件确定为手写输入事件进行相应处理; If the judgment result is no, determine the subsequent touch screen click event as a handwriting input event and process it accordingly;

如果判断结果为是,重新执行判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域的步骤。 If the judging result is yes, re-execute the step of judging that the start position of the touch screen click event is in the handwriting input area or the virtual keyboard input area. the

所述输入事件判断单元10还用于: The input event judging unit 10 is also used for:

判断当前输入模式是否为手写输入模式; Determine whether the current input mode is handwriting input mode;

如果当前输入模式是手写输入模式,则进一步判断当前触摸屏点击事件距离上次触摸屏点击事件的时间间隔是否超过配置的标准时间;若判断结果 为否,则保持手写输入状态; If the current input mode is the handwriting input mode, it is further judged whether the time interval between the current touch screen click event and the last touch screen click event exceeds the configured standard time; if the judgment result is no, the handwriting input state is maintained;

如果当前输入模式不是手写输入模式,则执行判断所述触摸屏点击事件的起始位置处于手写输入区域或者虚拟键盘输入区域的步骤。 If the current input mode is not the handwriting input mode, then perform the step of judging that the start position of the touch screen click event is in the handwriting input area or the virtual keyboard input area. the

通过采用本发明实施例提供的设备,终端设备接收触摸屏点击事件,根据触摸屏点击事件的起始位置处于手写输入区域或者键盘输入区域,判断触摸屏点击事件为手写输入事件或者虚拟键盘输入事件,并进行相应的输入处理;从而可以实现手写输入和虚拟键盘输入的协同输入,提高了触摸屏终端设备的输入速度。 By adopting the device provided by the embodiment of the present invention, the terminal device receives the touch screen click event, judges that the touch screen click event is a handwriting input event or a virtual keyboard input event according to the initial position of the touch screen click event being in the handwriting input area or the keyboard input area, and performs Corresponding input processing; thus, the coordinated input of handwriting input and virtual keyboard input can be realized, and the input speed of the touch screen terminal device can be improved. the

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention. the

本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。 Those skilled in the art can understand that the drawing is only a schematic diagram of a preferred embodiment, and the modules or processes in the drawing are not necessarily necessary for implementing the present invention. the

本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。 Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, or can be located in one or more devices different from the embodiment according to corresponding changes. The modules in the above embodiments can be combined into one module, and can also be further split into multiple sub-modules. the

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。 The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments. the

以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。 The above disclosures are only a few specific embodiments of the present invention, however, the present invention is not limited thereto, and any changes conceivable by those skilled in the art shall fall within the protection scope of the present invention. the

Claims (6)

CN200910093074.3A2009-09-282009-09-28Input method and input equipmentExpired - Fee RelatedCN102033682B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN200910093074.3ACN102033682B (en)2009-09-282009-09-28Input method and input equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN200910093074.3ACN102033682B (en)2009-09-282009-09-28Input method and input equipment

Publications (2)

Publication NumberPublication Date
CN102033682A CN102033682A (en)2011-04-27
CN102033682Btrue CN102033682B (en)2014-09-10

Family

ID=43886646

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN200910093074.3AExpired - Fee RelatedCN102033682B (en)2009-09-282009-09-28Input method and input equipment

Country Status (1)

CountryLink
CN (1)CN102033682B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR101978687B1 (en)2011-11-152019-05-16삼성전자주식회사Method for inputting a character in touch screen terminal and apparatus thereof
CN102750106B (en)*2012-07-022016-05-18安徽科大讯飞信息科技股份有限公司Full frame handwriting recognition input method and system
CN103853472A (en)*2012-11-302014-06-11英业达科技有限公司System and method for providing drawing operation in touch screen
KR20140110627A (en)*2013-03-082014-09-17엘지전자 주식회사Mobile terminal and control method for the mobile terminal
CN103226445A (en)*2013-05-102013-07-31广东国笔科技股份有限公司Handwriting input method, system and terminal
JP6543960B2 (en)*2015-02-272019-07-17セイコーエプソン株式会社 Display device, display control method and program
CN105930141A (en)*2016-04-012016-09-07乐视控股(北京)有限公司Input mode setting method and apparatus
CN107256124B (en)*2017-04-212023-01-10海信视像科技股份有限公司Electronic whiteboard touch control method and device
CN109213412A (en)*2017-07-032019-01-15北京搜狗科技发展有限公司Input method, device and machine readable media
CN108037875B (en)*2017-12-122020-06-02北京小米移动软件有限公司Method, device and storage medium for switching input modes

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1338671A (en)*2001-09-262002-03-06倚天资讯股份有限公司Input device integrating handwrinting recognition and input with virtual keyboard input
CN1991717A (en)*2005-12-282007-07-04中兴通讯股份有限公司Virtual keyboard and hand-write synergic input system and realization method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1338671A (en)*2001-09-262002-03-06倚天资讯股份有限公司Input device integrating handwrinting recognition and input with virtual keyboard input
CN1991717A (en)*2005-12-282007-07-04中兴通讯股份有限公司Virtual keyboard and hand-write synergic input system and realization method thereof

Also Published As

Publication numberPublication date
CN102033682A (en)2011-04-27

Similar Documents

PublicationPublication DateTitle
CN102033682B (en)Input method and input equipment
TWI541717B (en)Managing real-time handwriting recognition
TWI653545B (en)Method, system and non-transitory computer-readable media for real-time handwriting recognition
CN103246449B (en)The screen unlock method of mobile terminal and mobile terminal
EP3002664A1 (en)Text processing method and touchscreen device
TW201516887A (en)Integrating stroke-distribution information into spatial feature extraction for automatic handwriting recognition
TW201512994A (en) Multi-handwriting handwriting recognition using a universal recognizer
CN104541239A (en)Text select and enter
WO2023005920A1 (en)Screen splitting method and apparatus, and electronic device
WO2012130156A1 (en)Handwriting input method and apparatus for touch device, and electronic device
CN112463016B (en)Display control method and device, electronic equipment and wearable display equipment
CN105072278A (en) A method and mobile phone for quickly dialing a designated contact in a black screen state
CN103268198A (en)Gesture input method and device
CN106383657A (en)Handwriting input control method and handwriting input control device
CN104978074B (en)Formula input method and device
CN103294175A (en)Electronic device and method for electronic device to automatically switch input modes
CN107704137B (en) Multi-touch method and device
US20160092104A1 (en)Methods, systems and devices for interacting with a computing device
CN107645612A (en)A kind of information processing method and terminal device
CN105760047A (en)Method and system for rapidly returning to system desktop through pressure touch technology
CN100432901C (en)Mobile terminal having keyboard and hand-write synergic input function
CN104516566A (en)Handwriting input method and device
CN102609203A (en)System and method for deleting characters in editing window of mobile terminal
JP2003005902A (en) Character input device, information processing device, control method of character input device, and storage medium
CN100454224C (en)Mobile terminal having virtual keyboard and hand-write synergic input function

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20140910

Termination date:20210928

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp