TWI438652B - Method and apparatus for enabling scaling display on the touch pad - Google Patents

Method and apparatus for enabling scaling display on the touch pad Download PDF

Info

Publication number
TWI438652B
TWI438652B TW99101316A TW99101316A TWI438652B TW I438652 B TWI438652 B TW I438652B TW 99101316 A TW99101316 A TW 99101316A TW 99101316 A TW99101316 A TW 99101316A TW I438652 B TWI438652 B TW I438652B
Authority
TW
Taiwan
Prior art keywords
reference position
touch
distance
value
display
Prior art date
Application number
TW99101316A
Other languages
Chinese (zh)
Other versions
TW201126379A (en
Inventor
Hai-Sen Liang
Te-Jia Liu
Hua-Dong Cheng
Chih San Chiang
hong-gang Li
Hong-Gang Dong-Chao
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW99101316A priority Critical patent/TWI438652B/en
Publication of TW201126379A publication Critical patent/TW201126379A/en
Application granted granted Critical
Publication of TWI438652B publication Critical patent/TWI438652B/en

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Description

在觸摸板上實現顯示內容縮放的方法及電子裝置Method and electronic device for realizing display content zoom on touch panel

本發明涉及一種在觸摸板上實現顯示內容縮放的方法及實現縮放方法的電子裝置,尤其是一種通過觸摸板手勢識別實現顯示內容縮放的方法及實現縮放方法的電子裝置。The invention relates to a method for realizing zooming of display content on a touch panel and an electronic device for realizing the zooming method, in particular to a method for realizing zooming of display content by touch panel gesture recognition and an electronic device for realizing the zooming method.

如今觸摸板已廣泛應用於個人數位助理(PDA)、手機、掌上電腦、手提電腦等電子設備上。觸摸板是供使用者或導電性物件(例如觸控筆)在面板上滑動或接觸的輸入設備,可以使遊標產生相對移動和支援其他延伸性功能,例如按鍵仿真功能等。Touchpads are now widely used in personal digital assistants (PDAs), mobile phones, PDAs, laptops and other electronic devices. The touchpad is an input device for a user or a conductive object (such as a stylus) to slide or touch on the panel, which can make the cursor relatively move and support other extension functions, such as button emulation function.

目前為了執行顯示內容縮放功能,用戶一般需要通過輸入設備,例如滑鼠、觸摸板等,選中顯示器上顯示的相關圖示並執行,操作並不方便。如果可以通過觸摸板識別用戶手勢,從而執行顯示內容縮放功能,將使得相關的操作變得十分簡單而人性化。At present, in order to perform the display content zoom function, the user generally needs to select and execute the related icon displayed on the display through an input device such as a mouse, a touchpad, etc., which is inconvenient to operate. If the user gesture can be recognized by the touchpad to perform the display content zoom function, the related operations will be made very simple and user-friendly.

有鑒於此,有必要提供一種在觸摸板上實現顯示內容縮放的方法及實現縮放方法的電子裝置及其操作方法。In view of the above, it is necessary to provide a method for realizing display content scaling on a touch panel and an electronic device for implementing the scaling method and an operation method thereof.

一種在觸摸板上實現顯示內容縮放的電子裝置,包括顯示器、置於顯示器前面的觸摸板、記憶體和控制器。記憶體用於存儲觸摸板輸出的座標值。控制器,用於當觸摸板輸出的座標值滿足預設條件時,控制顯示器上顯示的內容。記憶體還存儲有一時間預設值。電子裝置還包括:計時器,在記憶體接收到觸碰位置資訊的同時開始計時,判斷觸碰板是否在預設時間值內檢測到新的觸碰動作。計算器,計算同一時刻兩個觸碰物件的座標值之間的距離。及比較器,將計算器在不同時刻分別計算所得的距離值進行比較。控制器還用於根據比較器的比較結果進行縮放手勢的判定,並根據判定結果控制顯示器上顯示內容的縮放。An electronic device that implements display content scaling on a touch panel, including a display, a touchpad placed in front of the display, a memory, and a controller. The memory is used to store the coordinate values of the touchpad output. The controller is configured to control the content displayed on the display when the coordinate value output by the touch panel meets the preset condition. The memory also stores a time preset. The electronic device further includes: a timer that starts timing when the memory receives the touch position information, and determines whether the touch panel detects a new touch action within the preset time value. A calculator that calculates the distance between the coordinate values of two touch objects at the same time. And the comparator compares the distance values calculated by the calculator at different times. The controller is further configured to perform a determination of the zoom gesture according to the comparison result of the comparator, and control the scaling of the displayed content on the display according to the determination result.

一種在觸摸板上實現顯示內容縮放的方法,包括以下步驟:存儲第一時刻兩個觸碰物件的座標值,記錄為第一參考位置和第二參考位置;計時器開始計時,並檢測是否在預設時間值內有新的觸碰動作;若在預設時間內檢測到新的觸碰動作,則存儲的兩個觸碰物件座標值,記錄為第三參考位置和第四參考位置;計算第一參考位置與第二參考位置之間的距離值以及第三參考位置與第四參考位置之間的距離值;比較計算值的距離值;根據比較結果進行縮放手勢的判定,若第一參考位置與第二參考位置之間的距離值小於第三參考位置與第四參考位置之間的距離值,則識別為一放大手勢,顯示器上顯示的內容放大;若第一參考位置與第二參考位置之間的距離值大於第三參考位置與第四參考位置之間的距離值,則識別為一縮小手勢,顯示器上顯示的內容縮小;及抹除記錄的座標值。A method for implementing display content zooming on a touch panel, comprising the steps of: storing coordinate values of two touch objects at a first moment, recording as a first reference position and a second reference position; the timer starts timing, and detecting whether There is a new touch action in the preset time value; if a new touch action is detected within the preset time, the stored coordinate values of the two touch objects are recorded as the third reference position and the fourth reference position; a distance value between the first reference position and the second reference position and a distance value between the third reference position and the fourth reference position; comparing the distance value of the calculated value; determining the zoom gesture according to the comparison result, if the first reference The distance value between the position and the second reference position is smaller than the distance value between the third reference position and the fourth reference position, and is recognized as a zoom-in gesture, and the content displayed on the display is enlarged; if the first reference position and the second reference are The distance value between the positions is greater than the distance value between the third reference position and the fourth reference position, and is recognized as a zoom-out gesture, and the content displayed on the display is reduced; Erase coordinate values recorded.

相對於現有技術,本發明提供的在觸摸板上實現顯示內容縮放的方法,只需改變手指等觸碰物件間的相對位置就可以達到實現顯示內容的縮放功能,讓使用者的操作更方便和人性化,提高操作效率。Compared with the prior art, the method for realizing the zooming of the display content on the touch panel provided by the present invention can realize the zooming function of the display content by changing the relative position between the touched objects such as the finger, so that the user's operation is more convenient and Humanization and improved operational efficiency.

請參照圖1,電子裝置100包括顯示器11、觸摸板12和記憶體13。觸摸板12安裝在顯示器11的正面。電子裝置100可以為電子相框、電子書、相機等電子產品。Referring to FIG. 1 , the electronic device 100 includes a display 11 , a touch panel 12 , and a memory 13 . The touch panel 12 is mounted on the front side of the display 11. The electronic device 100 can be an electronic product such as an electronic photo frame, an electronic book, or a camera.

顯示器11用於顯示圖像、畫面等內容。觸摸板12,用於檢測用戶觸碰並輸出包括座標值的觸碰位置資訊。記憶體13,用於存儲由觸摸板12輸出的座標值;記憶體13還用於存儲一時間預設值t;並且當完成一次縮放手勢識別操作時,記憶體13重定,抹除記錄的座標值。預設時間值t設定為用戶在觸摸板12上完成一個完整的縮放動作所需要的時間,用戶可改變該預設時間值t的數值,以適應不同的情況。The display 11 is for displaying contents such as images, pictures, and the like. The touch panel 12 is configured to detect a user touch and output touch position information including a coordinate value. The memory 13 is configured to store the coordinate value output by the touch panel 12; the memory 13 is further configured to store a time preset value t; and when the zoom gesture recognition operation is completed, the memory 13 is reset, and the recorded coordinates are erased. value. The preset time value t is set to the time required for the user to complete a complete zooming action on the touchpad 12, and the user can change the value of the preset time value t to suit different situations.

電子裝置100還包括計時器14、計算器15、比較器16和控制器17。計時器14,用於在記憶體13接收到觸碰位置資訊的同時開始計時,判斷觸摸板12是否在預設時間值t內檢測到新的觸碰動作。計算器15,用於計算同一時刻兩個觸碰物件的座標值之間的距離。比較器16,用於將計算器15在不同時刻分別計算所得的距離值進行比較。控制器17,用於根據比較器16的比較結果進行縮放手勢的判定,並根據判定結果控制顯示器11上顯示內容的縮放。The electronic device 100 also includes a timer 14, a calculator 15, a comparator 16, and a controller 17. The timer 14 is configured to start timing while the memory 13 receives the touch position information, and determine whether the touch panel 12 detects a new touch action within the preset time value t. The calculator 15 is used to calculate the distance between the coordinate values of the two touch objects at the same time. The comparator 16 is configured to compare the distance values respectively calculated by the calculator 15 at different times. The controller 17 is configured to perform a determination of the zoom gesture according to the comparison result of the comparator 16, and control the zoom of the display content on the display 11 according to the determination result.

請參照圖2,本發明還提供一種使用上述電子裝置100在觸摸板上實現顯示內容縮放功能的方法,其包括以下步驟:Referring to FIG. 2, the present invention further provides a method for implementing a display content zoom function on a touch panel using the above electronic device 100, which includes the following steps:

步驟S10:當觸摸板12檢測到某一時刻有兩個手指觸碰到觸摸板的觸控介面時,由記憶體13記錄各手指觸碰的位置資訊,記錄為第一參考位置和第二參考位置,然後進入步驟S12。Step S10: When the touch panel 12 detects that two fingers touch the touch interface of the touch panel at a certain moment, the memory 13 records the position information touched by each finger, and records the first reference position and the second reference. Position, then proceeds to step S12.

步驟S12:記憶體13在接收到觸碰位置資訊的同時計時器14開始計時,並且觸摸板12檢測是否在預設時間值t內有新的觸碰動作;若在預設時間內檢測到新的觸碰動作,則進入步驟S14;若在預設時間內未檢測到新的觸碰動作,則不必記錄觸碰位置資訊,直接進入步驟S22。Step S12: the memory 13 starts counting while receiving the touch position information, and the touch panel 12 detects whether there is a new touch action within the preset time value t; if a new time is detected within the preset time If the touch action does not detect a new touch action within the preset time, it is not necessary to record the touch position information, and the process proceeds directly to step S22.

當出現用戶先按下兩點,鬆開然後再按下兩點的間斷觸碰動作的情況時,觸摸板同樣會檢測到觸碰點位置資訊的變化,但是用戶此時並不是希望進行縮放操作。而一般而言,用戶完成該間斷觸碰動作所經歷的時間會大於該預設時間值t,固通過預先設置一個預設時間值t可避免將用戶間斷的觸碰誤認為是縮放動作,從而產生誤操作。When the user presses two points first, then releases and then presses two intermittent touches, the touchpad also detects the change of the touch point position information, but the user does not want to perform the zoom operation at this time. . In general, the time that the user completes the intermittent touch action will be greater than the preset time value t. By setting a preset time value t in advance, the user's intermittent touch can be prevented from being mistaken for the zoom action. An error occurred.

步驟S14:由觸摸板12檢測到的新的觸碰動作的位置資訊,並由記憶體13記錄各手指觸碰的位置資訊,記錄為第三參考位置和第四參考位置,然後進入步驟S16。Step S14: The position information of the new touch action detected by the touch panel 12, and the position information touched by each finger is recorded by the memory 13 to be recorded as the third reference position and the fourth reference position, and then proceeds to step S16.

步驟S16:計算器15計算第一參考位置與第二參考位置的距離值,並記錄為D1,計算第三參考位置與第四參考位置之間的距離值,並記錄為D2,然後進入步驟S18。Step S16: The calculator 15 calculates a distance value between the first reference position and the second reference position, and records it as D1, calculates a distance value between the third reference position and the fourth reference position, and records it as D2, and then proceeds to step S18. .

步驟S18:由比較器16比較D1與D2,然後進入步驟S20。Step S18: D1 and D2 are compared by the comparator 16, and then the process proceeds to step S20.

步驟S20:由控制器17根據比較結果進行縮放手勢的判定,並根據判定結果控制顯示器11上顯示內容的縮放;若D1小於D2,則識別為一放大手勢,控制器17發出一放大手勢信號並控制顯示器11上顯示的內容放大;若D1大於D2,則識別為一縮小手勢,控制器17發出一縮小手勢信號並控制顯示器11上顯示的內容縮小,然後進入步驟S22。Step S20: The controller 17 performs the determination of the zoom gesture according to the comparison result, and controls the zoom of the display content on the display 11 according to the determination result; if D1 is smaller than D2, it is recognized as a zoom-in gesture, and the controller 17 issues a zoom-in gesture signal and The content displayed on the control display 11 is enlarged; if D1 is greater than D2, it is recognized as a reduction gesture, the controller 17 issues a reduction gesture signal and controls the reduction of the content displayed on the display 11, and then proceeds to step S22.

步驟S22:記憶體13重定,抹除記錄的座標值,以迎接用戶新的操作。Step S22: The memory 13 is reset, and the recorded coordinate value is erased to greet the user's new operation.

當第一手指或第二手指中只有一個手指運動,另一個手指保持不動時,僅以運動的那根手指的位置座標的變化為控制縮放操作的依據。When only one of the first finger or the second finger moves and the other finger remains stationary, only the change in the position coordinate of the moving finger is the basis for controlling the zoom operation.

上述實施例中的觸碰物件均以手指為例說明,觸碰物件也可為觸控筆等觸控設備。觸摸板為紅外式觸摸板。The touch objects in the above embodiments are all illustrated by a finger, and the touch object can also be a touch device such as a stylus. The touchpad is an infrared touchpad.

可以理解的是,對於本領域的普通技術人員來說,可以根據本發明的技術構思做出其他各種相應的改變與變形,而所有這些改變與變形都應屬於本發明權利要求的保護範圍。It is to be understood that those skilled in the art can make various other changes and modifications in accordance with the technical concept of the present invention, and all such changes and modifications are intended to fall within the scope of the appended claims.

11‧‧‧顯示器11‧‧‧ Display

12‧‧‧觸摸板12‧‧‧ touchpad

13‧‧‧記憶體13‧‧‧ memory

14‧‧‧計時器14‧‧‧Timer

15‧‧‧計算器15‧‧‧Calculator

16‧‧‧比較器16‧‧‧ comparator

17‧‧‧控制器17‧‧‧ Controller

圖1為本發明在觸摸板上實現顯示內容縮放功能的電子裝置的功能模組圖。FIG. 1 is a functional block diagram of an electronic device that implements a display content zoom function on a touch panel according to the present invention.

圖2 為圖1所示的電子裝置的識別縮放手勢方法的流程圖。2 is a flow chart of a method for recognizing a zoom gesture of the electronic device shown in FIG. 1.

Claims (8)

一種在觸摸板上實現顯示內容縮放功能的電子裝置,其包括顯示器、置於顯示器前面的觸摸板、記憶體和控制器;
記憶體用於存儲觸摸板輸出的座標值;
控制器,用於當觸摸板輸出的座標值滿足預設條件時,控制顯示器上顯示的內容;其改良在於,
記憶體還存儲有一時間預設值;電子裝置還包括:
計時器,在記憶體接收到觸碰位置資訊的同時開始計時,判斷觸碰板是否在預設時間值內檢測到新的觸碰動作;
計算器,計算同一時刻兩個觸碰物件的座標值之間的距離;及
比較器,將計算器在不同時刻分別計算所得的距離值進行比較;控制器還用於根據比較器的比較結果進行縮放手勢的判定,並根據判定結果控制顯示器上顯示內容的縮放。
An electronic device for implementing a display content zoom function on a touch panel, comprising a display, a touch panel disposed in front of the display, a memory, and a controller;
The memory is used to store the coordinate value of the touch panel output;
a controller, configured to control content displayed on the display when a coordinate value output by the touch panel meets a preset condition;
The memory further stores a time preset value; the electronic device further includes:
The timer starts timing when the memory receives the touch position information, and determines whether the touch panel detects a new touch action within the preset time value;
a calculator that calculates the distance between the coordinate values of the two touch objects at the same time; and a comparator that compares the distance values calculated by the calculator at different times; the controller is further configured to perform the comparison result according to the comparator The determination of the gesture is scaled, and the scaling of the displayed content on the display is controlled based on the determination result.
如申請專利範圍第1項所述之電子裝置,其中,當在後一時刻兩個觸碰物件的座標值之間的距離大於前一時刻兩個觸碰物件的座標值之間的距離,則控制器識別為一放大手勢,控制顯示器上顯示的內容放大;當在後一時刻兩個觸碰物件的座標值的距離小於前一時刻兩個觸碰物件的座標值之間的距離,則控制器識別為一縮小手勢,控制顯示器上顯示的內容縮小。The electronic device of claim 1, wherein, when the distance between the coordinate values of the two touch objects at a later time is greater than the distance between the coordinate values of the two touch objects at the previous time, The controller recognizes that the zoom gesture is to control the content displayed on the display to be enlarged; when the distance between the coordinate values of the two touch objects at a later time is less than the distance between the coordinate values of the two touch objects at the previous moment, then the control The device recognizes as a zoom out gesture and controls the content displayed on the display to shrink. 如申請專利範圍第1項所述之電子裝置,其中,若在預設時間 內觸摸板未檢測到新的觸碰動作,則記憶體重定,抹除記 錄的座標值。The electronic device of claim 1, wherein if the touch panel does not detect a new touch action within a preset time, the weight is determined and the recorded coordinate value is erased. 如申請專利範圍第1項所述之電子裝置,其中,觸摸板為觸摸屏、觸控板或手寫板。The electronic device of claim 1, wherein the touch panel is a touch screen, a touch panel or a tablet. 一種在觸摸板上實現顯示內容縮放的方法,包括以下步驟:
存儲第一時刻兩個觸碰物件的座標值,記錄為第一參考位置和第二參考位置;
開始計時,並檢測是否在預設時間值內有新的觸碰動作;
若在預設時間內檢測到新的觸碰動作,則存儲的兩個觸碰物件座標值,記錄為第三參考位置和第四參考位置;
計算第一參考位置與第二參考位置之間的距離值以及第三參考位置與第四參考位置之間的距離值;
比較計算值的距離值;及
根據比較結果進行縮放手勢的判定。
A method for implementing display content scaling on a touchpad includes the following steps:
Storing the coordinate values of the two touch objects at the first moment, recorded as the first reference position and the second reference position;
Start timing and detect if there is a new touch action within the preset time value;
If a new touch action is detected within a preset time, the stored two touch object coordinate values are recorded as a third reference position and a fourth reference position;
Calculating a distance value between the first reference position and the second reference position and a distance value between the third reference position and the fourth reference position;
Comparing the distance values of the calculated values; and determining the zoom gesture based on the comparison result.
如申請專利範圍第5項所述之方法,其中,若第一參考位置與第二參考位置之間的距離值小於第三參考位置與第四參考位置之間的距離值,則識別為一放大手勢,放大顯示的內容;若第一參考位置與第二參考位置之間的距離值大於第三參考位置與第四參考位置之間的距離值,則識別為一縮小手勢,縮小顯示的內容。The method of claim 5, wherein if the distance value between the first reference position and the second reference position is smaller than a distance between the third reference position and the fourth reference position, the identification is an amplification The gesture is to enlarge the displayed content; if the distance value between the first reference position and the second reference position is greater than the distance between the third reference position and the fourth reference position, the recognition is a zoom-out gesture, and the displayed content is reduced. 如申請專利範圍第5項所述之方法,其中,若在預設時間內未檢測到新的觸碰動作,則記憶體重定,抹除記錄的座標。The method of claim 5, wherein if a new touch action is not detected within a preset time, the weight is determined and the recorded coordinates are erased. 如申請專利範圍第5項所述之方法,其中,預設時間值設定為用戶完成一個完整的縮放動作所需要的時間,用戶可根據不同情況改變該預設時間的數值,並預先存儲。The method of claim 5, wherein the preset time value is set to a time required for the user to complete a complete zooming action, and the user can change the value of the preset time according to different situations and store it in advance.
TW99101316A 2010-01-19 2010-01-19 Method and apparatus for enabling scaling display on the touch pad TWI438652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99101316A TWI438652B (en) 2010-01-19 2010-01-19 Method and apparatus for enabling scaling display on the touch pad

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99101316A TWI438652B (en) 2010-01-19 2010-01-19 Method and apparatus for enabling scaling display on the touch pad

Publications (2)

Publication Number Publication Date
TW201126379A TW201126379A (en) 2011-08-01
TWI438652B true TWI438652B (en) 2014-05-21

Family

ID=45024508

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99101316A TWI438652B (en) 2010-01-19 2010-01-19 Method and apparatus for enabling scaling display on the touch pad

Country Status (1)

Country Link
TW (1) TWI438652B (en)

Also Published As

Publication number Publication date
TW201126379A (en) 2011-08-01

Similar Documents

Publication Publication Date Title
TWI514248B (en) Method for preventing from accidentally triggering edge swipe gesture and gesture triggering
JP5893060B2 (en) User interface method providing continuous zoom function
US8305356B1 (en) Method and apparatus for controlling information scrolling on touch-screen
KR102194272B1 (en) Enhancing touch inputs with gestures
KR101892567B1 (en) Method and apparatus for moving contents on screen in terminal
US8976140B2 (en) Touch input processor, information processor, and touch input control method
TWI585672B (en) Electronic display device and icon control method
US10754470B2 (en) Interface control method for operation with one hand and electronic device thereof
US20140165013A1 (en) Electronic device and page zooming method thereof
TWI479377B (en) Method and device for touch identifying
CN101763194A (en) Method and electronic device for realizing zooming of display content on touch pad
US10671269B2 (en) Electronic device with large-size display screen, system and method for controlling display screen
WO2019119799A1 (en) Method for displaying application icon, and terminal device
KR20140033839A (en) Method??for user's??interface using one hand in terminal having touchscreen and device thereof
TW201626204A (en) Touch control photography method and touch terminal thereof
US8605056B2 (en) Touch-controlled device, identifying method and computer program product thereof
TWI471762B (en) Touch pen, electronic device and interactive operation method
US9256360B2 (en) Single touch process to achieve dual touch user interface
KR101134192B1 (en) A method for controlling touch screen, a medium recoring the same, a control device for touch screen and mobile device using the same
KR20100134339A (en) Method to provide human-computer interface to zoom in and out the display of an electronic communication device and the media containing the program to manipulate this method
TWI438652B (en) Method and apparatus for enabling scaling display on the touch pad
TW201441914A (en) Electronic device and method for adjusting displaying ratio of images
TWI462034B (en) Touch electronic device and digital information selection method thereof
CN105094660A (en) Terminal screen adjusting method and device, and terminal
KR101375727B1 (en) Touch screen zoom in or zoom out method and apparatus using the linear touch pattern

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees