TWI399666B - Controlling method based on touch operations - Google Patents
Controlling method based on touch operations Download PDFInfo
- Publication number
- TWI399666B TWI399666B TW98125867A TW98125867A TWI399666B TW I399666 B TWI399666 B TW I399666B TW 98125867 A TW98125867 A TW 98125867A TW 98125867 A TW98125867 A TW 98125867A TW I399666 B TWI399666 B TW I399666B
- Authority
- TW
- Taiwan
- Prior art keywords
- point
- touch
- control method
- touch control
- rotation
- Prior art date
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Description
本發明涉及一種人機交互方法,尤其涉及一種觸摸控制方法。The invention relates to a human-computer interaction method, in particular to a touch control method.
為了滿足用戶對大螢幕的追求,越來越多的電子設備採用觸摸屏以節省傳統按鍵佔用的空間,如手機。In order to meet the user's pursuit of large screens, more and more electronic devices use touch screens to save space occupied by traditional buttons, such as mobile phones.
用戶通過觸摸屏操作時,通常用手點擊顯示的圖像按鈕對所選擇的物件進行操作,如圖像的旋轉和縮放等。採用上述單擊觸摸方法,操作起來不夠靈活。When the user operates through the touch screen, the selected object is usually operated by clicking the displayed image button, such as the rotation and zooming of the image. With the above touch-and-touch method, the operation is not flexible enough.
有鑒於此,有必要提供一種操作比較靈活的觸摸控制方法。In view of this, it is necessary to provide a touch control method that is relatively flexible in operation.
一種觸摸控制方法,其包括如下步驟:根據用戶操作確定待操作物件;檢測第一觸摸點的座標A(XA ,YA );檢測第二觸摸點的初始點的座標B(XB ,YB );根據第一觸摸點的座標A(XA ,YA )和第二觸摸點的初始點的座標B(XB ,YB )確定操作中心點C(XC ,YC );檢測第二觸摸點移動後所在點的座標B'(XB' ,YB' );根據座標C(XC ,YC )、B(XB ,YB )及B'(XB' ,YB' )計算兩個向量CB和CB’之間的夾角α;以操作中心點C(XC ,YC )為中心將所選物件旋轉α度。A touch control method includes the steps of: determining an object to be operated according to a user operation; detecting a coordinate A (X A , Y A ) of the first touch point; and detecting a coordinate B of the initial point of the second touch point (X B , Y B ) determining the operation center point C (X C , Y C ) according to the coordinate A (X A , Y A ) of the first touch point and the coordinate B (X B , Y B ) of the initial point of the second touch point; The coordinates B' (X B' , Y B' ) of the point at which the second touch point moves; according to the coordinates C (X C , Y C ), B (X B , Y B ) and B' (X B' , Y B' ) calculates the angle α between the two vectors CB and CB'; rotates the selected object by a degree around the center of operation C (X C , Y C ).
一種觸摸控制方法,其包括如下步驟:根據用戶操作確定待操作物件;檢測第一觸摸點的座標A(XA ,YA );檢測第二觸摸點的初始點的座標B(XB ,YB );根據第一觸摸點的座標A(XA ,YA )確定操作中心點C(XC ,YC );檢測第二觸摸點移動後所在點的座標B'(XB' ,YB' );根據座標C(XC ,YC )、B(XB ,YB )及B'(XB' ,YB' )計算兩個向量CB和CB’之間的夾角α;以操作中心點C(XC ,YC )為中心將所選物件α度。A touch control method includes the steps of: determining an object to be operated according to a user operation; detecting a coordinate A (X A , Y A ) of the first touch point; and detecting a coordinate B of the initial point of the second touch point (X B , Y B ); determining the operation center point C (X C , Y C ) according to the coordinate A (X A , Y A ) of the first touch point; detecting the coordinate B' (X B ' , Y of the point at which the second touch point moves B' ); calculating the angle α between the two vectors CB and CB' according to the coordinates C(X C , Y C ), B(X B , Y B ) and B'(X B' , Y B' ); The operation center point C (X C , Y C ) centers on the selected object α degrees.
上述觸摸控制方法,所選物件可以根據第二觸摸點的移動軌跡而變化,用戶操作起來也比較靈活。In the above touch control method, the selected object can be changed according to the movement trajectory of the second touch point, and the user is more flexible in operation.
觸摸屏通常可以根據電容方式,電阻方式等多種方式定位觸摸點的位置。如圖1所示,為方便理解,以觸摸屏100為矩形為例。在觸摸屏100上定義一個直角坐標系,觸摸屏100的一個端點為原點O,X軸和Y軸分別沿著與該端點相連的兩個邊延伸。如此,觸摸屏100上的每個點都有固定的座標值。The touch screen can usually position the touch point according to various methods such as capacitive mode and resistance mode. As shown in FIG. 1 , for convenience of understanding, the touch screen 100 is a rectangle as an example. A Cartesian coordinate system is defined on the touch screen 100. One end of the touch screen 100 is an origin O, and the X axis and the Y axis respectively extend along two sides connected to the end point. As such, each point on touch screen 100 has a fixed coordinate value.
如圖2所示,基於上面描述之觸摸屏定位技術,本發明提供一種觸摸控制方法,可以提高用戶操作的靈活性。該觸摸控制方法包括如下步驟。As shown in FIG. 2, based on the touch screen positioning technology described above, the present invention provides a touch control method, which can improve the flexibility of user operation. The touch control method includes the following steps.
步驟S900,根據用戶操作確定待操作物件。詳言之,若用戶針對觸摸屏100的某個區域或者某個物件進行選擇,則某個區域內的物件或者被選擇的物件為待操作物件;若用戶未針對觸摸屏100的某個區域或者某個物件進行選擇,則以觸摸屏100上顯示的所有物件為整體作為待操作物件。Step S900, determining an object to be operated according to a user operation. In detail, if the user selects an area or an object of the touch screen 100, the object in the certain area or the selected object is the object to be operated; if the user does not target an area or a certain touch screen 100 When the object is selected, all the objects displayed on the touch screen 100 are taken as the whole to be operated.
步驟S902,檢測第一觸摸點的座標A(XA ,YA )(請同時參圖1)。第一觸摸點為固定點,其可以通過雙擊方式確定,即當用戶在觸摸屏100上雙擊一點時,該點作為第一觸摸點。為方便用戶操作,可將第一觸摸點以圖形方式在顯示幕上標示出來,例如,以星形的方式顯示。Step S902, detecting the coordinates A (X A , Y A ) of the first touch point (please refer to FIG. 1 at the same time). The first touch point is a fixed point, which can be determined by a double-click method, that is, when the user double-clicks on the touch screen 100, the point serves as the first touch point. For the convenience of the user, the first touch point can be graphically displayed on the display screen, for example, displayed in a star shape.
步驟S904,檢測第二觸摸點的初始點的座標B(XB ,YB )。第二觸摸點為動點,其可以通過觸摸方式確定。即在確定第一觸摸點後的預定時間內,若用戶再次觸摸觸摸屏100,將該次觸摸的初始位置作為第二觸摸點的初始點。本實施方式中,該預定時間為1秒鐘。Step S904, detecting a coordinate B (X B , Y B ) of the initial point of the second touch point. The second touch point is a moving point, which can be determined by touch. That is, if the user touches the touch screen 100 again within a predetermined time after determining the first touch point, the initial position of the touch is taken as the initial point of the second touch point. In the present embodiment, the predetermined time is 1 second.
步驟S906,根據座標A(XA ,YA )和座標B計算第一觸摸點和第二觸摸點的初始點之間的距離。Step S906, calculating the distance between the initial points of the first touch point and the second touch point according to the coordinates A(X A , Y A ) and the coordinate B .
步驟S908,判斷距離D1是否大於或者預定距離R。若距離D1大於或者等於預定距離R,則進入步驟S912。若距離D1小於預定距離R,則進入步驟S910。In step S908, it is determined whether the distance D1 is greater than or a predetermined distance R. If the distance D1 is greater than or equal to the predetermined distance R, the process proceeds to step S912. If the distance D1 is smaller than the predetermined distance R, the process proceeds to step S910.
步驟S910,發出提示資訊提示用戶此次第二觸摸點的初始點無效,請重新輸入;並返回步驟S904。該種提示資訊可以為聲音資訊、圖形資訊等,如將標示第一觸摸點的圖形消失作為一種圖形資訊。Step S910, issuing a prompt message prompting the user that the initial point of the second touch point is invalid, please input again; and returning to step S904. The prompt information may be sound information, graphic information, etc., such as disappearing the graphic indicating the first touch point as a kind of graphic information.
步驟S912,根據座標A(XA ,YA )和座標B(XB ,YB )確定操作中心點C(XC ,YC )。操作中心點C(XC ,YC )可根據用戶需要通過預定的運算式計算得出。在本實施方式中,操作中心點C(XC ,YC )為第一觸摸點和第二觸摸點的初始點之間線段的中間點,預定的運算式為X C = (X A +X B )/2,Y C =(Y A +Y B )/2。在其他實施方式中,操作中心點C(XC ,YC )也可以僅根據座標A(XA ,YA )計算得出,如操作中心點C(XC ,YC )為第一觸摸點,則預定的運算式為XC =XA ,YC =YA 。In step S912, the operation center point C (X C , Y C ) is determined according to the coordinates A (X A , Y A ) and the coordinates B (X B , Y B ). The operation center point C (X C , Y C ) can be calculated according to the user's needs through a predetermined calculation formula. In the present embodiment, the operation center point C (X C , Y C ) is the intermediate point of the line segment between the first touch point and the initial point of the second touch point, and the predetermined expression is X C = ( X A + X B )/2, Y C =( Y A + Y B )/2. In other embodiments, the operation center point C (X C , Y C ) may also be calculated only from the coordinates A (X A , Y A ), such as the operation center point C (X C , Y C ) being the first touch. Point, then the predetermined expression is X C = X A , Y C = Y A .
步驟S914,檢測第二觸摸點移動後所在點的座標B'(XB' ,YB' )。Step S914, detecting a coordinate B' (X B ' , Y B ' ) of the point at which the second touch point moves.
步驟S916,根據座標C(XC ,YC ),座標B(XB ,YB )和座標B'(XB' ,YB' )計算兩個向量CB和CB’之間的夾角Step S916, calculating an angle between the two vectors CB and CB' according to the coordinates C(X C , Y C ), the coordinates B(X B , Y B ), and the coordinates B′(X B′ , Y B′ ).
步驟S918,判斷夾角α是否大於或者等於預定角度。若夾角α大於或者等於預定角度,則進入步驟S920。若夾角α小於預定角度,則進入步驟S924。本實施方式中,該預定角度為5度。In step S918, it is determined whether the angle α is greater than or equal to a predetermined angle. If the angle α is greater than or equal to the predetermined angle, the process proceeds to step S920. If the angle α is smaller than the predetermined angle, the process proceeds to step S924. In the present embodiment, the predetermined angle is 5 degrees.
步驟S920,根據座標B(XB ,YB )和座標B'(XB' ,YB' )計算自向量CB轉動至向量CB’的轉動方向。本實施方式中,先比較YB 和YB' 的大小的方式得出轉動方向,若YB' 大於YB ,則轉動方向為順時針方向;若YB' 小於YB ,則轉動方向為逆時針方向。若YB' 等於YB ,則再比較XB 和XB' 的大小來確定轉動方向。若XB' 大於XB ,則轉動方向為順時針,若XB' 小於XB ,則轉動方向為逆時針。In step S920, the rotation direction from the vector CB to the vector CB' is calculated according to the coordinates B (X B , Y B ) and the coordinates B' (X B ' , Y B ' ). In the present embodiment, the direction of rotation is first obtained by comparing the sizes of Y B and Y B′ . If Y B′ is greater than Y B , the direction of rotation is clockwise; if Y B′ is less than Y B , the direction of rotation is Counterclockwise. If Y B' is equal to Y B , then the magnitudes of X B and X B ' are compared to determine the direction of rotation. If X B' is greater than X B , the direction of rotation is clockwise. If X B' is less than X B , the direction of rotation is counterclockwise.
步驟S922,以操作中心點C(XC ,YC )為中心將所選擇的物件在計算得出的轉動方向上旋轉α度,並進入步驟S924。In step S922, the selected object is rotated by a degree in the calculated rotation direction centering on the operation center point C (X C , Y C ), and the flow proceeds to step S924.
步驟S924,檢測第二觸摸點是否被釋放。若第二觸摸點被釋放,則進入步驟S926。若第二觸摸點未被釋放,則返回步驟S914。Step S924, detecting whether the second touch point is released. If the second touch point is released, the process proceeds to step S926. If the second touch point is not released, then return to step S914.
步驟S926,消除標示第一觸摸點的圖形。Step S926, the graphic indicating the first touch point is eliminated.
上述觸摸控制方法,所選物件可以根據第二觸摸點的移動軌跡而即時發生變化,所選物件變化過程比較直觀,用戶操作起來也比較靈活。In the above touch control method, the selected object can be changed instantly according to the movement trajectory of the second touch point, and the selected object change process is relatively intuitive, and the user is more flexible in operation.
為方便用戶操作,也可將第二觸摸點的運動軌跡以圖形方式標示出來,並在第二觸摸點釋放時消除圖形標示。For the convenience of the user, the motion track of the second touch point can also be graphically marked, and the graphic mark is eliminated when the second touch point is released.
100...觸摸屏100. . . touch screen
S900~S926...觸摸控制方法步驟S900~S926. . . Touch control method steps
圖1為一種定義直角坐標系後的觸摸屏的示意圖。FIG. 1 is a schematic diagram of a touch screen after defining a Cartesian coordinate system.
圖2為一較佳實施方式的觸摸控制方法的流程圖。2 is a flow chart of a touch control method of a preferred embodiment.
S900~S926...觸摸控制方法步驟S900~S926. . . Touch control method steps
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98125867A TWI399666B (en) | 2009-07-31 | 2009-07-31 | Controlling method based on touch operations |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98125867A TWI399666B (en) | 2009-07-31 | 2009-07-31 | Controlling method based on touch operations |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201104505A TW201104505A (en) | 2011-02-01 |
TWI399666B true TWI399666B (en) | 2013-06-21 |
Family
ID=44813664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW98125867A TWI399666B (en) | 2009-07-31 | 2009-07-31 | Controlling method based on touch operations |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI399666B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412720B (en) * | 2013-06-28 | 2016-12-28 | 贵阳朗玛信息技术股份有限公司 | Process method and the device thereof of touch control type input signal |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070152984A1 (en) * | 2005-12-30 | 2007-07-05 | Bas Ording | Portable electronic device with multi-touch input |
TW200807284A (en) * | 2006-07-17 | 2008-02-01 | Guan-Lin Chen | Programmable touch system |
-
2009
- 2009-07-31 TW TW98125867A patent/TWI399666B/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070152984A1 (en) * | 2005-12-30 | 2007-07-05 | Bas Ording | Portable electronic device with multi-touch input |
TW200807284A (en) * | 2006-07-17 | 2008-02-01 | Guan-Lin Chen | Programmable touch system |
Also Published As
Publication number | Publication date |
---|---|
TW201104505A (en) | 2011-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8570283B2 (en) | Information processing apparatus, information processing method, and program | |
US20110012927A1 (en) | Touch control method | |
TWI419023B (en) | Use the touch device to control the positioning of the cursor on the screen | |
US8749502B2 (en) | System and method for virtual touch sensing | |
US20150185953A1 (en) | Optimization operation method and apparatus for terminal interface | |
US9223406B2 (en) | Screen display control method of electronic device and apparatus therefor | |
US8525854B2 (en) | Display device and screen display method | |
US20150186004A1 (en) | Multimode gesture processing | |
US10140002B2 (en) | Information processing apparatus, information processing method, and program | |
US10282087B2 (en) | Multi-touch based drawing input method and apparatus | |
CN101957709A (en) | Touch control method | |
CN103412720A (en) | Method and device for processing touch-control input signals | |
US9507515B2 (en) | System and method for data selection by means of a touch-sensitive surface | |
US20160162098A1 (en) | Method for providing user interface using multi-point touch and apparatus for same | |
EP2780785A1 (en) | Method and apparatus for performing a zooming action | |
JP5657866B2 (en) | Input device, pointer display position adjustment method and program | |
JP2012221358A (en) | Electronic apparatus, handwriting input method and handwriting input program | |
TWI399666B (en) | Controlling method based on touch operations | |
TWI480792B (en) | Operating method of electronic apparatus | |
US20160224111A1 (en) | Method for controlling touch screen by detecting position of line of sight of user | |
KR20150000278A (en) | Display apparatus and control method thereof | |
TW201349083A (en) | Method and system for clicking and positioning movable object | |
TWI512592B (en) | Electronic device and method for displaying a user interface thereof | |
KR20110066266A (en) | A method for controlling touch screen, a medium recoring the same, a control device for touch screen and mobile device using the same | |
US20150091831A1 (en) | Display device and display control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |