CN101727230B - Method and device for controlling cursor of touch screen, and mobile communication terminal - Google Patents
Method and device for controlling cursor of touch screen, and mobile communication terminal Download PDFInfo
- Publication number
- CN101727230B CN101727230B CN2008102243337A CN200810224333A CN101727230B CN 101727230 B CN101727230 B CN 101727230B CN 2008102243337 A CN2008102243337 A CN 2008102243337A CN 200810224333 A CN200810224333 A CN 200810224333A CN 101727230 B CN101727230 B CN 101727230B
- Authority
- CN
- China
- Prior art keywords
- cursor
- touch screen
- label
- sliding
- distance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000010295 mobile communication Methods 0.000 title abstract description 14
- 230000007423 decrease Effects 0.000 claims description 9
- 238000005516 engineering process Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
本发明公开了一种触摸屏光标控制方法、装置和移动通信终端,涉及移动通信终端,特别涉及一种触摸屏移动通信终端中的光标控制技术,用于提高根据控制体滑动轨迹控制光标移动的准确度。一种触摸屏光标控制方法,包括:捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间;根据所述滑动轨迹和滑动时间确定控制体的滑动速度;根据所述滑动速度确定光标在所述触摸屏上的移动距离;根据所述移动距离和光标移动前所在标签,控制光标在触摸屏上移动。
The invention discloses a touch screen cursor control method, device and mobile communication terminal, relates to a mobile communication terminal, in particular to a cursor control technology in a touch screen mobile communication terminal, which is used to improve the accuracy of controlling cursor movement according to the sliding track of a control body . A method for controlling a cursor on a touch screen, comprising: capturing a sliding track and a sliding time when a control body drags a cursor on a touch screen; determining the sliding speed of the control body according to the sliding track and the sliding time; determining the position of the cursor according to the sliding speed The moving distance on the touch screen; according to the moving distance and the label where the cursor was before moving, control the cursor to move on the touch screen.
Description
技术领域 technical field
本发明涉及移动通信终端,特别涉及一种触摸屏移动通信终端中的光标控制技术。The invention relates to a mobile communication terminal, in particular to a cursor control technology in a touch screen mobile communication terminal.
背景技术 Background technique
随着无线通信技术的发展,触摸屏手机作为一种移动通信工具,发展非常迅速,触摸屏技术常用在商务智能移动通信终端上,一方面方便了商务人士的操作,另一方面也是一种人性化的体现。With the development of wireless communication technology, as a mobile communication tool, touch screen mobile phone is developing very rapidly. Touch screen technology is commonly used in business intelligence mobile communication terminals. On the one hand, it is convenient for business people to operate. reflect.
如图1所示,移动通信终端的显示屏为触摸屏,触摸屏上同时显示有三个标签,光标位于中间的标签2上,用户可以通过手指等部位或者其它控制体,在触摸屏拖动光标从标签2移动到标签1或标签3上,从而实现标签切换。As shown in Figure 1, the display screen of the mobile communication terminal is a touch screen. There are three labels displayed on the touch screen at the same time. The cursor is located on the label 2 in the middle. Move to tab 1 or tab 3 to switch tabs.
如何在触摸屏移动通信终端上,根据控制体的滑动操作提高光标控制准确度,是触摸屏移动通信终端吸引用户的一个重要因素。How to improve the cursor control accuracy according to the sliding operation of the control body on the touch-screen mobile communication terminal is an important factor for the touch-screen mobile communication terminal to attract users.
发明内容 Contents of the invention
本发明实施例提供一种触摸屏光标控制方法和装置,用于提高根据控制体滑动轨迹控制光标移动的准确度。Embodiments of the present invention provide a method and device for controlling a cursor on a touch screen, which are used to improve the accuracy of controlling cursor movement according to a sliding track of a control body.
一种触摸屏光标控制方法,包括:A method for controlling a cursor on a touch screen, comprising:
捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间;Capture the sliding trajectory and sliding time of the control body when dragging the cursor on the touch screen;
根据所述滑动轨迹和滑动时间确定控制体的滑动速度;determining the sliding speed of the control body according to the sliding trajectory and sliding time;
当所述光标仅在触摸屏宽度方向移动时,将滑动轨迹的起点至终点的方向视为所述滑动速度的方向时,确定所述滑动速度在触摸屏宽度方向上的第一速度分量,根据为不同速度范围对应设定的水平移动量,将所述第一速度分量所在速度范围对应的水平移动量,确定为光标在触摸屏宽度方向上的水平移动距离;或者根据为不同速度范围对应设定的水平移动量,将所述滑动速度所在速度范围对应的移动量,确定为光标在触摸屏宽度方向上的水平移动距离;When the cursor only moves in the width direction of the touch screen, when the direction from the start point to the end point of the sliding track is regarded as the direction of the sliding speed, determine the first speed component of the sliding speed in the width direction of the touch screen, according to different The speed range corresponds to the set horizontal movement amount, and the horizontal movement amount corresponding to the speed range where the first speed component is located is determined as the horizontal movement distance of the cursor in the width direction of the touch screen; or according to the corresponding set level for different speed ranges Amount of movement, determining the amount of movement corresponding to the speed range where the sliding speed is located as the horizontal movement distance of the cursor in the width direction of the touch screen;
根据所述水平移动距离和光标移动前所在标签,控制光标在触摸屏上移动。The cursor is controlled to move on the touch screen according to the horizontal moving distance and the label where the cursor was before moving.
一种触摸屏光标控制方法,包括:A method for controlling a cursor on a touch screen, comprising:
捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间;Capture the sliding trajectory and sliding time of the control body when dragging the cursor on the touch screen;
根据所述滑动轨迹和滑动时间确定控制体的滑动速度;determining the sliding speed of the control body according to the sliding trajectory and sliding time;
当所述光标仅在触摸屏高度方向移动时,将滑动轨迹的起点至终点的方向视为所述滑动速度的方向时,确定所述滑动速度在触摸屏高度方向上的第二速度分量,根据为不同速度范围对应设定的垂直移动量,将所述第二速度分量所在速度范围对应的垂直移动量,确定为光标在触摸屏高度方向上的移动距离;或者根据为不同速度范围对应设定的移动量,将所述滑动速度所在速度范围对应的移动量,确定为光标在触摸屏高度方向上的垂直移动距离;When the cursor only moves in the height direction of the touch screen, when the direction from the start point to the end point of the sliding track is regarded as the direction of the sliding speed, determine the second velocity component of the sliding speed in the height direction of the touch screen, according to different The speed range corresponds to the set vertical movement amount, and the vertical movement amount corresponding to the speed range where the second speed component is located is determined as the moving distance of the cursor in the height direction of the touch screen; or according to the corresponding set movement amount for different speed ranges , determining the movement amount corresponding to the speed range where the sliding speed is located as the vertical movement distance of the cursor in the height direction of the touch screen;
根据所述垂直移动距离和光标移动前所在标签,控制光标在触摸屏上移动。The cursor is controlled to move on the touch screen according to the vertical moving distance and the label where the cursor was before moving.
一种触摸屏光标控制方法,包括:A method for controlling a cursor on a touch screen, comprising:
捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间;Capture the sliding trajectory and sliding time of the control body when dragging the cursor on the touch screen;
根据所述滑动轨迹和滑动时间确定控制体的滑动速度;determining the sliding speed of the control body according to the sliding trajectory and sliding time;
当所述光标既在触摸屏宽度方向移动,也在触摸屏高度方向上移动,将滑动轨迹的起点至终点的方向视为所述滑动速度的方向时,确定所述滑动速度在触摸屏宽度方向上的第一速度分量,根据为不同速度范围对应设定的水平移动量,将所述第一速度分量所在速度范围对应的水平移动量,确定为光标在触摸屏宽度方向上的水平移动距离;确定所述滑动速度在触摸屏高度方向上的第二速度分量,根据为不同速度范围对应设定的垂直移动量,将所述第二速度分量所在速度范围对应的垂直移动量,确定为光标在触摸屏高度方向上的垂直移动距离;When the cursor moves both in the width direction of the touch screen and in the height direction of the touch screen, and the direction from the start point to the end point of the sliding track is regarded as the direction of the sliding speed, determine the first position of the sliding speed in the width direction of the touch screen A speed component, according to the horizontal movement amount correspondingly set for different speed ranges, the horizontal movement amount corresponding to the speed range where the first speed component is located is determined as the horizontal movement distance of the cursor in the width direction of the touch screen; determining the sliding The second velocity component of the speed in the height direction of the touch screen, according to the vertical movement amount set correspondingly for different speed ranges, the vertical movement amount corresponding to the speed range where the second speed component is located is determined as the cursor in the height direction of the touch screen Vertical movement distance;
根据所述水平移动距离、所述垂直移动距离和光标移动前所在标签,控制光标在触摸屏上移动。The cursor is controlled to move on the touch screen according to the horizontal movement distance, the vertical movement distance and the label where the cursor was before moving.
一种触摸屏光标控制方法,包括:A method for controlling a cursor on a touch screen, comprising:
捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间;Capture the sliding trajectory and sliding time of the control body when dragging the cursor on the touch screen;
当所述光标既在触摸屏宽度方向移动,也在触摸屏高度方向上移动时:When the cursor moves both in the width direction of the touch screen and in the height direction of the touch screen:
将所述滑动轨迹起点和终点之间直线距离在触摸屏宽度方向上的第一距离分量除以滑动时间的商确定为水平滑动速度分量;并将所述直线距离在触摸屏高度方向上的第二距离分量除以滑动时间的商确定为垂直滑动速度分量;The quotient of dividing the first distance component of the linear distance between the starting point and the end point of the sliding track in the width direction of the touch screen by the sliding time is determined as a horizontal sliding speed component; and the second distance of the linear distance in the height direction of the touch screen The quotient of the component divided by the sliding time is determined as the vertical sliding velocity component;
根据为不同速度范围对应设定的水平移动量,将所述水平滑动速度分量所在速度范围对应的水平移动量,确定为光标在触摸屏宽度方向上的水平移动距离;并根据为不同速度范围对应设定的垂直移动量,将所述垂直滑动速度分量所在速度范围对应的垂直移动量,确定为光标在触摸屏高度方向上的垂直移动距离;According to the horizontal movement amount correspondingly set for different speed ranges, the horizontal movement amount corresponding to the speed range where the horizontal sliding speed component is located is determined as the horizontal movement distance of the cursor in the width direction of the touch screen; and according to the corresponding setting for different speed ranges Determined vertical movement amount, the vertical movement amount corresponding to the speed range where the vertical sliding velocity component is located is determined as the vertical movement distance of the cursor in the height direction of the touch screen;
根据所述水平移动距离、所述垂直移动距离和光标移动前所在标签,控制光标在触摸屏上移动。The cursor is controlled to move on the touch screen according to the horizontal movement distance, the vertical movement distance and the label where the cursor was before moving.
一种触摸屏光标控制装置,包括:A touch screen cursor control device, comprising:
用于捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间的单元;A unit used to capture the sliding track and sliding time of the control body when dragging the cursor on the touch screen;
用于根据所述滑动轨迹和滑动时间确定控制体的滑动速度的单元;A unit for determining the sliding speed of the control body according to the sliding trajectory and sliding time;
用于当所述光标仅在触摸屏宽度方向移动时,将滑动轨迹的起点至终点的方向视为所述滑动速度的方向时,确定所述滑动速度在触摸屏宽度方向上的第一速度分量,根据为不同速度范围对应设定的水平移动量,将所述第一速度分量所在速度范围对应的水平移动量,确定为光标在触摸屏宽度方向上的水平移动距离;或者根据为不同速度范围对应设定的水平移动量,将所述滑动速度所在速度范围对应的移动量,确定为光标在触摸屏宽度方向上的水平移动距离的单元;When the cursor only moves in the width direction of the touch screen, when the direction from the start point to the end point of the sliding track is regarded as the direction of the sliding speed, determine the first velocity component of the sliding speed in the width direction of the touch screen, according to For the horizontal movement amount set corresponding to different speed ranges, the horizontal movement amount corresponding to the speed range where the first speed component is located is determined as the horizontal movement distance of the cursor in the width direction of the touch screen; or according to the corresponding setting for different speed ranges The amount of horizontal movement, the amount of movement corresponding to the speed range where the sliding speed is located is determined as the unit of the horizontal movement distance of the cursor in the width direction of the touch screen;
用于根据所述水平移动距离和光标移动前所在标签,控制光标在触摸屏上移动的单元。A unit for controlling the cursor to move on the touch screen according to the horizontal movement distance and the label where the cursor was moved before.
一种触摸屏光标控制装置,包括:A touch screen cursor control device, comprising:
用于捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间的单元;A unit used to capture the sliding track and sliding time of the control body when dragging the cursor on the touch screen;
用于根据所述滑动轨迹和滑动时间确定控制体的滑动速度的单元;A unit for determining the sliding speed of the control body according to the sliding trajectory and sliding time;
用于当所述光标仅在触摸屏高度方向移动时,将滑动轨迹的起点至终点的方向视为所述滑动速度的方向时,确定所述滑动速度在触摸屏高度方向上的第二速度分量,根据为不同速度范围对应设定的垂直移动量,将所述第二速度分量所在速度范围对应的垂直移动量,确定为光标在触摸屏高度方向上的移动距离;或者根据为不同速度范围对应设定的移动量,将所述滑动速度所在速度范围对应的移动量,确定为光标在触摸屏高度方向上的垂直移动距离的单元;When the cursor only moves in the height direction of the touch screen, when the direction from the start point to the end point of the sliding track is regarded as the direction of the sliding speed, determine the second velocity component of the sliding speed in the height direction of the touch screen, according to For the vertical movement amount set corresponding to different speed ranges, the vertical movement amount corresponding to the speed range where the second speed component is located is determined as the moving distance of the cursor in the height direction of the touch screen; or according to the corresponding setting for different speed ranges Amount of movement, determining the amount of movement corresponding to the speed range where the sliding speed is located as the unit of the vertical movement distance of the cursor in the height direction of the touch screen;
用于根据所述垂直移动距离和光标移动前所在标签,控制光标在触摸屏上移动的单元。A unit for controlling the cursor to move on the touch screen according to the vertical movement distance and the label where the cursor was moved.
一种触摸屏光标控制装置,包括:A touch screen cursor control device, comprising:
用于捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间的单元;A unit used to capture the sliding track and sliding time of the control body when dragging the cursor on the touch screen;
用于根据所述滑动轨迹和滑动时间确定控制体的滑动速度的单元;A unit for determining the sliding speed of the control body according to the sliding trajectory and sliding time;
用于当所述光标既在触摸屏宽度方向移动,也在触摸屏高度方向上移动,将滑动轨迹的起点至终点的方向视为所述滑动速度的方向时,确定所述滑动速度在触摸屏宽度方向上的第一速度分量,根据为不同速度范围对应设定的水平移动量,将所述第一速度分量所在速度范围对应的水平移动量,确定为光标在触摸屏宽度方向上的水平移动距离;确定所述滑动速度在触摸屏高度方向上的第二速度分量,根据为不同速度范围对应设定的垂直移动量,将所述第二速度分量所在速度范围对应的垂直移动量,确定为光标在触摸屏高度方向上的垂直移动距离的单元;When the cursor moves both in the width direction of the touch screen and in the height direction of the touch screen, and when the direction from the start point to the end point of the sliding track is regarded as the direction of the sliding speed, determine that the sliding speed is in the width direction of the touch screen The first velocity component of the first velocity component, according to the horizontal movement amount correspondingly set for different speed ranges, the horizontal movement amount corresponding to the speed range where the first velocity component is located is determined as the horizontal movement distance of the cursor in the width direction of the touch screen; The second velocity component of the sliding speed in the height direction of the touch screen, according to the vertical movement amount correspondingly set for different speed ranges, the vertical movement amount corresponding to the speed range where the second speed component is located is determined as the cursor in the height direction of the touch screen The unit of the vertical moving distance on ;
用于根据所述水平移动距离、所述垂直移动距离和光标移动前所在标签,控制光标在触摸屏上移动的单元。A unit for controlling the cursor to move on the touch screen according to the horizontal moving distance, the vertical moving distance and the label where the cursor was moved.
一种触摸屏光标控制装置,包括:A touch screen cursor control device, comprising:
用于捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间的单元;A unit used to capture the sliding track and sliding time of the control body when dragging the cursor on the touch screen;
用于当所述光标既在触摸屏宽度方向移动,也在触摸屏高度方向上移动时,将所述滑动轨迹起点和终点之间直线距离在触摸屏宽度方向上的第一距离分量除以滑动时间的商确定为水平滑动速度分量;并将所述直线距离在触摸屏高度方向上的第二距离分量除以滑动时间的商确定为垂直滑动速度分量的单元;When the cursor moves both in the width direction of the touch screen and in the height direction of the touch screen, the quotient of dividing the first distance component of the linear distance between the starting point and the end point of the sliding track in the width direction of the touch screen by the sliding time Determined as the horizontal sliding speed component; and the quotient of dividing the second distance component of the linear distance in the height direction of the touch screen by the sliding time is determined as the unit of the vertical sliding speed component;
用于根据为不同速度范围对应设定的水平移动量,将所述水平滑动速度分量所在速度范围对应的水平移动量,确定为光标在触摸屏宽度方向上的水平移动距离;并根据为不同速度范围对应设定的垂直移动量,将所述垂直滑动速度分量所在速度范围对应的垂直移动量,确定为光标在触摸屏高度方向上的垂直移动距离的单元;It is used to determine the horizontal movement amount corresponding to the speed range of the horizontal sliding speed component as the horizontal movement distance of the cursor in the width direction of the touch screen according to the corresponding horizontal movement amount set for different speed ranges; and according to different speed ranges Corresponding to the set vertical movement amount, the vertical movement amount corresponding to the speed range where the vertical sliding speed component is located is determined as the unit of the vertical movement distance of the cursor in the height direction of the touch screen;
用于根据所述水平移动距离、所述垂直移动距离和光标移动前所在标签,控制光标在触摸屏上移动的单元。A unit for controlling the cursor to move on the touch screen according to the horizontal moving distance, the vertical moving distance and the label where the cursor was moved.
本发明实施例通过捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间,确定控制体的滑动速度,并根据滑动速度确定光标在所述触摸屏上的移动距离,使移动距离的长短和滑动速度的快慢相匹配,并移动距离和光标移动前所在标签,控制光标在触摸屏上移动,从而提高了根据控制体滑动轨迹控制光标移动的准确度。The embodiment of the present invention determines the sliding speed of the control body by capturing the sliding track and sliding time when the control body drags the cursor on the touch screen, and determines the moving distance of the cursor on the touch screen according to the sliding speed, so that the length of the moving distance Match the speed of the sliding speed, and move the distance and the label where the cursor is before moving to control the cursor to move on the touch screen, thereby improving the accuracy of controlling the movement of the cursor according to the sliding track of the control body.
附图说明 Description of drawings
图1为现有触摸屏移动通信终端上的光标与标签示意图;Fig. 1 is a schematic diagram of a cursor and a label on an existing touch screen mobile communication terminal;
图2为本发明实施例提供的触摸屏光标控制方法主要流程示意图;FIG. 2 is a schematic flow diagram of a main flow of a method for controlling a cursor on a touch screen provided by an embodiment of the present invention;
图3为本发明实施例中滑动距离示意图;Fig. 3 is a schematic diagram of sliding distance in an embodiment of the present invention;
图4为本发明实施例中如何确定光标移动距离的示意图。Fig. 4 is a schematic diagram of how to determine the moving distance of the cursor in the embodiment of the present invention.
具体实施方式 Detailed ways
本发明实施例为提高触摸屏移动通信终端上光标移动控制的准确度,提供一种根据控制体滑动速度控制光标移动的光标控制技术,使移动距离的长短和滑动速度的快慢相匹配,具体方法如图2所示,包括如下步骤:In order to improve the accuracy of cursor movement control on a touch-screen mobile communication terminal, the embodiment of the present invention provides a cursor control technology that controls cursor movement according to the sliding speed of the control body, so that the length of the moving distance matches the speed of the sliding speed. The specific method is as follows: As shown in Figure 2, it includes the following steps:
步骤S201、捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间;Step S201, capturing the sliding track and sliding time when the control body drags the cursor on the touch screen to move;
步骤S202、根据滑动轨迹和滑动时间确定控制体的滑动速度;Step S202, determining the sliding speed of the control body according to the sliding trajectory and sliding time;
步骤S203、根据滑动速度确定光标在触摸屏上的移动距离;Step S203, determining the moving distance of the cursor on the touch screen according to the sliding speed;
一般的,控制体滑动速度越小则光标的移动距离越短,控制体滑动速度越大则光标的移动距离越长,并当滑动速度低于设定的门限值时,光标不移动。当然,也可以设置娱乐模式,当控制体滑动速度越大时反而控制光标的移动距离越短,控制体滑动速度越小时控制光标的移动距离越长。Generally, the smaller the sliding speed of the control body is, the shorter the moving distance of the cursor is, and the larger the sliding speed of the control body is, the longer the moving distance of the cursor is. When the sliding speed is lower than the set threshold value, the cursor does not move. Of course, entertainment mode can also be set, when the sliding speed of the control body is higher, the moving distance of the control cursor is shorter, and the smaller the sliding speed of the control body is, the longer the moving distance of the control cursor is.
步骤S204、根据移动距离和光标移动前所在标签,控制光标在触摸屏上移动。Step S204, controlling the cursor to move on the touch screen according to the moving distance and the label where the cursor was before moving.
控制体在触摸屏上拖动光标移动时的滑动轨迹可以是一条直线,也可以是一条曲线,甚至还可以是一条折线,捕获控制体滑动轨迹和滑动时间的技术为本领域技术人员所熟知,这里不在详细描述。The sliding track of the control body when dragging the cursor on the touch screen can be a straight line, a curve, or even a broken line. The technology of capturing the sliding track and sliding time of the control body is well known to those skilled in the art. Here Not described in detail.
当获得滑动轨迹后和滑动时间,在步骤S202中,可以有两种方法根据滑动轨迹和滑动时间确定控制体的滑动速度,参阅图3所示的滑动轨迹,第一种滑动速度V的确定方法如公式1所示:After obtaining the sliding track and sliding time, in step S202, there are two ways to determine the sliding speed of the control body according to the sliding track and sliding time, refer to the sliding track shown in Figure 3, the first method of determining the sliding speed V As shown in formula 1:
V=L/T..............(1)V=L/T..........(1)
其中,L为滑动轨迹的总长度,T为滑动时间;Among them, L is the total length of the sliding track, and T is the sliding time;
第二种滑动速度V的确定方法如公式2所示:The second determination method of sliding velocity V is shown in formula 2:
V=D/T..............(2)V=D/T..........(2)
其中,D为滑动轨迹的滑动起点和终点之间的直线距离,T为滑动时间;Among them, D is the linear distance between the sliding start point and the end point of the sliding track, and T is the sliding time;
当然本领域技术人员可可以采用其它方法,例如光标移动距离S乘以一定比例后除以T,来计算V等,这里不再一一列举。Of course, those skilled in the art may use other methods, such as multiplying the cursor movement distance S by a certain ratio and dividing it by T to calculate V, etc., which will not be listed here.
如下表1所示,本发明实施例中,可以根据经验值,预先划分不同的速度范围,并为每一个速度范围对应设定光标移动量:As shown in Table 1 below, in the embodiment of the present invention, different speed ranges can be pre-divided according to empirical values, and the cursor movement amount can be set correspondingly for each speed range:
表1.Table 1.
其中:S、L和D的单位相同,级数n可以根据触摸屏上标签个数确定,例如3个标签时设定为3级。第一级对应的光标移动量S1可以设定为0,即当控制体的滑动速度小于等于设定的门限值V1时,不移动光标。最高一级对应的光标移动量Sn实际上受到触摸屏大小的限制,当在触摸屏宽度方向上移动时,Sn为触摸屏宽度减去一个标签的宽度,也就是说光标最长的移动距离是从触摸屏最边沿的标签移至另一边沿的标签上。光标在触摸屏高度方向移动时具有同样的特性,不再重复说明。Among them: S, L and D have the same unit, and the number of levels n can be determined according to the number of labels on the touch screen. For example, if there are 3 labels, it is set to 3 levels. The cursor movement amount S1 corresponding to the first level can be set to 0, that is, when the sliding speed of the control body is less than or equal to the set threshold value V1, the cursor will not move. The amount of cursor movement Sn corresponding to the highest level is actually limited by the size of the touch screen. When moving in the width direction of the touch screen, Sn is the width of the touch screen minus the width of a label, that is to say, the longest moving distance of the cursor is the maximum distance from the touch screen. The label of the edge moves to the label of the other edge. The cursor has the same characteristics when it moves in the height direction of the touch screen, so the description will not be repeated.
根据不同的触摸屏实际操作模式,光标可以仅在宽度方向移动,也可以仅在高度方向上移动,或者既可以在宽度方向移动、也可以在高度方向上移动。由于图3所示的滑动轨迹并不能和移动方向保持一致,因此确定光标移动距离时可以根据控制体的实际速度确定,也可以根据控制体的实际速度在不同移动方向上的分量确定。According to different actual operation modes of the touch screen, the cursor can move only in the width direction, or only in the height direction, or both in the width direction and in the height direction. Since the sliding trajectory shown in Figure 3 cannot be consistent with the moving direction, the cursor movement distance can be determined according to the actual speed of the control body, or according to the components of the actual speed of the control body in different moving directions.
以光标在触摸屏宽度方向移动时移动距离的确定方法为例,可以包括三种,参见图4所示,假设触摸屏的宽度方向为X,将滑动轨迹的起点至终点的方向视为滑动速度V的方向时,第一种方法具体包括:Taking the method of determining the moving distance of the cursor when it moves in the width direction of the touch screen as an example, there are three methods, as shown in Figure 4, assuming that the width direction of the touch screen is X, and the direction from the start point to the end point of the sliding track is regarded as the sliding speed V Direction, the first method specifically includes:
确定滑动速度V在触摸屏宽度方向X上的第一速度分量Vx,根据为不同速度范围对应设定的水平移动量,例如表1中S可以看作为对应速度范围设定的水平移动量,将第一速度分量Vx所在速度范围对应的水平移动量,确定为控制光标在触摸屏宽度方向上移动时的水平移动距离。Determine the first velocity component Vx of the sliding velocity V in the width direction X of the touch screen. According to the corresponding horizontal movement amount set for different speed ranges, for example, S in Table 1 can be regarded as the horizontal movement amount set for the corresponding speed range. A horizontal movement amount corresponding to the velocity range where the velocity component Vx is located is determined as the horizontal movement distance when the control cursor moves in the width direction of the touch screen.
第二种方法具体为:直接根据滑动速度V确定水平移动距离,即将滑动速度V所在速度范围对应的水平移动量,确定为光标在触摸屏宽度方向上的水平移动距离。The second method specifically includes: directly determining the horizontal movement distance according to the sliding velocity V, that is, determining the horizontal movement amount corresponding to the speed range where the sliding velocity V is located as the horizontal movement distance of the cursor in the width direction of the touch screen.
第三种方法和第一种方法实质相同,参见图4所示,具体为:将滑动轨迹起点和终点之间直线距离D在触摸屏宽度方向上的第一距离分量Dx除以滑动时间T的商确定为水平滑动速度分量,并根据为不同速度范围对应设定的水平移动量,将水平滑动速度分量所在速度范围对应的水平移动量,确定为光标在触摸屏宽度方向上的水平移动距离。实际上,水平滑动速度分量和速度分量的计算结果相同。The third method is essentially the same as the first method, as shown in Figure 4, specifically: the quotient of dividing the first distance component Dx of the linear distance D between the starting point and the end point of the sliding track in the width direction of the touch screen by the sliding time T It is determined as the horizontal sliding speed component, and according to the corresponding horizontal movement amount set for different speed ranges, the horizontal movement amount corresponding to the speed range where the horizontal sliding speed component is located is determined as the horizontal movement distance of the cursor in the width direction of the touch screen. In fact, the horizontal sliding velocity component and the velocity component have the same calculation result.
同样,当光标仅在触摸屏高度方向移动时,根据滑动速度确定光标在触摸屏上的移动距离的方法也可以包括相应的三种,仍参见图4:Similarly, when the cursor only moves in the height direction of the touch screen, the method of determining the moving distance of the cursor on the touch screen according to the sliding speed may also include corresponding three methods, still referring to FIG. 4:
第一种:确定滑动速度在触摸屏高度方向Y上的第二速度分量Vy,根据为不同速度范围对应设定的垂直移动量,例如表1中S可以看作为对应速度范围设定的垂直移动量,将第二速度分量Vy所在速度范围对应的垂直移动量,确定为控制光标在触摸屏高度方向上移动时的移动距离;The first type: determine the second velocity component Vy of the sliding speed in the height direction Y of the touch screen, according to the vertical movement amount set correspondingly for different speed ranges, for example, S in Table 1 can be regarded as the vertical movement amount set for the corresponding speed range , the vertical movement amount corresponding to the velocity range where the second velocity component Vy is located is determined as the movement distance when the control cursor moves in the height direction of the touch screen;
第二种:根据为不同速度范围对应设定的移动量,将滑动速度V所在速度范围对应的垂直移动量,确定为光标在触摸屏高度方向上的垂直移动距离。The second method: according to the movement amounts set corresponding to different speed ranges, the vertical movement amount corresponding to the speed range where the sliding speed V is located is determined as the vertical movement distance of the cursor in the height direction of the touch screen.
第三种:将滑动轨迹起点和终点之间直线距离D在触摸屏高度方向Y上的第二距离分量Dy除以滑动时间的商确定为垂直滑动速度分量;并根据为不同速度范围对应设定的垂直移动量,将垂直滑动速度分量所在速度范围对应的垂直移动量,确定为光标在触摸屏高度方向上的垂直移动距离。The third type: the quotient of dividing the linear distance D between the starting point and the end point of the sliding track on the height direction Y of the touch screen by the second distance component Dy divided by the sliding time is determined as the vertical sliding speed component; and according to the corresponding settings for different speed ranges For the vertical movement amount, the vertical movement amount corresponding to the velocity range where the vertical sliding velocity component is located is determined as the vertical movement distance of the cursor in the height direction of the touch screen.
较佳的,在表1中,水平移动距离和水平移动量都以标签个数为单位,即对应不同速度范围设定光标从当前标签开始应该移动的标签数量,用于指示光标从移动前所在标签开始需要移动的参考标签数量。则仍参阅图4所示,当光标在触摸屏宽度方向移动时,根据移动距离和光标移动前所在标签,控制光标在触摸屏上移动具体包括:Preferably, in Table 1, both the horizontal movement distance and the horizontal movement amount are in units of the number of labels, that is, corresponding to different speed ranges, the number of labels that the cursor should move from the current label is used to indicate where the cursor is before moving. The number of reference labels that need to be moved for the label to start. Then still referring to Figure 4, when the cursor moves in the width direction of the touch screen, according to the moving distance and the label where the cursor is before moving, controlling the cursor to move on the touch screen specifically includes:
确定移动轨迹起点至终点方向在触摸屏宽度方向上的水平投影方向,即Vx方向;Determine the horizontal projection direction of the direction from the starting point to the end point of the moving track in the width direction of the touch screen, that is, the Vx direction;
确定触摸屏上,光标移动前所在标签沿Vx方向一侧的总标签个数;Determine the total number of labels on the side of the label along the Vx direction on the touch screen before the cursor moves;
当总标签个数大于水平移动距离指示的参考标签数量时,将光标沿Vx方向移动,移动后所在标签和移动前所在标签之间包括参考标签数量减1个标签,否则将光标沿Vx方向移动到位于触摸屏最边沿的标签上。When the total number of labels is greater than the number of reference labels indicated by the horizontal movement distance, move the cursor along the Vx direction, and the number of reference labels minus 1 label is included between the label after the movement and the label before the movement, otherwise move the cursor along the Vx direction to the tab located on the far edge of the touchscreen.
也就是说,如果总标签个数大于水平移动距离指示的参考标签数量,则将光标实际移到目标标签上,目标标签和移动前的标签之间相隔的标签数目为:参考标签数量减1。如果总标签个数等于或少于水平移动距离指示的参考标签数量,只能将光标移动到最边沿的一个标签上。That is to say, if the total number of labels is greater than the number of reference labels indicated by the horizontal movement distance, the cursor is actually moved to the target label, and the number of labels between the target label and the label before moving is: the number of reference labels minus 1. If the total number of labels is equal to or less than the number of reference labels indicated by the horizontal movement distance, the cursor can only be moved to the edgemost label.
光标在触摸屏高度方向上的移动控制原理相同,参阅图4所示,具体为:The movement control principle of the cursor in the height direction of the touch screen is the same, as shown in Figure 4, specifically:
确定移动轨迹起点至终点方向在触摸屏高度方向上的垂直投影方向,即Vy;Determine the vertical projection direction of the direction from the start point to the end point of the moving track in the height direction of the touch screen, namely Vy;
确定触摸屏上,光标移动前所在标签沿Vy方向一侧的总标签个数;Determine the total number of labels on the side of the label along the Vy direction on the touch screen before the cursor moves;
当总标签个数大于垂直移动距离指示的参考标签数量时,将光标沿Vy方向移动,移动后所在标签和移动前所在标签之间包括参考标签数量减1个标签,否则将光标沿垂直投影方向移动到位于触摸屏最边沿的标签上。When the total number of labels is greater than the number of reference labels indicated by the vertical movement distance, move the cursor along the Vy direction, and the number of reference labels minus 1 label is included between the label after the movement and the label before the movement; otherwise, move the cursor along the vertical projection direction Move to the tab located at the very edge of the touch screen.
如果移动距离和移动量的单位和D或L相同,则本发明实施例还提供一种光标移动控制方法,可以先将水平移动距离或垂直移动距离除以一个光标宽度所得的整数部分,确定为光标从移动前所在标签开始需要移动的参考标签数量,然后采用上述原理进行控制。If the units of the moving distance and moving amount are the same as D or L, the embodiment of the present invention also provides a cursor moving control method, which can first divide the horizontal moving distance or vertical moving distance by the integer part obtained by a cursor width, and determine it as The number of reference labels that the cursor needs to move from the label it was before moving, and then use the above principle to control.
本发明实施例中,如果移动距离为零,即移动量为零时,可以控制光标在触摸屏保持不动。进一步,为达到更好的动画效果,可以根据移动速度对光标进行反弹控制,使光标随着控制体晃动。具体包括:当光标在触摸屏宽度方向移动时,将光标沿水平投影方向移动设定的第一距离后再移回移动前所在标签;当光标在触摸屏高度方向移动时,将光标沿垂直投影方向移动设定的第一距离后再移回移动前所在标签,第一距离的长度小于一个标签的宽度,并根据参考标签数量确定,第一距离跟随参考标签数量减小而变短。In the embodiment of the present invention, if the moving distance is zero, that is, the moving amount is zero, the cursor may be controlled to remain still on the touch screen. Further, in order to achieve a better animation effect, the cursor can be controlled to bounce according to the moving speed, so that the cursor shakes with the control body. Specifically include: when the cursor moves in the width direction of the touch screen, move the cursor along the horizontal projection direction for the set first distance and then move back to the label where it was before moving; when the cursor moves in the height direction of the touch screen, move the cursor along the vertical projection direction After setting the first distance, move back to the label before the movement. The length of the first distance is less than the width of a label, and is determined according to the number of reference labels. The first distance becomes shorter as the number of reference labels decreases.
同样原理,当总标签个数等于或少于参考标签数量时,为获得更好的动画效果,当光标在触摸屏宽度方向移动时,将光标沿水平投影方向移动到位于触摸屏最边沿的标签上后,进一步将光标沿水平投影方向移动设定的第一距离后再移回触摸屏最边沿的标签上;当光标在触摸屏高度方向移动时,将光标沿垂直投影方向移动到位于触摸屏最边沿的标签上后,进一步将光标沿水平投影方向移动设定的第一距离后再移回触摸屏最边沿的标签上。这样,光标到达最边沿标签后,还可以在触摸屏壁上反弹。In the same principle, when the total number of labels is equal to or less than the number of reference labels, in order to obtain a better animation effect, when the cursor moves in the width direction of the touch screen, move the cursor along the horizontal projection direction to the label located at the edge of the touch screen , further move the cursor along the horizontal projection direction for the set first distance and then move it back to the label on the edge of the touch screen; when the cursor moves in the height direction of the touch screen, move the cursor along the vertical projection direction to the label on the edge of the touch screen Afterwards, move the cursor further along the horizontal projection direction for a set first distance and then move it back to the label on the edge of the touch screen. In this way, after the cursor reaches the edgemost label, it can also bounce on the touch screen wall.
本发明实施例还提供一种触摸屏光标控制装置和移动通信终端,包括:The embodiment of the present invention also provides a touch screen cursor control device and a mobile communication terminal, including:
用于捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间的单元;A unit used to capture the sliding track and sliding time of the control body when dragging the cursor on the touch screen;
用于根据滑动轨迹和滑动时间确定控制体的滑动速度的单元;A unit for determining the sliding velocity of the control body according to the sliding trajectory and sliding time;
用于根据滑动速度确定光标在触摸屏上的移动距离的单元;A unit for determining the moving distance of the cursor on the touch screen according to the sliding speed;
用于根据移动距离和光标移动前所在标签,控制光标在触摸屏上移动的单元。The unit used to control the movement of the cursor on the touch screen according to the moving distance and the label where the cursor moved.
本发明实施例通过捕获控制体在触摸屏上拖动光标移动时的滑动轨迹和滑动时间,确定控制体的滑动速度,并根据滑动速度确定光标在所述触摸屏上的移动距离,使移动距离的长短和滑动速度的快慢相匹配,并移动距离和光标移动前所在标签,控制光标在触摸屏上移动,从而提高了根据控制体滑动轨迹控制光标移动的准确度。The embodiment of the present invention determines the sliding speed of the control body by capturing the sliding track and sliding time when the control body drags the cursor on the touch screen, and determines the moving distance of the cursor on the touch screen according to the sliding speed, so that the length of the moving distance Match the speed of the sliding speed, and move the distance and the label where the cursor is before moving to control the cursor to move on the touch screen, thereby improving the accuracy of controlling the movement of the cursor according to the sliding track of the control body.
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Apparently, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.
Claims (39)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102243337A CN101727230B (en) | 2008-10-17 | 2008-10-17 | Method and device for controlling cursor of touch screen, and mobile communication terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102243337A CN101727230B (en) | 2008-10-17 | 2008-10-17 | Method and device for controlling cursor of touch screen, and mobile communication terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101727230A CN101727230A (en) | 2010-06-09 |
CN101727230B true CN101727230B (en) | 2012-06-27 |
Family
ID=42448196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102243337A Active CN101727230B (en) | 2008-10-17 | 2008-10-17 | Method and device for controlling cursor of touch screen, and mobile communication terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101727230B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5552947B2 (en) * | 2010-07-30 | 2014-07-16 | ソニー株式会社 | Information processing apparatus, display control method, and display control program |
JP5494337B2 (en) | 2010-07-30 | 2014-05-14 | ソニー株式会社 | Information processing apparatus, information processing method, and information processing program |
CN102841735A (en) * | 2011-06-21 | 2012-12-26 | 昆盈企业股份有限公司 | Track input device and page turning control method thereof |
CN103365559B (en) * | 2012-04-09 | 2018-07-06 | 腾讯科技(深圳)有限公司 | A kind of method and mobile terminal for drawing sliding trace |
CN102799358B (en) * | 2012-06-20 | 2017-08-08 | 南京中兴软件有限责任公司 | The determination method and device of display position of cursor |
CN102779004B (en) * | 2012-06-26 | 2015-05-13 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for operating touch screen terminal screen |
CN103513908B (en) * | 2012-06-29 | 2017-03-29 | 国际商业机器公司 | For controlling light target method and apparatus on the touchscreen |
CN103096157B (en) * | 2013-01-11 | 2016-06-01 | 北京奇艺世纪科技有限公司 | A kind of method utilizing mobile phone to control moving focal point on TV applications interface |
CN103268184A (en) * | 2013-05-17 | 2013-08-28 | 广东欧珀移动通信有限公司 | Method and device for moving text cursor |
CN104375740A (en) * | 2013-08-15 | 2015-02-25 | 联想(北京)有限公司 | Cursor positioning method, device and terminal |
CN105843511A (en) * | 2016-04-06 | 2016-08-10 | 上海斐讯数据通信技术有限公司 | Touch screen display content selection method and system |
CN106227445A (en) * | 2016-07-14 | 2016-12-14 | 乐视控股(北京)有限公司 | display control method, device and terminal |
CN106873896B (en) * | 2017-03-01 | 2019-01-29 | 维沃移动通信有限公司 | A kind of control method and mobile terminal of slide |
CN110262747B (en) * | 2019-06-21 | 2021-05-07 | Oppo广东移动通信有限公司 | Method and device for controlling terminal, terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1584813A (en) * | 2003-08-18 | 2005-02-23 | 英业达(南京)科技有限公司 | Touching control panel directional controlling method, apparatus with touching control panel thereby and storing media |
CN1695105A (en) * | 2001-12-28 | 2005-11-09 | 皇家飞利浦电子股份有限公司 | Touch-screen image scrolling system and method |
CN101063925A (en) * | 2006-04-24 | 2007-10-31 | 宏达国际电子股份有限公司 | Information guide method |
CN101183284A (en) * | 2007-11-26 | 2008-05-21 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal hand-written inputting method, device and mobile terminal |
-
2008
- 2008-10-17 CN CN2008102243337A patent/CN101727230B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1695105A (en) * | 2001-12-28 | 2005-11-09 | 皇家飞利浦电子股份有限公司 | Touch-screen image scrolling system and method |
CN1584813A (en) * | 2003-08-18 | 2005-02-23 | 英业达(南京)科技有限公司 | Touching control panel directional controlling method, apparatus with touching control panel thereby and storing media |
CN101063925A (en) * | 2006-04-24 | 2007-10-31 | 宏达国际电子股份有限公司 | Information guide method |
CN101183284A (en) * | 2007-11-26 | 2008-05-21 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal hand-written inputting method, device and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN101727230A (en) | 2010-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101727230B (en) | Method and device for controlling cursor of touch screen, and mobile communication terminal | |
CN105446525B (en) | A kind of control method of game role behavior | |
US10354393B2 (en) | Method and device for determining motion trajectory of target subject, and storage medium | |
US9383907B2 (en) | Scrolling apparatus, scrolling method, and computer-readable medium | |
EP2743810B1 (en) | Touch screen sliding search method and touch screen device | |
CN104166553B (en) | A kind of display methods and electronic equipment | |
CN102541537B (en) | Method and device for realizing menu container controls with surrounding effect | |
KR20130029071A (en) | Methods and apparatuses for providing an enhanced user interface | |
EP2750011A1 (en) | Page switching method and device in interactive interface, and computer storage medium | |
CN102331877B (en) | Method and device for displaying information on touch screen | |
US9372613B2 (en) | Scrolling method and electronic device thereof | |
CN110727496B (en) | Layout method and device of graphical user interface, electronic equipment and storage medium | |
JP2016201028A (en) | Program for improving operability of user input, electronic device, and method | |
WO2020113901A1 (en) | Shooting control method and apparatus in soccer game, and computer device and storage medium | |
WO2015139469A1 (en) | Webpage adjustment method and device, and electronic device | |
CN108174278A (en) | Barrage display method and barrage display device | |
EP2361658A3 (en) | Game image generation device and game image generation method | |
CN103970439A (en) | Method for utilizing projected gesture completion to improve instrument performance | |
CN105045498A (en) | Touch generating method for virtual button position of mobile terminal | |
CN107261500A (en) | A kind of method, device and mobile terminal for positioning object | |
CN108905203A (en) | Information processing method, device, storage medium and electronic device | |
CN104090905A (en) | Information recommendation method and information recommendation system | |
CN103472986A (en) | Touch sliding operation self adaption control method, device and touch plate | |
KR20180010555A (en) | An input-latency reduction method based on a prediction of a position | |
CN107158701A (en) | The reminding method and device of outgoing dynamics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |