Nothing Special   »   [go: up one dir, main page]

CN105005407B - Method and device for processing connection of virtual object in touch screen - Google Patents

Method and device for processing connection of virtual object in touch screen Download PDF

Info

Publication number
CN105005407B
CN105005407B CN201510325450.2A CN201510325450A CN105005407B CN 105005407 B CN105005407 B CN 105005407B CN 201510325450 A CN201510325450 A CN 201510325450A CN 105005407 B CN105005407 B CN 105005407B
Authority
CN
China
Prior art keywords
virtual objects
virtual object
lifting position
virtual
touch screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510325450.2A
Other languages
Chinese (zh)
Other versions
CN105005407A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201510325450.2A priority Critical patent/CN105005407B/en
Publication of CN105005407A publication Critical patent/CN105005407A/en
Application granted granted Critical
Publication of CN105005407B publication Critical patent/CN105005407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for processing a connection line of a virtual object in a touch screen, which comprises the following steps: displaying the first virtual object and the second virtual object in the touch screen; intercepting a sliding operation triggered by taking a first virtual object as a starting point in the touch screen; acquiring a lifting position corresponding to the sliding operation; judging whether the sliding operation connects the first virtual object and the second virtual object or not according to the angle between the uplifted position and the first virtual object and the second virtual object so as to output the judgment result; and responding to the sliding operation according to the judgment result. In addition, a connecting line processing device of the virtual object in the touch screen matched with the method is also provided. The method and the device for processing the connection line of the virtual objects in the touch screen can enable the connection triggered by the user between the virtual objects to be adaptive in visual display and response.

Description

触摸屏幕中虚拟对象的连线处理方法和装置Connection processing method and device for virtual objects in touch screen

技术领域technical field

本发明涉及计算机应用技术领域,特别涉及一种触摸屏幕中虚拟对象的连线处理方法和装置。The invention relates to the technical field of computer applications, in particular to a method and device for processing connections of virtual objects in a touch screen.

背景技术Background technique

随着计算机应用技术的迅猛发展,越来越多的应用通过各种虚拟对象的显示,以实现应用界面中各种内容的表达。例如,通过应用界面中两个虚拟对象的显示,指示用户触发连线两个虚拟对象的滑动操作,以在该滑动操作连线两个虚拟对象时执行相应的处理,例如,触发当前界面的解锁操作等。With the rapid development of computer application technology, more and more applications realize the expression of various contents in the application interface through the display of various virtual objects. For example, through the display of two virtual objects in the application interface, instruct the user to trigger the sliding operation of connecting the two virtual objects, so as to perform corresponding processing when the sliding operation connects the two virtual objects, for example, triggering the unlocking of the current interface operation etc.

然而,该虚拟对象将是根据应用界面中的布局进行设置的,因此,该虚拟对象以及虚拟对象之间的距离可能较小,有可能会造成感官上似乎连接了,而实际上两个虚拟对象之间并未连接;此外,若触发的滑动操作过快,则也可能会造成此情况的发生。However, the virtual object will be set according to the layout in the application interface. Therefore, the virtual object and the distance between the virtual objects may be small, which may cause the perception that the virtual objects seem to be connected, but in fact the two virtual objects are not connected; this can also happen if the swipe is triggered too quickly.

因此,现有的应用中识别用户在虚拟对象之间触发的连接将存在着视觉显示和响应不相适应的局限性。Therefore, existing applications that identify connections triggered by users between virtual objects will have a limitation that visual display and response are not compatible.

发明内容Contents of the invention

基于此,有必要提供一种能使得用户在虚拟对象之间触发的连接在视觉显示和响应上相适应的触摸屏幕中虚拟对象的连线处理方法。Based on this, it is necessary to provide a connection processing method for virtual objects on a touch screen that can make the connection triggered by the user between virtual objects adaptable in terms of visual display and response.

另外,还有必要提供一种能使得用户在虚拟对象之间触发的连接在视觉显示和响应上相适应的触摸屏幕中虚拟对象的连接处理装置。In addition, it is also necessary to provide a connection processing device for virtual objects in a touch screen that can adapt the visual display and response of the connection triggered by the user between virtual objects.

一种触摸屏幕中虚拟对象的连线处理方法,包括:A connection processing method for a virtual object in a touch screen, comprising:

显示第一虚拟对象和第二虚拟对象于触摸屏幕中;displaying the first virtual object and the second virtual object on the touch screen;

侦听所述触摸屏幕中以第一虚拟对象为起始触发的滑动操作;Listening to the sliding operation triggered starting from the first virtual object in the touch screen;

获取所述滑动操作对应的抬起位置;Obtain the lifting position corresponding to the sliding operation;

根据所述抬起位置相对所述第一虚拟对象和第二虚拟对象之间的角度判定所述滑动操作是否连线所述第一虚拟对象和第二虚拟对象,以输出所述判定结果;judging whether the sliding operation connects the first virtual object and the second virtual object according to the angle between the lifting position relative to the first virtual object and the second virtual object, so as to output the judging result;

根据所述判定结果响应所述滑动操作。Responding to the sliding operation according to the determination result.

在其中一个实施例中,所述根据所述抬起位置相对所述第一虚拟对象和第二虚拟对象之间的角度判定所述滑动操作是否连接所述第一虚拟对象和第二虚拟对象,以输出所述判定结果的步骤之前,所述方法还包括:In one of the embodiments, it is determined whether the sliding operation connects the first virtual object and the second virtual object according to the angle between the lifting position relative to the first virtual object and the second virtual object, Before the step of outputting the determination result, the method also includes:

判断所述抬起位置是否位于所述第二虚拟对象的限定区域,若为否,则进入所述抬起位置相对所述第一虚拟对象和第二虚拟对象之间的角度判定所述滑动操作是否连接所述第一虚拟对象和第二虚拟对象,以输出所述判定结果的步骤。judging whether the lifting position is located in the limited area of the second virtual object, if not, entering the lifting position relative to the angle between the first virtual object and the second virtual object to determine the sliding operation Whether to connect the first virtual object and the second virtual object to output the determination result.

在其中一个实施例中,所述方法还包括:In one embodiment, the method also includes:

若判断到所述抬起位置位于所述第二虚拟对象的限定区域,则输出连线所述第一虚拟对象和第二虚拟对象的判定结果。If it is determined that the lifting position is located in the limited area of the second virtual object, output a determination result of connecting the first virtual object and the second virtual object.

在其中一个实施例中,所述根据所述抬起位置相对所述第一虚拟对象和第二虚拟对象之间的角度判定所述滑动操作是否连接所述第一虚拟对象和第二虚拟对象,以输出所述判定结果的步骤包括:In one of the embodiments, it is determined whether the sliding operation connects the first virtual object and the second virtual object according to the angle between the lifting position relative to the first virtual object and the second virtual object, The step of outputting the determination result comprises:

根据所述第一虚拟对象、第二虚拟对象和抬起位置得到所述第一虚拟对象和第二虚拟对象相对所述抬起位置的位置关系;obtaining a positional relationship between the first virtual object and the second virtual object relative to the lifted position according to the first virtual object, the second virtual object, and the lifted position;

由所述位置关系得到所述抬起位置相对所述第一虚拟对象和第二虚拟对象之间连线的夹角;Obtaining the included angle of the lifting position relative to the line between the first virtual object and the second virtual object from the positional relationship;

根据所述夹角判断所述抬起位置是否为所述第二虚拟对象所在限定区域的延长点,若为是,则输出连线所述第一虚拟对象和第二虚拟对象的判定结果。It is judged according to the included angle whether the lifting position is an extension point of the limited area where the second virtual object is located, and if yes, output a judgment result of connecting the first virtual object and the second virtual object.

在其中一个实施例中,所述根据所述判定结果响应所述滑动操作的步骤包括:In one of the embodiments, the step of responding to the sliding operation according to the determination result includes:

将所述第一虚拟对象和第二虚拟对象之间的连线效果显示于所述触摸屏幕中,并执行所述滑动操作对应的响应处理。Displaying the connection effect between the first virtual object and the second virtual object on the touch screen, and executing response processing corresponding to the sliding operation.

一种触摸屏幕中虚拟对象的连线处理装置,包括:A connection processing device for virtual objects in a touch screen, comprising:

对象显示模块,用于显示第一虚拟对象和第二虚拟对象于触摸屏幕中;The object display module is used to display the first virtual object and the second virtual object on the touch screen;

侦听模块,用于侦听所述触摸屏幕中以第一虚拟对象为起始触发的滑动操作;A listening module, configured to listen to a sliding operation triggered starting from the first virtual object in the touch screen;

位置获取模块,用于获取所述滑动操作对应的抬起位置;A position acquisition module, configured to acquire the lifting position corresponding to the sliding operation;

角度判定模块,用于根据所述抬起位置相对所述第一虚拟对象和第二虚拟对象之间的角度判定所述滑动操作是否连线所述第一虚拟对象和第二虚拟对象,以输出所述判定结果;An angle determination module, configured to determine whether the sliding operation connects the first virtual object and the second virtual object according to the angle between the lifting position relative to the first virtual object and the second virtual object, to output said determination result;

响应模块,用于根据所述判定结果响应所述滑动操作。A response module, configured to respond to the sliding operation according to the determination result.

在其中一个实施例中,所述装置还包括:In one of the embodiments, the device also includes:

区域判断模块,用于判断所述抬起位置是否位于所述第二虚拟对象的限定区域,若为否,则通知所述角度判定模块。The area judging module is used to judge whether the lifting position is located in the limited area of the second virtual object, and if not, notify the angle judging module.

在其中一个实施例中,所述区域判断模块还用于若判断到所述抬起位置位于所述第二虚拟对象的限定区域,则输出连线所述第一虚拟对象和第二虚拟对象的判定结果。In one of the embodiments, the area judging module is further configured to output a line connecting the first virtual object and the second virtual object if it is judged that the lifting position is located in the limited area of the second virtual object. judgement result.

在其中一个实施例中,所述角度判定模块包括:In one of the embodiments, the angle determination module includes:

相对关系获取单元,用于根据所述第一虚拟对象、第二虚拟对象和抬起位置得到所述第一虚拟对象和第二虚拟对象相对所述抬起位置的位置关系;a relative relationship acquiring unit, configured to obtain the positional relationship between the first virtual object and the second virtual object relative to the lifted position according to the first virtual object, the second virtual object and the lifted position;

夹角运算单元,用于由所述位置关系得到所述抬起位置相对所述第一虚拟对象和第二虚拟对象之间连线的夹角;An included angle calculation unit, configured to obtain the included angle of the lifting position relative to the line between the first virtual object and the second virtual object from the positional relationship;

延长判断单元,用于根据所述夹角判断所述抬起位置是否为所述第二虚拟对象所在限定区域的延长点,若为是,则输出连线所述第一虚拟对象和第二虚拟对象的判定结果。The extension judging unit is used to judge whether the lifting position is an extension point of the limited area where the second virtual object is located according to the included angle, and if so, output a line connecting the first virtual object and the second virtual object. The judgment result of the object.

在其中一个实施例中,所述响应模块进一步用于将所述第一虚拟对象和第二虚拟对象之间的连线效果显示于所述触摸屏幕中,并执行所述滑动操作对应的响应处理。In one of the embodiments, the response module is further configured to display the connection effect between the first virtual object and the second virtual object on the touch screen, and perform response processing corresponding to the sliding operation .

为解决上述技术问题,将采用如下技术方案:In order to solve the above technical problems, the following technical solutions will be adopted:

由上述技术方案可知,显示了第一虚拟对象和第二虚拟对象的触摸屏幕中,侦听触摸屏幕中的滑动操作,在得到以第一虚拟对象为起始触发的滑动操作时,获取该滑动操作对应的抬起位置,根据抬起位置相对第一虚拟对象和第二虚拟对象之间的角度判定滑动操作是否连线第一虚拟对象和第二虚拟对象,以输出相应的判定结果,进而根据该判定结果响应滑动操作,在此连线第一虚拟对象和第二虚拟对象的过程中,由于是根据抬起位置相对于第一虚拟对象和第二虚拟对象之间的角度判定该抬起位置所对应的滑动是否滑动至第二虚拟对象,以实现第一虚拟对象和第二虚拟对象的连线,而并不会将该滑动操作的抬起位置仅限于第二虚拟对象上,在对于第二虚拟对象较小或者第一虚拟对象和第二虚拟对象之间的距离较小的情况下能够自适应是匹配该情况,以将大致实现连线或者该连线连接第一虚拟对象和第二虚拟对象并延伸的情况,即视觉上已经实现两者之间连线时,将判定滑动操作触发了两者之间的连线,使得用户在第一虚拟对象和第二虚拟对象之间触发的连接在视觉显示和响应上相适应。It can be seen from the above technical solution that on the touch screen displaying the first virtual object and the second virtual object, the sliding operation on the touch screen is monitored, and when the sliding operation triggered starting from the first virtual object is obtained, the sliding operation is acquired. Operate the corresponding lifting position, and judge whether the sliding operation connects the first virtual object and the second virtual object according to the angle between the lifting position relative to the first virtual object and the second virtual object, so as to output the corresponding judgment result, and then according to The judgment result responds to the sliding operation. In the process of connecting the first virtual object and the second virtual object, the lifting position is determined according to the angle between the first virtual object and the second virtual object. Whether the corresponding slide slides to the second virtual object to realize the connection between the first virtual object and the second virtual object, and the lifting position of the sliding operation is not limited to the second virtual object. When the two virtual objects are small or the distance between the first virtual object and the second virtual object is small, it can be adapted to match the situation, so as to roughly realize the connection or the connection between the first virtual object and the second virtual object. When the virtual objects are extended, that is, when the connection between the two has been realized visually, it will be determined that the sliding operation has triggered the connection between the two, so that the user triggers the connection between the first virtual object and the second virtual object Connections adapt visually and responsively.

附图说明Description of drawings

图1是一个实施例中触摸屏幕中虚拟对象的连线处理方法的流程图;Fig. 1 is a flowchart of a method for processing connections of virtual objects in a touch screen in an embodiment;

图2是另一个实施例中触摸屏幕中虚拟对象的连线处理方法的流程图;Fig. 2 is a flowchart of a method for processing connections of virtual objects in a touch screen in another embodiment;

图3是一个实施例中根据抬起位置相对第一虚拟对象和第二虚拟对象之间的角度判定滑动操作是否连线第一虚拟对象和第二虚拟对象,以输出判定结果的方法流程图;Fig. 3 is a flowchart of a method for outputting a judgment result by judging whether the sliding operation connects the first virtual object and the second virtual object according to the angle between the lifted position and the first virtual object and the second virtual object;

图4是一个实施例中第一虚拟对象和第二虚拟对象的应用场景示意图;Fig. 4 is a schematic diagram of an application scenario of a first virtual object and a second virtual object in an embodiment;

图5是图4中连线第一虚拟对象和第二虚拟对象的应用示意示意图;Fig. 5 is a schematic diagram of the application of connecting the first virtual object and the second virtual object in Fig. 4;

图6是一个实施例中触摸屏幕中虚拟对象的连线处理装置的结构框图;Fig. 6 is a structural block diagram of a connection processing device for virtual objects in a touch screen in an embodiment;

图7是图6中角度判定模块的结构框图。Fig. 7 is a structural block diagram of the angle judging module in Fig. 6 .

具体实施方式Detailed ways

体现本发明特征与优点的典型实施方式将在以下的说明中详细叙述。应理解的是本发明能够在不同的实施方式上具有各种的变化,其皆不脱离本发明的范围,且其中的说明及图示在本质上是当作说明之用,而非用以限制本发明。Typical embodiments that embody the features and advantages of the present invention will be described in detail in the following description. It should be understood that the present invention is capable of various changes in different embodiments without departing from the scope of the present invention, and that the description and illustrations therein are illustrative in nature and not limiting. this invention.

如前所述,对于触摸屏幕中显示的各种虚拟对象而言,其大小以及相互之间的距离均是根据界面内容和布局分别进行设置的,而用户在触摸屏幕中滑动操作所对应滑动速度、滑动起始和终止位置的精准性是与用户习惯、用户手指的粗细以及虚拟对象的大小、相互之间的距离密切相关的,因此,在用户触发进行触摸屏幕中虚拟对象之间的连线的过程中,需要充分考虑如上所述的相关内容,以避免出现虚拟对象的触发连线过程中看似已经连接两个虚拟对象,而实际输出两个虚拟对象未连线的判定结果,进而存在着当前视觉显示和对滑动操作的响应不相匹配的问题。As mentioned above, for various virtual objects displayed on the touch screen, their sizes and distances between them are set respectively according to the interface content and layout, and the sliding speed corresponding to the user's sliding operation on the touch screen , The accuracy of the start and end positions of sliding is closely related to the user's habits, the thickness of the user's fingers, the size of the virtual objects, and the distance between them. Therefore, when the user triggers the touch screen to connect the virtual objects In the process, it is necessary to fully consider the above-mentioned relevant content, so as to avoid the occurrence of the judgment result that the two virtual objects are not connected when the trigger connection process of the virtual object seems to have been connected, and the two virtual objects are not connected. The problem is that the current visual display does not match the response to the swipe operation.

因此,基于以上问题,特提出了一种触摸屏幕中虚拟对象的连线处理方法。该方法依赖于计算机程序,该计算机程序将运行在计算机系统上,该计算机系统可运行于智能手机、平板电脑、个人电脑、笔记本电脑、学习机和家教机等终端设备中。Therefore, based on the above problems, a method for processing connections of virtual objects in a touch screen is proposed. The method relies on a computer program, and the computer program will run on a computer system, and the computer system can run on terminal devices such as smart phones, tablet computers, personal computers, notebook computers, learning machines, and tutoring machines.

在一个实施例中,具体的,该方法如图1所示,包括:In one embodiment, specifically, the method, as shown in Figure 1, includes:

步骤110,显示第一虚拟对象和第二虚拟对象于触摸屏幕中。Step 110, displaying the first virtual object and the second virtual object on the touch screen.

本实施例中,第一虚拟对象是触摸屏幕的显示界面中的任一虚拟对象,而第二虚拟对象则是触摸屏幕的显示界面中区别于第一虚拟对象的任一虚拟对象。In this embodiment, the first virtual object is any virtual object in the display interface of the touch screen, and the second virtual object is any virtual object in the display interface of the touch screen that is different from the first virtual object.

例如,虚拟对象可以是触摸屏幕的显示界面中的任一元素,例如,对于触摸屏幕显示的锁屏界面,虚拟对象则包括锁屏界面中触发滑动操作的起始元素和终止元素。第一虚拟对象可为起始元素,而第二虚拟对象则可为终止元素。For example, the virtual object may be any element in the display interface of the touch screen. For example, for the lock screen interface displayed on the touch screen, the virtual object includes a start element and an end element in the lock screen interface that trigger the sliding operation. The first virtual object can be the start element, and the second virtual object can be the end element.

通过在触摸屏幕中进行第一虚拟对象和第二虚拟对象的显示,可通过各种显示效果或者提示消息的显示对即将触发的滑动操作进行提示,以提示用户对第一虚拟对象和第二虚拟对象触发滑动操作,输入第一虚拟对象和第二虚拟对象之间的连线。By displaying the first virtual object and the second virtual object on the touch screen, various display effects or the display of prompt messages can be used to prompt the sliding operation to be triggered, so as to prompt the user to understand the first virtual object and the second virtual object. The object triggers a sliding operation to input a connection line between the first virtual object and the second virtual object.

步骤130,侦听触摸屏幕中以第一虚拟对象为起始触发的滑动操作。Step 130, listening to a sliding operation triggered starting from the first virtual object on the touch screen.

本实施例中,实时侦听触摸屏幕中输入的各种操作,以得到以第一虚拟对象为起始触发的滑动操作。In this embodiment, various operations input on the touch screen are monitored in real time to obtain a sliding operation triggered starting from the first virtual object.

在优选的实施例中,预先为第一虚拟对象设置限定区域,该限定区域是第一虚拟对象所在位置向四周延伸形成在的一定范围,例如,其可为以第一虚拟对象所在位置为中心的圆形区域。In a preferred embodiment, a limited area is set for the first virtual object in advance, and the limited area is a certain range formed by extending from the position of the first virtual object to the surroundings, for example, it may be centered on the position of the first virtual object circular area.

触摸屏幕中针对第一虚拟对象触发的滑动操作将是以该第一虚拟对象对应的限定区域为起始的,也就是说,在第一虚拟对应的限定区域内触发的任一操作均是与第一虚拟对象相对应的。The sliding operation triggered for the first virtual object on the touch screen will start from the limited area corresponding to the first virtual object, that is, any operation triggered in the limited area corresponding to the first virtual object is related to corresponding to the first virtual object.

通过为第一虚拟对象设置相应的限定区域,使得第一虚拟对象即便形状较小或者触摸屏幕尺寸较小也不会造成用户向第一虚拟对象触发操作的不便,进而可有效避免误操作的发生,降低操作的输入成本。By setting a corresponding limited area for the first virtual object, even if the first virtual object is small in shape or the size of the touch screen is small, it will not cause the inconvenience for the user to trigger operations on the first virtual object, thereby effectively avoiding the occurrence of misoperations , to reduce the input cost of the operation.

步骤150,获取滑动操作对应的抬起位置。Step 150, acquire the lifting position corresponding to the sliding operation.

本实施例中,侦听得到以第一虚拟对象为起始触发的滑动操作之后,将获取该滑动操作对应的滑动轨迹和抬起位置,该抬起位置即为滑动轨迹的终点位置。In this embodiment, after the sliding operation triggered by the first virtual object is intercepted, the sliding track and lifting position corresponding to the sliding operation will be obtained, and the lifting position is the end position of the sliding track.

步骤170,根据抬起位置相对第一虚拟对象和第二虚拟对象之间的角度判定滑动操作是否连线第一虚拟对象和第二虚拟对象,以输出判定结果。Step 170: Determine whether the sliding operation connects the first virtual object and the second virtual object according to the angle between the lifted position and the first virtual object and the second virtual object, so as to output a determination result.

本实施例中,分别定位抬起位置、第一虚拟对象和第二虚拟对象,以确定三者之间的相对位置,进而得到相互之间的角度关系,以此为依据判定该滑动操作的抬起位置是否可视为第二虚拟对象所在位置的延伸,若该滑动操作的抬起位置为第二虚拟对象所在位置的延伸,则将该滑动操作视为以第一虚拟对象为起始,以第二虚拟对象为终点的滑动操作,进而输出连线第一虚拟对象和第二虚拟对象的判定结果。In this embodiment, the lifting position, the first virtual object, and the second virtual object are respectively positioned to determine the relative positions of the three, and then obtain the mutual angular relationship, based on which the lifting position of the sliding operation is determined. Whether the starting position can be regarded as an extension of the position where the second virtual object is located, if the lifting position of the sliding operation is an extension of the position where the second virtual object is located, then the sliding operation is regarded as starting from the first virtual object, and The second virtual object is the sliding operation of the end point, and then the determination result of connecting the first virtual object and the second virtual object is output.

若抬起位置位于第二虚拟对象所在位置,即第二虚拟对象的限定区域以及第二虚拟对象所在位置的延伸,则将其所在滑动操作判定为以第一虚拟对象为起始,第二虚拟对象为终点的滑动操作,进而输出连线第一虚拟对象和第二虚拟对象的判定结果。If the lifting position is located at the location of the second virtual object, that is, the limited area of the second virtual object and the extension of the location of the second virtual object, then it is determined that the sliding operation where it is located starts with the first virtual object, and the second virtual object The sliding operation with the object as the end point, and then output the judgment result of connecting the first virtual object and the second virtual object.

由此将使得抬起位置位于第二虚拟对象所在位置的延伸的滑动操作也能够完成第一虚拟对象和第二虚拟对象的连线,对于用户输入而言,在触摸屏幕较小或者第一虚拟对象、第二虚拟对象相对于触摸屏幕而言形状较小,造成显示的第一虚拟对象和/或第二虚拟对象较小的情况下,用户不再需要先对其进行放大后方可针对第一虚拟对象和第二虚拟对象触发有效的滑动操作,将极大地扩展了其可适用的场景和环境。In this way, the extended sliding operation where the lifting position is located at the position of the second virtual object can also complete the connection between the first virtual object and the second virtual object. For user input, when the touch screen is small or the first virtual object The object and the second virtual object are relatively small in shape compared to the touch screen, so that when the displayed first virtual object and/or the second virtual object are small, the user no longer needs to zoom in on the first virtual object before targeting the first virtual object. The effective sliding operation triggered by the virtual object and the second virtual object will greatly expand its applicable scenes and environments.

步骤190,根据判定结果响应滑动操作。Step 190, respond to the sliding operation according to the determination result.

本实施例中,若判定结果为连线第一虚拟对象和第二虚拟对象,则对该滑动操作进行响应,以在第一虚拟对象和第二虚拟对象之间显示相应的连线效果,并执行预设的处理。In this embodiment, if the determination result is to connect the first virtual object and the second virtual object, respond to the sliding operation to display a corresponding connection effect between the first virtual object and the second virtual object, and Execute preset processing.

通过如上所述的触摸屏幕中虚拟对象的连线处理过程,无论是在触摸屏幕上针对虚拟对象进行快速滑动,还是虚拟对象本身以及虚拟对象之间较小,均能够在显示虚拟对象之间触碰滑动的连线的同时,准确判定当前所进行触碰滑动是连线两个虚拟对象的,因此,有效提高了感知用户操作的精准度,提高了触摸屏幕中的输入效率。Through the above-mentioned connection processing process of the virtual objects on the touch screen, no matter whether the virtual objects are quickly slid on the touch screen, or the virtual objects themselves and the virtual objects are relatively small, it is possible to touch between the displayed virtual objects. While touching and sliding the connection, it is accurately determined that the current touch and swipe is connecting two virtual objects. Therefore, the accuracy of sensing user operations is effectively improved, and the input efficiency in the touch screen is improved.

在一个实施例中,上述步170之前,如图2所示,如上所述的方法还包括:In one embodiment, before the above-mentioned step 170, as shown in FIG. 2 , the above-mentioned method further includes:

步骤210,判断抬起位置是否位于第二虚拟对象的限定区域,若为否,则进入步骤170,若为是,则进入步骤230。Step 210 , judging whether the lifting position is within the limited area of the second virtual object, if no, go to step 170 , if yes, go to step 230 .

本实施例中,在根据抬起位置相对第一虚拟对象和第二虚拟对象的角度关系进行滑动操作的判定之间,可先行判断该滑动操作的抬起位置是否位于第二虚拟对象的限定区域中,若判断到该抬起位置已位于第二虚拟对象的限定区域,则直接进入步骤230中输出相应判定结果即可。In this embodiment, before the sliding operation is judged according to the angle relationship between the lifting position relative to the first virtual object and the second virtual object, it may be first judged whether the lifting position of the sliding operation is located in the limited area of the second virtual object , if it is determined that the lifting position is located within the limited area of the second virtual object, then directly enter step 230 to output the corresponding determination result.

若判断到抬起位置位于第二虚拟对象的限定区域之外,则需要对该滑动操作做进一步判断,以确认该滑动操作的抬起位置是否是第二虚拟对象的延伸。If it is determined that the lifting position is outside the limited area of the second virtual object, further judgment needs to be made on the sliding operation to confirm whether the lifting position of the sliding operation is an extension of the second virtual object.

换而言之,在判断到以第一虚拟对象为起始的滑动操作的抬起位置并不在第二虚拟对象的限定区域时,为保证滑动操作的准确感知,需要判定在用户针对第一虚拟对象和第二虚拟对象进行连线时,是否由于该滑动操作的滑动过于迅速,或者第一虚拟对象、第二虚拟对象的显示过小,未能使得滑动停止于第二虚拟对象的限定区域,而稍做延伸,若为是,则将该滑动操作视为连线第一虚拟对象和第二虚拟对象的滑动操作,以准确感知用户意图。In other words, when it is judged that the lifting position of the sliding operation starting from the first virtual object is not in the limited area of the second virtual object, in order to ensure accurate perception of the sliding operation, it needs to be determined that when the user targets the first virtual object When the object and the second virtual object are connected, whether the sliding operation is too fast, or the display of the first virtual object and the second virtual object is too small, so that the sliding cannot stop in the limited area of the second virtual object, And slightly extended, if yes, the sliding operation is regarded as a sliding operation connecting the first virtual object and the second virtual object, so as to accurately perceive the user's intention.

此外,在此情况下,由于该滑动操作的抬起位置仅是相对第二虚拟对象的限定区域稍做延伸,因此,随着滑动操作而进行的滑动轨迹显示在视觉上将是连线第一虚拟对象和第二虚拟对象的,将该滑动操作判定为连接第一虚拟对象和第二虚拟对象的滑动操作并对此进行响应将该滑动操作在视觉上和响应上是相匹配的,而并不会出现不相一致的情况。In addition, in this case, since the lifting position of the sliding operation is only slightly extended relative to the limited area of the second virtual object, the display of the sliding track along with the sliding operation will visually be the first object of the connecting line. For the virtual object and the second virtual object, determine the sliding operation as a sliding operation connecting the first virtual object and the second virtual object and respond to this. The sliding operation is visually and responsively matched, and There will be no inconsistencies.

步骤230,输出连线第一虚拟对象和第二虚拟对象的判定结果。Step 230, outputting the determination result of connecting the first virtual object and the second virtual object.

进一步的,在本实施例中,如图3所示,该步骤170包括:Further, in this embodiment, as shown in FIG. 3, the step 170 includes:

步骤171,根据第一虚拟对象、第二虚拟对象和抬起位置得到第一虚拟对象和第二虚拟对象相对抬起位置的位置关系。Step 171 , according to the first virtual object, the second virtual object and the lifting position, the positional relationship between the first virtual object and the second virtual object relative to the lifting position is obtained.

本实施例中,在触摸屏幕中定位第一虚拟对象、第二虚拟对象和抬起位置,以得到三者之间的相对位置关系。In this embodiment, the first virtual object, the second virtual object and the lifting position are positioned on the touch screen to obtain the relative positional relationship among the three.

步骤173,由该位置关系得到抬起位置相对第一虚拟对象和第二虚拟对象之间连线的夹角。In step 173, the angle between the lifting position and the line between the first virtual object and the second virtual object is obtained from the positional relationship.

本实施例中,该夹角包括第一夹角和第二夹角,第一夹角是抬起位置和第一虚拟对象之间连线与第一虚拟对象和第二虚拟对象之间连线所形成的夹角,第二夹角是抬起位置和第二虚拟对象之间连线与第一虚拟对象和第二虚拟对象之间连线所形成的夹角。In this embodiment, the included angle includes a first included angle and a second included angle, and the first included angle is a line between the lifting position and the first virtual object and a line between the first virtual object and the second virtual object The formed included angle, the second included angle is the included angle formed by the line between the lifting position and the second virtual object and the line between the first virtual object and the second virtual object.

步骤175,根据夹角判断抬起位置是否为第二虚拟对象所在限定区域的延长点,若为是,则进入步骤177,若为否,则时入步骤179。Step 175, judge whether the lifting position is an extension point of the limited area where the second virtual object is located according to the included angle, if yes, go to step 177, if not, go to step 179.

本实施例中,由于该夹角限定了抬起位置、第一虚拟对象和第二虚拟对象之间的几何关系,因此,根根据该夹角可准确判定抬起位置是否为第二虚拟对象所在限定区域的延长点。In this embodiment, since the included angle defines the geometric relationship between the lifting position, the first virtual object and the second virtual object, it can be accurately determined whether the lifting position is where the second virtual object is based on the included angle. An extension of a defined area.

进一步的,将判断第一夹角是否小于90度且第二夹角是否大于90度,若为是,则说明该抬起位置为第二虚拟对象所在限定区域的延长点,将进入步骤177输出连线第一虚拟对象和第二虚拟对象的判定结果,若为否,则说明该抬起位置并不是第二虚拟对象所在限定区域的延长点,将判断该意图连线第一虚拟对象和第二虚拟对象的滑动操作为无效操作。Further, it will be judged whether the first included angle is less than 90 degrees and whether the second included angle is greater than 90 degrees, if yes, it means that the lifting position is an extension point of the limited area where the second virtual object is located, and it will enter step 177 to output If the judgment result of connecting the first virtual object and the second virtual object is negative, it means that the lifting position is not an extension point of the limited area where the second virtual object is located, and the intention to connect the first virtual object and the second virtual object will be judged. The sliding operation of the second virtual object is invalid.

步骤177,输出连线第一虚拟对象和第二虚拟对象的判定结果。Step 177, outputting the determination result of connecting the first virtual object and the second virtual object.

步骤179,输出所述连线第一虚拟对象和第二虚拟对象的滑动操作为无效操作的判定结果。Step 179 , outputting a determination result that the sliding operation of connecting the first virtual object and the second virtual object is an invalid operation.

上述触摸屏幕中虚拟对象的连线处理过程可适用于各种应用的界面,例如游戏应用的界面,并可有效避免了运行该应用的触摸屏幕较小或者虚拟对象相对于触发滑动操作的手指较小而发生误操作或者无效操作的情况,将有助于应用的顺畅运行,极大降低用户输入所耗费的成本。The above-mentioned connection processing process of the virtual object on the touch screen is applicable to the interface of various applications, such as the interface of the game application, and can effectively avoid the problem that the touch screen running the application is small or the virtual object is relatively close to the finger that triggers the sliding operation. Minor misoperation or invalid operation will help the application run smoothly and greatly reduce the cost of user input.

下面结合一个具体的实施例来详细阐述如上所述的触摸屏幕中虚拟对象的连线处理方法。该实施例中,第一虚拟对象A和第二虚拟对象B如图4所示,并显示于触摸屏幕中。The method for processing the connection of virtual objects in the touch screen as described above will be described in detail below in conjunction with a specific embodiment. In this embodiment, the first virtual object A and the second virtual object B are shown in FIG. 4 and displayed on the touch screen.

侦听触摸屏幕中以第一虚拟对象A为起始触发的滑动操作,以得到该滑动操作所对应的滑动轨迹和抬起位置501,如图5所示。该抬起位置501是位于第二虚拟对象B的限定区域503之外的,因此,将根据抬起位置501相对第一虚拟对象A和第二虚拟对象B之间的角度来判定滑动操作是否为连线第一虚拟对象A和第二虚拟对象B的有效操作。The sliding operation triggered starting from the first virtual object A on the touch screen is monitored to obtain the sliding track and lifting position 501 corresponding to the sliding operation, as shown in FIG. 5 . The lifting position 501 is located outside the limited area 503 of the second virtual object B, therefore, it will be determined according to the angle between the lifting position 501 relative to the first virtual object A and the second virtual object B whether the sliding operation is Effective operations for wiring the first virtual object A and the second virtual object B.

具体的,根据抬起位置501、第一虚拟对象A和第二虚拟对象B进行运算,以得到抬起位置501和第一虚拟对象A之间连线与第一虚拟对象A和第二虚拟对象B之间连线所形成的第一夹角505、抬起位置501和第二虚拟对象B之间连线与第一虚拟对象A和第二虚拟对象B之间连线所形成的第二夹角507。Specifically, the operation is performed according to the lifting position 501, the first virtual object A and the second virtual object B, to obtain the connection line between the lifting position 501 and the first virtual object A and the first virtual object A and the second virtual object The first angle 505 formed by the line between B, the second angle formed by the line between the lifting position 501 and the second virtual object B, and the line between the first virtual object A and the second virtual object B C. 507.

判断第一夹角505是否小于90度且第二夹角507是否大于90度,若为是,则判定该滑动操作为连线第一虚拟对象A和第二虚拟对象B的有效操作,进而响应该连线第一虚拟对象A和第二虚拟对象B的滑动操作。Determine whether the first included angle 505 is less than 90 degrees and whether the second included angle 507 is greater than 90 degrees, if yes, then determine that the sliding operation is an effective operation for connecting the first virtual object A and the second virtual object B, and then respond The sliding operation of the first virtual object A and the second virtual object B should be connected.

在一个实施例中,还相应地提供了一种触摸屏幕中虚拟对象的连线处理装置,如图6所示,该装置包括对象显示模块610、侦听模块630、位置获取模块650、角度判定模块670和响应模块690,其中:In one embodiment, a connection processing device for a virtual object in a touch screen is also provided correspondingly, as shown in FIG. Module 670 and Response Module 690, wherein:

对象显示模块610,用于显示第一虚拟对象和第二虚拟对象于触摸屏幕中。The object display module 610 is configured to display the first virtual object and the second virtual object on the touch screen.

侦听模块630,用于侦听触摸屏幕中以第一虚拟对象为起始触发的滑动操作。The listening module 630 is configured to listen to a sliding operation triggered starting from the first virtual object on the touch screen.

位置获取模块650,用于获取滑动操作对应的抬起位置。The position obtaining module 650 is configured to obtain the lifting position corresponding to the sliding operation.

角度判定模块670,用于根据抬起位置相对相对第一虚拟对象和第二虚拟对象之间的角度判定滑动操作是否连线第一虚拟对象和第二虚拟对象,以输出判定结果。The angle determination module 670 is configured to determine whether the sliding operation connects the first virtual object and the second virtual object according to the angle between the lifting position relative to the first virtual object and the second virtual object, so as to output the determination result.

响应模块690,用于根据判定结果响应滑动操作。The response module 690 is configured to respond to the sliding operation according to the determination result.

在另一个实施例中,如上所述的触摸屏幕中虚拟对象的连线处理装置还包括了区域判断模块,该区域判断模块用于判定抬起位置是否位于第二虚拟对象的限定区域,若为否,则通知角度判定模块670,若为是,则输出连线第一虚拟对象和第二虚拟对象的判定结果。In another embodiment, the above-mentioned device for processing the connection of virtual objects on the touch screen further includes an area judging module, which is used to judge whether the lifting position is located in the limited area of the second virtual object, and if so If not, the angle determination module 670 is notified, and if yes, the determination result of connecting the first virtual object and the second virtual object is output.

进一步的,在本实施例中,如图7所示,该角度判定模块670包括相对关系获取单元671、夹角运算单元673和延长判断单元675。Further, in this embodiment, as shown in FIG. 7 , the angle determination module 670 includes a relative relationship acquisition unit 671 , an included angle calculation unit 673 and an extension determination unit 675 .

相对关系获取单元671,用于根据第一虚拟对象、第二虚拟对象和抬起位置得到第一虚拟对象和第二虚拟对象相对抬起位置的位置关系。The relative relationship obtaining unit 671 is configured to obtain the positional relationship between the first virtual object and the second virtual object relative to the lifting position according to the first virtual object, the second virtual object and the lifting position.

夹角运算单元673,用于由位置关系得到抬起位置相对第一虚拟对象和第二虚拟对象之间连线的夹角。The included angle calculation unit 673 is used to obtain the included angle of the lifting position relative to the line between the first virtual object and the second virtual object from the positional relationship.

延长判断单元675,用于根据夹角判断抬起位置是否为第二虚拟对象所在限定区域的延长点,若为是,则输出连线第一虚拟对象和第二虚拟对象的判定结果,若为否,则输出连线第一虚拟对象和第二虚拟对象的滑动操作为无效操作的判定结果。The extension judging unit 675 is used to judge whether the lifting position is the extension point of the limited area where the second virtual object is located according to the included angle, if yes, then output the judgment result of connecting the first virtual object and the second virtual object, if yes If not, output a determination result that the sliding operation connecting the first virtual object and the second virtual object is an invalid operation.

在一个实施例中,如上所述的响应模块690进一步用于将第一虚拟对象和第二虚拟对象之间的连线效果显示于触摸屏幕中,并执行滑动操作对应的响应处理。In one embodiment, the above-mentioned response module 690 is further configured to display the connection effect between the first virtual object and the second virtual object on the touch screen, and perform response processing corresponding to the sliding operation.

虽然已参照几个典型实施方式描述了本发明,但应当理解,所用的术语是说明和示例性、而非限制性的术语。由于本发明能够以多种形式具体实施而不脱离发明的精神或实质,所以应当理解,上述实施方式不限于任何前述的细节,而应在随附权利要求所限定的精神和范围内广泛地解释,因此落入权利要求或其等效范围内的全部变化和改型都应为随附权利要求所涵盖。While this invention has been described with reference to several exemplary embodiments, it is understood that the terms which have been used are words of description and illustration, rather than of limitation. Since the present invention can be embodied in many forms without departing from the spirit or essence of the invention, it should be understood that the above-described embodiments are not limited to any of the foregoing details, but should be construed broadly within the spirit and scope of the appended claims. , all changes and modifications falling within the scope of the claims or their equivalents shall be covered by the appended claims.

Claims (10)

