TWI431513B - Method for compensating touch signal - Google Patents
Method for compensating touch signal Download PDFInfo
- Publication number
- TWI431513B TWI431513B TW99126946A TW99126946A TWI431513B TW I431513 B TWI431513 B TW I431513B TW 99126946 A TW99126946 A TW 99126946A TW 99126946 A TW99126946 A TW 99126946A TW I431513 B TWI431513 B TW I431513B
- Authority
- TW
- Taiwan
- Prior art keywords
- coordinate position
- compensation
- touch signal
- compensating
- touch
- Prior art date
Links
Landscapes
- Position Input By Displaying (AREA)
Description
本發明是有關於一種訊號補償方法,且特別是有關於一種觸控訊號的補償方法。 The invention relates to a signal compensation method, and in particular to a method for compensating a touch signal.
隨著科技的發展,人類對電子裝置的依賴性亦與日俱增。目前市面上電子裝置,許多是利用觸控螢幕(touch panel)或觸控板(touch pad)來進行操作。而因為目前作業系統亦可搭配觸控式螢幕來使用,使得觸控式螢幕將成為未來發展的趨勢之一。 With the development of technology, human dependence on electronic devices is increasing. Many of the electronic devices currently on the market operate using a touch panel or a touch pad. Because the current operating system can also be used with a touch screen, the touch screen will become one of the future development trends.
由於目前市面上的觸控式螢幕日益增多,同時符合觸控操作介面的軟體也快速地增加,從觸控式螢幕所傳遞出來的控制訊號,對於作業系統來說,都認為是滑鼠的訊號。這是因為觸控式螢幕會在接受到觸控時,將觸控訊號轉變為相對應的滑鼠訊號。 As the number of touch screens on the market is increasing, and the software that conforms to the touch interface is also rapidly increasing, the control signals transmitted from the touch screen are considered to be mouse signals for the operating system. . This is because the touch screen will change the touch signal to the corresponding mouse signal when the touch is received.
然而,在此過程中,由觸控訊號產生的滑鼠訊號的連續性會比真正的滑鼠所產生的滑鼠訊號來的差。也因此在使用觸控式螢幕時,操控介面的順暢度便會受到影響。 However, during this process, the continuity of the mouse signal generated by the touch signal will be worse than the mouse signal generated by the real mouse. Therefore, when using a touch screen, the smoothness of the manipulation interface is affected.
本發明提供一種觸控訊號的補償方法,提高利用觸控訊號來控制游標的順暢度。 The invention provides a method for compensating a touch signal, and improves the smoothness of the cursor by using the touch signal.
本發明提出一種觸控訊號的補償方法。在接收到觸控 訊號時,每隔一段固定時間偵測觸控訊號對應於顯示單元的座標位置。判斷目前座標位置與前次座標位置是否相同。在此,目前座標位置為目前所偵測到的座標位置,而前次座標位置為前一次所偵測到的座標位置。倘若目前座標位置與前次座標位置相同,執行訊號補償動作。訊號補償動作包括計算補償值,並且以補償值來補償目前座標位置。 The invention provides a method for compensating a touch signal. Receiving touch During the signal, the touch signal is detected at a fixed time corresponding to the coordinate position of the display unit. Determine whether the current coordinate position is the same as the previous coordinate position. Here, the current coordinate position is the currently detected coordinate position, and the previous coordinate position is the previously detected coordinate position. If the current coordinate position is the same as the previous coordinate position, the signal compensation action is performed. The signal compensation action includes calculating the compensation value and compensating the current coordinate position with the compensation value.
在本發明之一實施例中,上述在判斷目前座標位置與前次座標位置是否相同的步驟之後,倘若目前座標位置與前次座標位置不相同,計算目前座標位置與前次座標位置之間的位移量。並且,記錄此位移量。另外,將前次座標位置更新為目前座標位置,以在經過固定時間之後,重新執行偵測觸控訊號對應於顯示單元的座標位置的步驟。 In an embodiment of the present invention, after the step of determining whether the current coordinate position is the same as the previous coordinate position, if the current coordinate position is different from the previous coordinate position, the current coordinate position and the previous coordinate position are calculated. The amount of displacement. Also, record this amount of displacement. In addition, the previous coordinate position is updated to the current coordinate position to re-execute the step of detecting the coordinate position of the touch control signal corresponding to the display unit after a fixed time has elapsed.
在本發明之一實施例中,上述計算補償值的步驟中,可依據上述位移量來計算補償值。 In an embodiment of the present invention, in the step of calculating the compensation value, the compensation value may be calculated according to the displacement amount.
在本發明之一實施例中,上述在以補償值來補償目前座標位置的步驟之後,更可累加一補償次數。並且,倘若目前座標位置與前次座標位置相同,在執行訊號補償動作的步驟之前,可先偵測補償次數是否大於一計數值。倘若補償次數未大於此計數值,方執行訊號補償動作;另一方面,倘若補償次數大於此計數值,則停止執行訊號補償動作。 In an embodiment of the invention, after the step of compensating the current coordinate position with the compensation value, a compensation number may be accumulated. Moreover, if the current coordinate position is the same as the previous coordinate position, before the step of performing the signal compensation operation, it is possible to detect whether the compensation number is greater than a count value. If the number of compensations is not greater than the count value, the signal compensation action is performed; on the other hand, if the number of compensations is greater than the count value, the signal compensation action is stopped.
基於上述,本發明可在觸控訊號發生不連續時執行訊號補償動作,使得觸控訊號的操控更接近於滑鼠訊號,在 使用上將更為順暢。 Based on the above, the present invention can perform a signal compensation action when the touch signal is discontinuous, so that the touch signal is controlled closer to the mouse signal. It will be smoother to use.
為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the present invention will be more apparent from the following description.
一般而言,當觸控訊號發生不連續時,可能導致游標的座標位置會一直停留在同一個點上。然而,實際上使用者的手指有可能是一直處在移動的狀態之下。為了讓觸控訊號的操作流暢度能夠更接近滑鼠訊號,本發明提出一種觸控訊號的補償方法,以在觸控訊號不連續時,執行訊號補償動作,藉以提升觸控訊號的操作流暢度。 In general, when the touch signal is discontinuous, the coordinate position of the cursor may stay at the same point. However, in reality, the user's finger may be in a state of being moved all the time. In order to make the operation smoothness of the touch signal closer to the mouse signal, the present invention provides a method for compensating the touch signal, so as to perform a signal compensation action when the touch signal is discontinuous, thereby improving the operation smoothness of the touch signal. .
一般而言,當觸控單元(例如觸控板或觸控螢幕)接收到觸控訊號時,也就是使用者按壓下觸控單元,觸控訊號將會被轉換成相應的座標位置。當系統接收到觸控訊號時,也就是使用者觸控到觸控單元時,系統便可發出滑鼠按下(Mouse down)訊號。之後,系統開始對觸控訊號進行補償,直到使用者停止按壓觸控單元。在使用者停止按壓觸控單元時,系統則可發出滑鼠釋放(Mouse up)的訊號,以停止對觸控訊號進行補償。 In general, when a touch unit (such as a touch panel or a touch screen) receives a touch signal, that is, when the user presses the touch unit, the touch signal is converted into a corresponding coordinate position. When the system receives the touch signal, that is, when the user touches the touch unit, the system can issue a mouse down signal. After that, the system starts to compensate the touch signal until the user stops pressing the touch unit. When the user stops pressing the touch unit, the system can issue a mouse up signal to stop compensating the touch signal.
圖1是依照本發明一實施例所繪示的觸控訊號的補償方法的流程圖。請參照圖1,在步驟S105中,在接收到觸控訊號時,每隔一段固定時間偵測觸控訊號對應於顯示單元的座標位置。在本實施例中,可利用一個計時器(timer)在每經過一段固定時間時,取得觸控訊號對應的座標位置。 FIG. 1 is a flow chart of a method for compensating a touch signal according to an embodiment of the invention. Referring to FIG. 1 , in step S105 , when the touch signal is received, the touch signal is detected at a fixed time to correspond to the coordinate position of the display unit. In this embodiment, a timer can be used to obtain the coordinate position corresponding to the touch signal every time a fixed period of time elapses.
接著,在步驟S110中,判斷目前座標位置與前次座標位置是否相同。在此,目前座標位置為目前所偵測到的座標位置,而前次座標位置為前一次所偵測到的座標位置。 Next, in step S110, it is determined whether the current coordinate position is the same as the previous coordinate position. Here, the current coordinate position is the currently detected coordinate position, and the previous coordinate position is the previously detected coordinate position.
倘若目前座標位置與前次座標位置相同,表示觸控訊號可能遺失而造成觸控訊號不連續。此時,如步驟S115所示,執行訊號補償動作。訊號補償動作包括計算補償值,並且以補償值來補償目前座標位置。而倘若目前座標位置與前次座標位置不相同時,表示觸控訊號並未遺失,因此不用執行訊號補償動作。 If the current coordinate position is the same as the previous coordinate position, it indicates that the touch signal may be lost and the touch signal is discontinuous. At this time, as shown in step S115, the signal compensation operation is performed. The signal compensation action includes calculating the compensation value and compensating the current coordinate position with the compensation value. If the current coordinate position is different from the previous coordinate position, it means that the touch signal is not lost, so no signal compensation action is required.
以下再舉另一實施例來說明。圖2是依照本發明另一實施例所繪示的觸控訊號的補償方法的流程圖。在步驟S205中,偵測觸控訊號對應於顯示單元的座標位置。接著,在步驟S210中,判斷目前座標位置是否等於前次座標位置。 Another embodiment will be described below. 2 is a flow chart of a method for compensating a touch signal according to another embodiment of the invention. In step S205, the touch signal is detected to correspond to the coordinate position of the display unit. Next, in step S210, it is determined whether the current coordinate position is equal to the previous coordinate position.
倘若目前座標位置不等於前次座標位置,表示觸控訊號沒有遺失。此時,如步驟S215所示,計算目前座標位置與前次座標位置之間的位移量(offset)。例如,以目前座標位置減去前次座標位置。並且,在步驟S220中,記錄位移量。另外,在步驟S225中,將前次座標位置更新為目前座標位置。同時,將補償次數歸零。之後,在經過固定時間之後,重新執行步驟S205。 If the current coordinate position is not equal to the previous coordinate position, the touch signal is not lost. At this time, as shown in step S215, the amount of displacement between the current coordinate position and the previous coordinate position is calculated. For example, subtract the previous coordinate position from the current coordinate position. And, in step S220, the displacement amount is recorded. Further, in step S225, the previous coordinate position is updated to the current coordinate position. At the same time, the number of compensations is reset to zero. Thereafter, after a fixed time has elapsed, step S205 is re-executed.
另一方面,倘若目前座標位置等於前次座標位置,如步驟S230所示,偵測補償次數是否大於計數值。若補償次數大於計數值,也就是說座標位置持續在同一個點超過 一定的時間,此時可判定座標位置不再繼續移動,進而不再進行訊號補償動作。 On the other hand, if the current coordinate position is equal to the previous coordinate position, as shown in step S230, it is detected whether the number of compensation times is greater than the count value. If the number of compensations is greater than the count value, that is, the coordinate position continues to exceed the same point. At a certain time, it can be determined that the coordinate position does not continue to move, and the signal compensation action is no longer performed.
而若補償次數尚位大於計數值時,執行訊號補償動作,如步驟S235所示,計算補償值。之後,在步驟S240中,以補償值來補償目前座標位置。例如,可依據所記錄的位移量來計算補償值(參照步驟S220)。在一般的情況下,由於手指的移動速度並不會有非常劇烈的差異,並且觸控訊號不連續的時間並不會太長,在這樣的環境底下,可以在發生觸控訊號不連續時,利用先前的位移量來進行補償。另外,亦可設定一敏感度,而依據敏感度來計算補償值。或者,可設計一演算法來計算補償值。 If the number of compensations is still greater than the count value, the signal compensation action is performed, and as shown in step S235, the compensation value is calculated. Thereafter, in step S240, the current coordinate position is compensated with the compensation value. For example, the compensation value can be calculated based on the recorded displacement amount (refer to step S220). Under normal circumstances, since the moving speed of the finger does not have a very sharp difference, and the time when the touch signal is not continuous is not too long, under such an environment, when the touch signal is discontinuous, The previous amount of displacement is used to compensate. In addition, a sensitivity can also be set, and the compensation value is calculated according to the sensitivity. Alternatively, an algorithm can be designed to calculate the compensation value.
舉例來說,假設第一次偵測到的座標位置A為(Xa,Ya),第二次偵測到的座標位置B為(Xb,Yb),第三次偵測到的座標位置c為(Xc,Yc)。並且,假設座標位置A不等於座標位置B,而座標位置B等於座標位置C。當偵測到座標位置B時,由於座標位置A不等於座標位置B,因此便會記錄下座標位置A與座標位置B的位移量,例如(Xb-Xa,Yb-Ya)。而在偵測到座標位置C時,由於座標位置C等於座標位置B,表示此時可能產生觸控訊號不連續,因此便將座標位置C加上位移量來進行補償。例如,Xc=Xc+(Xb-Xa),Yc=Yc+(Yb-Ya)。 For example, suppose the first detected coordinate position A is (Xa, Ya), the second detected coordinate position B is (Xb, Yb), and the third detected coordinate position c is (Xc, Yc). Also, assume that the coordinate position A is not equal to the coordinate position B, and the coordinate position B is equal to the coordinate position C. When the coordinate position B is detected, since the coordinate position A is not equal to the coordinate position B, the displacement amount of the coordinate position A and the coordinate position B, for example, (Xb-Xa, Yb-Ya), is recorded. When the coordinate position C is detected, since the coordinate position C is equal to the coordinate position B, it indicates that the touch signal may be discontinuous at this time, so the coordinate position C is added with the displacement amount to compensate. For example, Xc=Xc+(Xb-Xa), Yc=Yc+(Yb-Ya).
上述在以補償值來補償目前座標位置之後,如步驟S245所示,將補償次數累加。這是為了判斷座標位置是否持續在同一個點超過一定的時間,藉以判斷使用者是否停 止按壓觸控單元。另外,每當使用者重新觸控到觸控單元而產生觸控訊號時,可將相關數據(例如位移量、補償次數以及補償值)歸零,藉以重新計算補償值。 After the current coordinate position is compensated by the compensation value, as shown in step S245, the compensation times are accumulated. This is to determine whether the coordinate position continues to be at the same point for a certain period of time, in order to determine whether the user stops. Press the touch unit. In addition, whenever the user touches the touch unit to generate a touch signal, the relevant data (such as the amount of displacement, the number of compensations, and the compensation value) can be zeroed to recalculate the compensation value.
綜上所述,本發明藉由比較目前座標位置與前次座標位置是否相同來判斷觸控訊號是否遺失。倘若判斷觸控訊號遺失,則執行訊號補償動作。並且,藉由補償次數的多寡來判斷使用者是否確實停止移動繼續按壓觸控單元。據此,可提高利用觸控訊號來控制游標的順暢度。 In summary, the present invention determines whether the touch signal is lost by comparing whether the current coordinate position and the previous coordinate position are the same. If it is judged that the touch signal is lost, the signal compensation action is performed. Moreover, it is determined whether the user actually stops moving and continues to press the touch unit by the number of compensation times. Accordingly, the touch signal can be improved to control the smoothness of the cursor.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.
S105~S115‧‧‧本發明一實施的觸控訊號的補償方法各步驟 S105~S115‧‧‧ steps of the method for compensating the touch signal of one embodiment of the present invention
S205~S245‧‧‧本發明另一實施的觸控訊號的補償方法各步驟 S205~S245‧‧‧ steps of the method for compensating the touch signal of another embodiment of the present invention
圖1是依照本發明一實施例所繪示的觸控訊號的補償方法的流程圖。 FIG. 1 is a flow chart of a method for compensating a touch signal according to an embodiment of the invention.
圖2是依照本發明另一實施例所繪示的觸控訊號的補償方法的流程圖。 2 is a flow chart of a method for compensating a touch signal according to another embodiment of the invention.
S105~S115‧‧‧本發明一實施的觸控訊號的補償方法各步驟 S105~S115‧‧‧ steps of the method for compensating the touch signal of one embodiment of the present invention
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99126946A TWI431513B (en) | 2010-08-12 | 2010-08-12 | Method for compensating touch signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99126946A TWI431513B (en) | 2010-08-12 | 2010-08-12 | Method for compensating touch signal |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201207679A TW201207679A (en) | 2012-02-16 |
TWI431513B true TWI431513B (en) | 2014-03-21 |
Family
ID=46762280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW99126946A TWI431513B (en) | 2010-08-12 | 2010-08-12 | Method for compensating touch signal |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI431513B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103809782B (en) * | 2012-11-05 | 2016-11-23 | 宏碁股份有限公司 | touch position compensation method and device |
-
2010
- 2010-08-12 TW TW99126946A patent/TWI431513B/en active
Also Published As
Publication number | Publication date |
---|---|
TW201207679A (en) | 2012-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10140010B2 (en) | Moving an object by drag operation on a touch panel | |
TWI537814B (en) | Display, touch, and stylus synchronization | |
US9323383B2 (en) | Method of identifying edge swipe gesture and method of opening window control bar using the identifying method | |
US8411050B2 (en) | Touch interface having microphone to determine touch impact strength | |
CN104007932B (en) | A kind of touch point recognition methods and device | |
US8553000B2 (en) | Input apparatus that accurately determines input operation, control method for input apparatus, and storage medium | |
TWI584164B (en) | Emulating pressure sensitivity on multi-touch devices | |
CN107436700B (en) | Data processing method and device | |
US20120249448A1 (en) | Method of identifying a gesture and device using the same | |
JP5812015B2 (en) | Input device, input method, and program | |
JP2009098942A5 (en) | ||
TW201305869A (en) | A tracking method and a tracking apparatus for a touch sensing screen | |
US8681125B2 (en) | Method and system for estimating the tendency of pressure change on a touch panel | |
TW201335818A (en) | Scan method for capacitive touch panel | |
WO2011035722A1 (en) | Method for identifying action on touch device and action identifying device | |
TW201514681A (en) | Detecting metohd for touch device and system thereof | |
CN102662533B (en) | Method for eliminating non-normal contact interference in infrared touch system | |
TW201234226A (en) | Signal processing method for touch panel and system thereof | |
TWI498778B (en) | Method for syncing different touching systems | |
TWI431513B (en) | Method for compensating touch signal | |
TWI575409B (en) | Dual-mode touch sensing method and stylus and touch panel for the same | |
CN102402322B (en) | Touch signal compensation method | |
US20140139495A1 (en) | System for optimizing touch tracks and method for optimizing touch tracks | |
TWI479393B (en) | Switching methods, optical touch devices using the same, and computer products thereof | |
US20240176452A1 (en) | Input detection device, input detection method, and recording medium recording input detection program |