1. a kind of link processing approach for touching virtual objects in screen, which is characterized in that including:
Show the first virtual objects and the second virtual objects in touch screen, wherein to set in advance for first virtual objects Set limited area, the limited area be first virtual objects position extend to form around a certain range;
It listens in the touch screen using the limited area of first virtual objects as the slide of start trigger;
Obtain the corresponding lifting position of the slide;
The sliding is determined according to the angle between relatively described first virtual objects in the lifting position and the second virtual objects Operation whether the first virtual objects and the second virtual objects described in line, to export judgement result;
The slide is responded according to the judgement result.
2. the method according to claim 1, wherein described virtual according to the lifting position relatively described first Angle between object and the second virtual objects determine the slide whether the first virtual objects described in line and second empty Quasi- object, the step of to export the judgement result before, the method also includes:
Judge whether the lifting position is located at the limited area of second virtual objects, if it has not, lifting described in then entering Whether angle between relatively described first virtual objects in position and the second virtual objects determines the slide described in line First virtual objects and the second virtual objects, the step of to export the judgement result.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If determining the limited area that the lifting position is located at second virtual objects, it is virtual to export described in line first The judgement result of object and the second virtual objects.
4. the method according to claim 1, wherein described virtual according to the lifting position relatively described first Angle between object and the second virtual objects determine the slide whether the first virtual objects described in line and second empty Intend object, includes the step of the judgement result to export:
First virtual objects and second are obtained virtually according to first virtual objects, the second virtual objects and lifting position The positional relationship of the relatively described lifting position of object;
Line between relatively described first virtual objects in the lifting position and the second virtual objects is obtained by the positional relationship Angle;
According to the angle judge the lifting position whether be limited area where second virtual objects extension point, if Be it is yes, then export the judgement result of the first virtual objects and the second virtual objects described in line.
5. the method according to claim 1, wherein described respond the slide according to the judgement result The step of include:
Line effect between first virtual objects and the second virtual objects is shown in the touch screen, and is executed The corresponding response processing of the slide.
6. a kind of wired processor arrangement for touching virtual objects in screen, which is characterized in that including:
Object display module, for showing the first virtual objects and the second virtual objects in touch screen, wherein be in advance institute The first virtual objects setting limited area is stated, the limited area is that first virtual objects position extends shape around At a certain range;
Module is listened to, for listening in the touch screen using the limited area of first virtual objects as start trigger Slide;
Position acquisition module, for obtaining the corresponding lifting position of the slide;
Angle determination module, for according between relatively described first virtual objects in the lifting position and the second virtual objects Angle determine the slide whether the first virtual objects and the second virtual objects described in line, to export judgement result;
Respond module, for responding the slide according to the judgement result.
7. device according to claim 6, which is characterized in that described device further includes:
Region decision module, for judging whether the lifting position is located at the limited area of second virtual objects, if It is no, then notify the angle determination module.
8. device according to claim 7, which is characterized in that if the region decision module is also used to determine the lift The limited area that position is located at second virtual objects is played, then exports the first virtual objects and the second virtual objects described in line Judgement result.
9. device according to claim 6, which is characterized in that the angle determination module includes:
Relativeness acquiring unit, it is described for being obtained according to first virtual objects, the second virtual objects and lifting position The positional relationship of first virtual objects and the relatively described lifting position of the second virtual objects;
Angle arithmetic element, for obtaining relatively described first virtual objects in the lifting position and second by the positional relationship The angle of line between virtual objects;
Extend judging unit, for judging whether the lifting position is limit where second virtual objects according to the angle The extension point in region is determined, if it has, then the judgement result of the first virtual objects and the second virtual objects described in output line.
10. device according to claim 6, which is characterized in that the respond module is further used for empty by described first Line effect between quasi- object and the second virtual objects is shown in the touch screen, and it is corresponding to execute the slide Response processing.
CN201510325450.2A 2015-06-12 2015-06-12 Method and device for processing connection of virtual object in touch screen Active CN105005407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510325450.2A CN105005407B (en) 2015-06-12 2015-06-12 Method and device for processing connection of virtual object in touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510325450.2A CN105005407B (en) 2015-06-12 2015-06-12 Method and device for processing connection of virtual object in touch screen

Publications (2)

Publication Number Publication Date
CN105005407A CN105005407A (en) 2015-10-28
CN105005407B true CN105005407B (en) 2018-11-30

Family

ID=54378098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510325450.2A Active CN105005407B (en) 2015-06-12 2015-06-12 Method and device for processing connection of virtual object in touch screen

Country Status (1)

Country Link
CN (1) CN105005407B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1876516A1 (en) * 2005-03-07 2008-01-09 Konami Digital Entertainment Co., Ltd. Information processing device, image movement instructing method, and information storage medium
CN102662557A (en) * 2012-03-07 2012-09-12 上海华勤通讯技术有限公司 Mobile terminal and unlock method
CN103365571A (en) * 2012-03-26 2013-10-23 联想(北京)有限公司 Touch screen unlocking method and electronic equipment with touch screen
CN104537286A (en) * 2014-12-17 2015-04-22 深圳市金立通信设备有限公司 Terminal unlocking method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101634929B (en) * 2008-07-23 2012-06-20 鸿富锦精密工业(深圳)有限公司 Method for utilizing controlled media conversion on digital photo frame

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1876516A1 (en) * 2005-03-07 2008-01-09 Konami Digital Entertainment Co., Ltd. Information processing device, image movement instructing method, and information storage medium
CN102662557A (en) * 2012-03-07 2012-09-12 上海华勤通讯技术有限公司 Mobile terminal and unlock method
CN103365571A (en) * 2012-03-26 2013-10-23 联想(北京)有限公司 Touch screen unlocking method and electronic equipment with touch screen
CN104537286A (en) * 2014-12-17 2015-04-22 深圳市金立通信设备有限公司 Terminal unlocking method

Also Published As

Publication number Publication date
CN105005407A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
US10394443B2 (en) Method for viewing message and user terminal
US11573696B2 (en) Application display method and terminal
CN106415472B (en) Gesture control method and device, terminal equipment and storage medium
US8890825B2 (en) Apparatus and method for determining the position of user input
CN103869947B (en) The method and electronic equipment of control electronics
WO2017032016A1 (en) Interface operating method and electronic terminal
CA2909182C (en) Virtual touch screen
EP2955619A1 (en) Mobile terminal and application control method therefor
CN105528170A (en) Method and device for starting an application program
TW201520810A (en) Method and related apparatus for confirmation processing and system thereof
CN107577404B (en) Information processing method and device and electronic equipment
CN103324438A (en) Electronic equipment, and page turning method and page turning device for browser
CN106598422B (en) hybrid control method, control system and electronic equipment
CN105335090A (en) Display method and electronic equipment
CN104636068B (en) The operating method and touch control terminal of application icon
CN106951258A (en) The operating method and mobile terminal of a kind of mobile terminal
TWM471654U (en) Portable electric apparatus
WO2014075540A1 (en) Touchscreen scroll control system and method
WO2015081863A1 (en) Information input method, device and terminal
CN105005407B (en) Method and device for processing connection of virtual object in touch screen
TWI480792B (en) Operating method of electronic apparatus
TW201520877A (en) Method for operating gestures and method for calling cursor
TWI512592B (en) Electronic device and method for displaying a user interface thereof
CN105739881B (en) A kind of information processing method and electronic equipment
CN110007841B (en) Control method and electronic equipment

Legal Events

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