201109996 六、發明說明: 【發明所屬之技術領域】 本發明係關於一種操作觸控螢幕之方法、於觸控螢幕 定義觸控手勢之方法及其電子裝置;特別是關於一種可由 使用者自行定義觸控手勢及觸控區域的操作觸控螢幕之 方法、於觸控螢幕定義觸控手勢之方法及其電子裝置。 【先前技術】 隨著科技的進步,電子裝置的控制方式也越來越多 元。為了讓使用者能更直覺地操作電子裝置,因此利用觸 控螢幕進行操作的方式已日益增加。例如微軟⑧及蘋果電 腦®等公司皆發表了利用觸控螢幕控制之電子裝置。但在 先前技術中,此種電子裝置操作觸控螢幕之方法皆為固 定,亦即使用者無法自行選擇、插入或是替換不同的觸控 手勢於不同的觸控區域。因此,在先前技術中由於使用者 對於觸控螢幕之操作方式不能有所變動,因此對使用者而 言就會減少操作上的自由度。尤其是當一個以上的使用者 同時利用同一觸控螢幕進行遊戲時,若使用者可以自行設 定觸控操作方式,即可大幅增加遊戲時的樂趣。 有鑑於此,有需要發明一種新的操作觸控螢幕之方 法、於觸控螢幕定義觸控手勢之方法及其電子裝置,以解 決先前技術所存在的問題。 【發明内容】 本發明之主要目的係在提供一種電子裝置,其具有觸 控螢幕,並可由使用者自行設定觸控螢幕之觸控操作方式。 201109996 本發明之另一主要目的係在提供一種可由使用者自行 設定觸控螢幕之觸控操作方式的操作觸控螢幕之方法及於 觸控螢幕定義觸控手勢之方法。 為達成上述之目的,本發明之電子裝置包括觸控螢幕、 設定模組、偵測模組、判斷模組以及執行模組。設定模組 用以接收第一使用者界定觸控螢幕之一部分為供第一使用 者定義觸控手勢之第一觸控區域,並接收第一使用者於第 一觸控區域所定義對應第一功能之第一觸控手勢。偵測模 • 組用以偵測是否有由第一使用者所下達之觸控手勢被輸入 於第一觸控區域。若有由第一使用者所下達之觸控手勢被 輸入於第一觸控區域,則判斷模組係判斷觸控手勢是否為 第一觸控手勢。若是,則執行模組執行第一觸控手勢所對 應之第一功能。 本發明之觸控螢幕操作方法包括以下步驟:接收第一使 用者界定觸控螢幕之一部分為供第一使用者定義觸控手勢 之第一觸控區域;接收第一使用者於第一觸控區域所定義 • 對應第一功能之第一觸控手勢;偵測是否有由第一使用者 所下達之觸控手勢被輸入於第一觸控區域;若有由第一使 用者所下達之觸控手勢被輸入於第一觸控區域,則判斷觸 控手勢是否為第一觸控手勢;以及若觸控手勢是第一觸控 手勢,則執行第一觸控手勢所對應之第一功能。 本發明之於觸控螢幕定義觸控手勢之方法包括以下步 驟:界定觸控螢幕之一部分為供第一使用者定義觸控手勢 之第一觸控區域;接收第一使用者於第一觸控區域所定義 對應第一功能之第一觸控手勢;界定觸控螢幕之一部分為 201109996 供第一使用者定義觸控手勢之第二觸控區域,且第二觸控 區域與第—觸控區域不同;以及接收第二使用者於第二^ 控區域所設定之第二觸控手勢。 【實施方式】 ▲為讓本發明之上述和其他目的、特徵和優點能更明顯 易懂,下文特舉出本發明之具體實施例,並配合所附圖式, 作洋細說明如下。 凊先參考圖1係本發明之電子裝置之架構圖。 本實施例之電子裝置丨係為具有觸控功能之裝置,例 如筆記型電腦等可以支援觸控操作之電子裝置,以供一個 以上的使用者進行遊戲或其他控制,但本發明之電子裝置 1並不以此為限。電子裝置1具有觸控螢幕10及操作觸控 螢幕之模組,包括設定模組21、偵測模組22、判斷模組 23及執行模組24。 觸控螢幕10可為電阻式或是電容式等觸控功能之螢 幕,以供界定一個以上的特定觸控區域,例如圖1所示之 第一觸控區域11與第二觸控區域12。其中,第一觸控區 域11與第二觸控區域12係為觸控螢幕10之面板上所界定 出之一觸控區域,用以提供使用者輸入及定義觸控手勢, 並且第一觸控區域11與第二觸控區域12之位置與範圍可 由使用者自行設定。此處需注意者為本發明之觸控螢幕1〇 所能界定之觸控區域之數目並不以第一觸控區域u與第 二觸控區域12為限。 201109996 、疋模、,且21係為一軟體架構,並具有設定 用以提供一個以上的使用者 , 二右有⑼第―使用者及第二使时等—細 „設找控手勢,則藉由設定模組21可供第二= 者设疋第一觸控區域11之邊只 ^ _ 、 設定第—難㈣域11内201109996 VI. Description of the Invention: [Technical Field] The present invention relates to a method for operating a touch screen, a method for defining a touch gesture on a touch screen, and an electronic device thereof, and more particularly to a user-definable touch A method for controlling a touch screen in a gesture and a touch area, a method for defining a touch gesture on a touch screen, and an electronic device thereof. [Prior Art] With the advancement of technology, the control methods of electronic devices are becoming more and more numerous. In order to allow the user to operate the electronic device more intuitively, the manner in which the touch screen is operated has been increasing. Companies such as Microsoft 8 and Apple Computer® have released electronic devices that use touch screen controls. However, in the prior art, the method of operating the touch screen by the electronic device is fixed, that is, the user cannot select, insert or replace different touch gestures in different touch areas. Therefore, in the prior art, since the user's operation mode for the touch screen cannot be changed, the degree of freedom in operation is reduced for the user. In particular, when more than one user simultaneously uses the same touch screen to play games, if the user can set the touch operation mode by himself, the game can be greatly increased. In view of this, there is a need to invent a new method of operating a touch screen, a method of defining a touch gesture on a touch screen, and an electronic device thereof to solve the problems of the prior art. SUMMARY OF THE INVENTION The main object of the present invention is to provide an electronic device having a touch screen, and the touch operation mode of the touch screen can be set by the user. Another main object of the present invention is to provide a method for operating a touch screen by a user to set a touch operation mode of a touch screen and a method for defining a touch gesture on a touch screen. To achieve the above objective, the electronic device of the present invention includes a touch screen, a setting module, a detecting module, a determining module, and an executing module. The setting module is configured to receive a first touch area defined by the first user as a first touch area for the first user, and receive a first touch area defined by the first user in the first touch area. The first touch gesture of the function. The detection mode is used to detect whether a touch gesture issued by the first user is input to the first touch area. If the touch gesture issued by the first user is input to the first touch area, the determining module determines whether the touch gesture is the first touch gesture. If yes, the module performs the first function corresponding to the first touch gesture. The touch screen operating method of the present invention includes the steps of: receiving a first touch area defined by the first user as a first touch area for the first user to define a touch gesture; and receiving the first user on the first touch The area is defined by: a first touch gesture corresponding to the first function; detecting whether a touch gesture issued by the first user is input to the first touch area; if there is a touch issued by the first user The control gesture is input to the first touch area to determine whether the touch gesture is the first touch gesture; and if the touch gesture is the first touch gesture, the first function corresponding to the first touch gesture is performed. The method for defining a touch gesture on a touch screen includes the steps of: defining a touch screen as a first touch area for a first user to define a touch gesture; and receiving a first user on the first touch The first touch gesture corresponding to the first function is defined by the area; one part of the touch screen is defined as a second touch area for the first user to define the touch gesture, and the second touch area and the first touch area are defined by the first part of the touch screen. Differentiating; and receiving a second touch gesture set by the second user in the second control area. The above and other objects, features, and advantages of the present invention will become more apparent from the aspects of the invention. Referring first to Figure 1, there is shown an architectural diagram of an electronic device of the present invention. The electronic device of the present embodiment is a device having a touch function, such as a notebook computer and the like, which can support touch operation, for more than one user to play games or other controls, but the electronic device 1 of the present invention Not limited to this. The electronic device 1 has a touch screen 10 and a module for operating the touch screen, and includes a setting module 21, a detecting module 22, a determining module 23 and an executing module 24. The touch screen 10 can be a touch screen of a resistive or capacitive touch function for defining more than one specific touch area, such as the first touch area 11 and the second touch area 12 shown in FIG. The first touch area 11 and the second touch area 12 are one of the touch areas defined on the panel of the touch screen 10 for providing user input and defining a touch gesture, and the first touch The position and range of the area 11 and the second touch area 12 can be set by the user. It should be noted that the number of touch areas that can be defined by the touch screen of the present invention is not limited to the first touch area u and the second touch area 12. 201109996, model, and 21 series is a software architecture, and has settings to provide more than one user, two right (9) first - user and second time, etc. - fine set up control gestures, then borrow The setting module 21 is available for the second person to set the edge of the first touch area 11 only ^ _ , set the first - difficult (four) domain 11
可設定「㈣—下」之手勢為執行「確定」 使HYou can set the "(4)-down" gesture to execute "OK" to make H
二使用者亦可藉由設定模…定第二觸: 之邊界’並於第二觸控區域12内設定第二觸控 用以對應第二功能。 努 根據本發明之—實施例,設定模組21可於觸控螢幕1〇 上顯示小工具(Widget),第—使用者及第二使用者可藉由 點選小工具以啟動設定模組2卜即可方便第—使用者^第 二使用者設定第一觸控區域Π及第二觸控區域12。設定 介面211用以提供第一使用者及第二使用者自行設定觸控 手勢之介面。第-使用者及第二使用者亦可藉由點選小工 具以執行設定介面211,即可自行設定觸控手勢。其設定 流程在之後會有詳細的說明,故在此不再贅述。需注意的 是,上述之觸控區域亦可由電子裝置1預先設定,本發明 並不僅限於需由使用者設定。 偵測模組22用以偵測第一觸控區域U、第二觸控區域 12,或是觸控螢幕1〇上的任一區域内是否有觸控手勢被輸 入。債測模組22之偵測方法係根據觸控螢幕1〇之類別, 例如電阻式或是電容式等觸控螢幕10類別,而具有不同之 偵測方式,但本發明並不以上述的類別為限。由於其偵測 201109996 方式已被熟悉此項技術者所廣泛使用,故在此不 方法。 $述其 判斷模組23用以判斷當第一觸控區域u或第一 區域12内有觸控手勢被輸入時,該被輸入之觸押手:觸趣 為第一觸控手勢或第二觸控手勢。判_模組是否 入的觸控手勢之座標進行判斷是否為第—觸控手^所輪 觸控手勢。若被輸入之觸控手勢為第一觸 =第二 控貝i藉由^模組24執行第1控手勢所2 = 力月觸控手勢所對應之第二功能,例如:之第 戲,但本發明並不以此為限。 仃一遊 螢幕圖2A到圖3C關於本發明之择作― 營幕之方法。其中圖2AS 2B係根據 ^觸控 幕之方法之步驟流程圖;圖3 呆乍觸控骜 觸控榮幕之方法之示意圖。本發明之操作 法,但本發明之操作觸控螢幕操作觸控螢幕之方 所示之電子裝。同2方法並不以使用在如圖! 第二使用者為例朗本 /下雖以使用者及 發明之操作觸控螢幕之方作觸控螢幕之方法,但本 用者使用為限。 不以供第一使用者及第二使 如圖2A所示,本發明 界定觸控螢幕之— 部分為-觸行步驟2〇 1 ··接收使用者 如圖3A所示,本發明可工°° 一 定觸控螢幕10之—部分為—稭由步騾201,接收使用者界 用者可界定觸控螢幕1〇 ’之控區域。舉例而言,第一使 #分為第一觸控區域11,而 201109996 =使用者可界定觸控榮幕10之另一部分 =域域11與第二觸控區域12係不同的 觸徑&域根據本發明之^音热如,笼. 實 第一觸控區域11及第 一觸控&域12之邊界、範圍與位置可由 使用者分別自行設定。 及第- 明2以供第一使用者設定為實施例進行詳細之說 ,。首先第-使用者藉由點選小工具(圖未示)以啟動設 疋模組21來執行設定的流程。第一使用者可利 觸控筆等物品,在觸控榮幕10之一部分劃出或拉出第曰ίς 控區域11之邊界,藉此界定出第—觸控區域U。如此一 設定模組2i即可接收第一使用者界定觸控螢幕1〇之 :部分為第一觸控區域1卜並在觸控螢幕10上顯示出設 第一觸控區域11之範圍。即如圖3A中所顯示之虛線 科。而設定模組21在接收後,亦可重複_第一使用 者,以再次確定第-觸控區域„之界定制,但本發明並 =以此方式為限。另-方面’第二使用者亦利用相同之流 程,在觸控螢幕10之另一部分界定第二觸控區域12之邊The user can also set the second touch: by the setting mode, and set the second touch in the second touch area 12 to correspond to the second function. According to the embodiment of the present invention, the setting module 21 can display a widget on the touch screen 1 , and the user and the second user can start the setting module 2 by clicking the widget. The second user can set the first touch area and the second touch area 12. The setting interface 211 is configured to provide an interface for the first user and the second user to set the touch gesture. The first user and the second user can also set the touch gesture by setting the small tool to execute the setting interface 211. The setting process will be described in detail later, so it will not be described here. It should be noted that the above touch area may also be preset by the electronic device 1, and the present invention is not limited to being set by a user. The detecting module 22 is configured to detect whether the first touch area U, the second touch area 12, or any area on the touch screen 1 is touched. The detection method of the debt measurement module 22 is different according to the type of the touch screen, such as the resistive or capacitive touch screen 10, but has different detection modes, but the present invention does not use the above categories. Limited. Since the method of detecting 201109996 has been widely used by those skilled in the art, there is no way here. The judgment module 23 is configured to determine that when the touch gesture is input in the first touch area u or the first area 12, the input toucher: the touch is the first touch gesture or the second touch Control gestures. It is judged whether the coordinates of the touch gesture entered by the module are judged whether it is the touch gesture of the first touch hand. If the input touch gesture is the first touch = the second control, the second control function is performed by the ^ module 24, and the second function corresponding to the force month touch gesture, for example, the first play, but The invention is not limited thereto.仃一游 Screens 2A to 3C relate to the method of choice of the present invention - the camp. 2AS 2B is a flow chart according to the method of the touch screen; FIG. 3 is a schematic diagram of the method of touching the touch screen. The operation method of the present invention, but the electronic device shown in the method of operating the touch screen on the touch screen of the present invention. The same 2 methods are not used in the figure! The second user is a method of using the touch screen on the touch screen of the user and the invention, but the user is limited to use. For the first user and the second, as shown in FIG. 2A, the present invention defines the touch screen as part of the touch-step step 2〇1. The receiving user is as shown in FIG. 3A, and the present invention is operable. ° The part of the touch screen 10 must be - the straw is step 201, and the receiving user can define the control area of the touch screen 1". For example, the first makes # into the first touch area 11, and 201109996 = the user can define another part of the touch screen 10 = the domain 11 and the second touch area 12 are different from the touch path & According to the present invention, the boundary, range and position of the first touch area 11 and the first touch & field 12 can be set by the user. And the first and the second are provided for the first user to be described in detail as an embodiment. First, the user-performs the set module by executing a widget (not shown) to execute the set process. The first user can use the stylus and the like to draw or pull out the boundary of the third control area 11 in one part of the touch screen 10, thereby defining the first touch area U. The setting module 2i can receive the first user-defined touch screen: a portion of the first touch area 1 and a range of the first touch area 11 displayed on the touch screen 10. That is, the dotted line shown in Fig. 3A. After the receiving module 21 receives the same, the first user can be repeated to determine the boundary of the first touch area, but the present invention is limited to this method. The same process is also used to define the second touch area 12 on another portion of the touch screen 10.
界。由於其界定方式與第—制者之界定第—觸控區域H 之方式相同’故在此不再贅述。需注意的是,目3A所示 僅為示意,第-觸控區域u與第二觸控區域12亦可顯示 為實線,或是顯示為不同粗細的線條以進行區分,本發明 並不以此為限。 其次進行步驟202 :接收使用者於觸控區域所定義對應 至一功能之觸控手勢。 ’ 在此步驟202中,設定模組21接收第一使用者及第二 r , r* .1 . 9 201109996 使用者分別於第一觸控區域11及第二觸控區域12所定義 之第一觸控手勢及第二觸控手勢。其十,第一使用者係定 義第一觸控手勢對應第一功能,第二使用者係定義第二觸 控手勢對應第二功能。 進一步而言,在本發明之一實施例中,步驟202進一 步包括步驟202a、202b、202c及202d,以藉由設定模組 21之設定介面211而接收使用者於觸控區域所定義對應至 一功能之觸控手勢。 首先本發明藉由設定介面211進行步驟202a :於觸控 螢幕顯示複數預先定義之觸控手勢之代表符號及複數預先 定義之功能之代表符號。 如圖3B所示,在此步驟202a中,本發明藉由設定介 面211於觸控螢幕10上顯示出複數預先定義之觸控手勢之 代表符號30及複數預先定義之功能之代表符號40,其中 各個代表符號30及40分別代表不同之觸控手勢及不同之 功能,以供第一使用者或第二使用者進行選取與配對。需 注意的是,本發明中所提及之各個代表符號30及40 —詞, 並不限於圖形,而可涵蓋例如文字或其他形式之呈現方式。 以圖3B之實施例為例,觸控螢幕10係顯示出四種不 同觸控手勢之代表符號30,以及分別代表「放大」、「縮小」、 「確定」與「取消」等功能之代表符號40,以供第一使用 者或第二使用者進行選取與配對。上述之觸控手勢及功能 僅為示意,本發明並不以圖3B所示之觸控手勢及功能為 限。 其次進行步驟202b :接收使用者選取觸控手勢之代表 201109996 "ί夺號及功能之代表符號。 如圖3C所示,本發明之電子裝置!可提供使用者在設 定介面211上選取觸控手勢之代表符號30及功能之代表符 號40其中之-者,例如提供第一使用者選取第一觸控手勢 之代表符號30a及第-功能之代表符號4〇a。接著,本發明 即可藉由步驟2G2b,接收第—使用者所選取之第—觸控手 勢之代表符號30a及第一功能之代表符號4〇a。boundary. Since it is defined in the same way as the definition of the first touch area H of the first system, it will not be described here. It should be noted that the first touch region u and the second touch region 12 may also be displayed as solid lines or displayed as lines of different thicknesses for distinguishing, and the present invention does not This is limited. Next, proceed to step 202: receiving a touch gesture corresponding to a function defined by the user in the touch area. In this step 202, the setting module 21 receives the first user and the second r, r* .1 . 9 201109996 respectively, the user defines the first in the first touch area 11 and the second touch area 12 respectively. Touch gestures and second touch gestures. Tenth, the first user defines that the first touch gesture corresponds to the first function, and the second user defines that the second touch gesture corresponds to the second function. Further, in an embodiment of the present invention, the step 202 further includes steps 202a, 202b, 202c, and 202d for receiving, by the setting interface 211 of the setting module 21, the user corresponding to the touch area. Feature touch gestures. First, the present invention performs step 202a by setting interface 211: displaying a representative symbol of a plurality of predefined touch gestures and a representative symbol of a plurality of predefined functions on the touch screen. As shown in FIG. 3B, in the step 202a, the present invention displays a representative symbol 30 of a plurality of predefined touch gestures and a representative symbol 40 of a plurality of predefined functions on the touch screen 10 by setting the interface 211, wherein Each of the representative symbols 30 and 40 respectively represent different touch gestures and different functions for the first user or the second user to select and pair. It should be noted that the various representative symbols 30 and 40 - words mentioned in the present invention are not limited to graphics, but may cover, for example, text or other forms of presentation. Taking the embodiment of FIG. 3B as an example, the touch screen 10 displays representative symbols 30 of four different touch gestures, and representative symbols representing functions such as “zoom in”, “zoom out”, “determine” and “cancel”. 40, for the first user or the second user to select and pair. The above touch gestures and functions are merely illustrative, and the present invention is not limited to the touch gestures and functions shown in FIG. 3B. Next, step 202b is performed: receiving a representative of the user to select a touch gesture 201109996 " ί symbol and function representative symbol. As shown in Fig. 3C, the electronic device of the present invention! The user may select the representative symbol 30 of the touch gesture and the representative symbol 40 of the function on the setting interface 211, for example, providing the first user to select the representative symbol 30a of the first touch gesture and the representative of the first function. Symbol 4〇a. Then, the present invention can receive the representative symbol 30a of the first touch gesture selected by the user and the representative symbol 4〇a of the first function by the step 2G2b.
接著進行步驟202c :接收使用者移動選取之觸控手勢 及功能之代表符號至觸控區域。 工 如圖3C所示,本發明於步驟2〇2c中可接收第一使用 者將選取之第一觸控手勢之代表符號3〇a及第一功能之代 表符號40a移動到第一觸控區域^内。 接著進行步驟202d :設定所選取之觸控手勢係對應至 所選取之功能。 本發明於接收第一使用者移動選取之第一觸控手勢之 代表符號30a及第一功能之代表符號4〇a後,即進行步驟 202d,將所選取之第一觸控手勢設定為執行所選取之第一 功能。如此一來,設定模組21即可將第一觸控手勢設定為 執行「放大」之功能。 經過重複上述步驟202a到步驟202d,設定模組21即 可接收第一使用者自行定義觸控手勢及其對應之功能。另 一方面’設定模組21同樣可以藉由上述步驟2〇2a到步驟 202d的流程,以接收第二使用者之設定。由於第二使用者 之設定流程係與第一使用者相同,故在此不再贅迷。 201109996 在設定模組21設定完成後$本發明接著進行步驟 203 :偵測是否有由使用者所下達之觸控手勢被輸入於觸控 區域。 在此步驟203中,偵測模組22偵測是否有由第一使用 者所下達之觸控手勢被輸入於第一觸控區域11,或者是否 有由第二使用者所下達之觸控手勢被輸入於第二觸控區域 12。若有,則進一步進行步驟204 ;若無,則結束本發明 之步驟。 若在步驟203中,有由第一使用者所下達之觸控手勢 被輸入於第一觸控區域,或者有由第二使用者所下達之觸 控手勢被輸入於第二觸控區域,則接著進行步驟204 :判 斷所輸入的觸控手勢是否為使用者所定義之觸控手勢。 此時判斷模組23會分別判斷於第一觸控區域11或者 於第二觸控區域12内所輸入的觸控手勢是否為第一使用 者所定義之第一觸控手勢或第二使用者所定義之第二觸控 手勢。判斷方式可藉由所輸入的觸控手勢之座標進行判 斷,但本發明並不以此為限。 若在步驟204中,被輸入之觸控手勢是使用者所定義 之觸控手勢,則本發明接著進行步驟205 :執行觸控手勢 所對應之功能。 亦即,若在步驟204中判斷出所輸入的觸控手勢為第 一觸控手勢或第二觸控手勢,則進行步驟205,執行第一 觸控手勢或第二觸控手勢所對應之第一功能或第二功能。 此外,在本發明之一實施例中,本發明包括步驟205 : 定義對應預設功能之預設觸控手勢。 201109996 在步驟205中,本發明係預先設定一預設觸控手勢, 使其對應一預設功能。其中預設觸控手勢並不限定於需輸 入在第一觸控區域11、第二觸控區域12或是觸控螢幕10 之其餘區域内。另外,此設定可視為電子裝置1之初始設 定,但本發明並不以此為限。 因此,在步驟204中,若所輸入之觸控手勢並非第一 觸控手勢或第二觸控手勢,則本發明進一步進行步驟207 : 判斷觸控手勢是否為預設觸控手勢。 • 在此步驟207中,判斷模組23係進一步判斷所輸入的 觸控手勢是否為預設觸控手勢。若是,則進行步驟208 : 執行預設觸控手勢所對應之預設功能。 藉由上述的步驟,第一使用者與第二使用者即可自行 設定第一觸控手勢及第二觸控手勢,以分別執行遊戲或操 控電子裝置1,而使得遊戲方式或操作方法更加靈活。 此外,在本發明之一實施例中,在第一使用者或第二 使用者操作觸控螢幕10後,亦可選擇將第一觸控區域11 • 或第二觸控區域12關閉,使操作方法更加靈活。 此外,本發明亦提供一種於觸控螢幕定義觸控手勢之 方法。以下請參考圖4關於本發明之於觸控螢幕定義觸控 手勢之方法之步驟流程圖。 如圖4所示,本發明首先進行步驟401 :界定觸控螢幕 之一部分為供第一使用者定義觸控手勢之第一觸控區域。 如圖3A所示,本發明可藉由設定模組21,於觸控螢 幕10上之一部分界定出第一觸控區域11,作為供第一使 201109996 用者定義第-觸控手勢之區域。其中 邊界、範圍與位置可由第一使用者觸控區域11之 物品’在觸控登幕1〇之一部分劃=„筆等 U之邊界,藉此界定出第-觸控區域u。;:-觸控, 預先設定,本發明並不以此為限。 1由電子裝置1 其次進行步驟402:接收第一使用者 定義對應第-功能之第-觸控手二吏用者於第一觸控區域所 在步驟4〇2中,本發明可藉由設定模 觸控區域11所定義之第-觸控手勢:ΪΓ 觸控手勢係對應第一功能。 再肀第一Then, in step 202c, the user moves the selected touch gesture and the representative symbol of the function to the touch area. As shown in FIG. 3C, the present invention can receive the first user to move the representative symbol 3〇a of the selected first touch gesture and the representative symbol 40a of the first function to the first touch area in step 2〇2c. ^ Within. Then, step 202d is performed: setting the selected touch gesture to correspond to the selected function. After receiving the representative symbol 30a of the first touch gesture and the representative symbol 4〇a of the first function, the method proceeds to step 202d, and sets the selected first touch gesture as an execution location. Select the first function. In this way, the setting module 21 can set the first touch gesture to perform the function of “zooming in”. After repeating the above steps 202a to 202d, the setting module 21 can receive the first user-defined touch gesture and its corresponding function. On the other hand, the setting module 21 can also receive the setting of the second user by the above steps 2〇2a to 202d. Since the setting process of the second user is the same as that of the first user, it is no longer fascinating. 201109996 After the setting of the setting module 21 is completed, the present invention proceeds to step 203: detecting whether a touch gesture issued by the user is input to the touch area. In this step 203, the detecting module 22 detects whether a touch gesture issued by the first user is input to the first touch area 11, or whether there is a touch gesture issued by the second user. It is input to the second touch area 12. If so, step 204 is further performed; if not, the steps of the present invention are terminated. If, in step 203, a touch gesture issued by the first user is input to the first touch area, or a touch gesture issued by the second user is input to the second touch area, Then proceed to step 204: determining whether the input touch gesture is a touch gesture defined by the user. At this time, the determining module 23 determines whether the touch gesture input in the first touch area 11 or the second touch area 12 is the first touch gesture or the second user defined by the first user. The second touch gesture defined. The determination mode can be determined by the coordinates of the input touch gesture, but the invention is not limited thereto. If the input touch gesture is a touch gesture defined by the user in step 204, the present invention proceeds to step 205: performing a function corresponding to the touch gesture. That is, if it is determined in step 204 that the input touch gesture is the first touch gesture or the second touch gesture, then step 205 is performed to perform the first corresponding to the first touch gesture or the second touch gesture. Function or second function. In addition, in an embodiment of the present invention, the present invention includes the step 205: defining a preset touch gesture corresponding to the preset function. 201109996 In step 205, the present invention presets a preset touch gesture to correspond to a preset function. The preset touch gesture is not limited to being input in the first touch area 11 , the second touch area 12 or the remaining area of the touch screen 10 . In addition, this setting can be regarded as the initial setting of the electronic device 1, but the present invention is not limited thereto. Therefore, in step 204, if the input touch gesture is not the first touch gesture or the second touch gesture, the present invention further performs step 207: determining whether the touch gesture is a preset touch gesture. • In this step 207, the determining module 23 further determines whether the input touch gesture is a preset touch gesture. If yes, proceed to step 208: performing a preset function corresponding to the preset touch gesture. Through the above steps, the first user and the second user can set the first touch gesture and the second touch gesture to perform the game or manipulate the electronic device 1 respectively, thereby making the game mode or the operation method more flexible. . In addition, in an embodiment of the present invention, after the first user or the second user operates the touch screen 10, the first touch area 11 or the second touch area 12 may be selectively closed to operate. The method is more flexible. In addition, the present invention also provides a method for defining a touch gesture on a touch screen. Please refer to FIG. 4 for a flow chart of the steps of the method for defining a touch gesture on the touch screen of the present invention. As shown in FIG. 4, the present invention first performs step 401: defining a portion of the touch screen as a first touch area for the first user to define a touch gesture. As shown in FIG. 3A, the first touch area 11 is defined on a portion of the touch screen 10 by the setting module 21 as an area for the first user to define the first touch gesture. The boundary, the range and the position may be defined by the item 'of the first user touch area 11' on the boundary of the touch screen 1 „ pen, etc., thereby defining the first touch area u.;:- Touching, pre-setting, the invention is not limited thereto. 1 The electronic device 1 is followed by step 402: receiving the first user-defined corresponding first-function second-touch user in the first touch In the step 4〇2 of the area, the first touch gesture defined by the mode touch area 11 is set in the present invention: 触控 the touch gesture corresponds to the first function.
上所示,本發明可藉由於W 預手勢符號30及複數 義之功此之代表符號40,以供第一使用者選 者,並移動到第一觸控區域u。第一使用二 觸控手勢即被定義為第—觸控手勢,並且第—者= 取之功能即被定義為第一功能。如此,本 t 驟402,接收第一#用參於楚 j延订步 &吏者第—觸控區域11所定義之第- 觸控手勢及第-觸控手勢所對應之第—功能。 接著進行步驟術:界_控營幕之—部分 用者定義觸控手勢之第二觸控區域,且第二觸控區^= 吏 一觸控區域不同。 、乐 如圖3A所示,本發明可藉由設定模組21,於觸控 幕ίο上之-部分界定出第二觸控區域12,作為 用者定義觸控手勢之區域。其中,第二觸控區域12係 -觸控區域U不同,以使第—使用者及第二使用者可於 201109996 同的觸控區域分別操作觸控螢幕ίο,而不致產生衝突。此 外,第二觸控區域12之邊界、範圍與位置可由第二使用者 利用手指或是觸控筆等物品,在觸控螢幕10之一部分劃出 或拉出第一觸控區域11之邊界,藉此界定出第一觸控區域 11。或由電子裝置1預先設定,本發明並不以此為限。 最後進行步驟404:接收第二使用者於第二觸控區域所 定義對應第二功能之第二觸控手勢。 在步驟404中,本發明可藉由設定模組21接收第二使 • 用者於第二觸控區域12所定義之第二觸控手勢,其中第二 觸控手勢係對應第二功能。 如圖3B及圖3C所示,本發明可藉由於觸控螢幕10 上顯示出複數預先定義之觸控手勢之代表符號30及複數 預先定義之功能之代表符號40,以供第二使用者選取其中 之一者,並移動到第二觸控區域12。第二使用者所選取之 觸控手勢即被定義為第二觸控手勢,並且第二使用者所選 取之功能即被定義為第二功能。如此,本發明即可進行步 • 驟404,接收第二使用者於第二觸控區域12所定義之第二 觸控手勢及第二觸控手勢所對應之第二功能。 此處需注意的是,本發明之操作觸控螢幕之方法與於 觸控螢幕定義觸控手勢之方法並不以上述之步驟次序為 限,只要能達成本發明之目的,上述之步驟次序亦可加以 改變。 應注意的是,上述諸多實施例僅係為了便於說明而舉 例而已,本發明所主張之權利範圍自應以申請專利範圍所 述為準,而非僅限於上述實施例。 201109996 【圖式簡單說明】 圖1係本發明之電子裝置之架構圖。 圖2A-2B係本發明之操作觸控螢幕之方法之步驟流程圖。 圖3A-3C係本發明之操作觸控螢幕之方法之示意圖。 圖4係本發明之於觸控螢幕定義觸控手勢之方法之步驟流 程圖。 【主要元件符號說明】 電子裝置1 觸控螢幕10 第一觸控區域11 第二觸控區域12 設定模組21 設定介面211 偵測模組22 判斷模組23 執行模組24 觸控手勢之代表符號30 第一觸控手勢之代表符號30a 功能之代表符號40 第一功能之代表符號40aAs indicated above, the present invention can be utilized by the W-pre-gesture symbol 30 and the complex symbol 40 for the first user to select and move to the first touch area u. The first use two touch gesture is defined as the first touch gesture, and the first function is defined as the first function. Thus, in step 402, the first touch function corresponding to the first touch gesture and the first touch gesture defined by the second touch step & Then, the step-by-step operation is performed: the user controls the second touch area of the touch gesture, and the second touch area ^= 吏 a touch area is different. As shown in FIG. 3A, the present invention can define a second touch area 12 on a portion of the touch screen ίο by the setting module 21, and define a region of the touch gesture as a user. The second touch area 12 is different from the touch area U, so that the first user and the second user can respectively operate the touch screen ίο in the same touch area as 201109996 without causing conflicts. In addition, the boundary, the range and the position of the second touch area 12 can be used by the second user to draw or pull out the boundary of the first touch area 11 in one part of the touch screen 10 by using a finger or a stylus. Thereby, the first touch area 11 is defined. Or preset by the electronic device 1, the invention is not limited thereto. Finally, step 404 is performed: receiving a second touch gesture corresponding to the second function defined by the second user in the second touch area. In the step 404, the second touch gesture defined by the second user in the second touch area 12 is received by the setting module 21, wherein the second touch gesture corresponds to the second function. As shown in FIG. 3B and FIG. 3C , the present invention can display the representative symbol 30 of the plurality of predefined touch gestures and the representative symbols 40 of the plurality of predefined functions on the touch screen 10 for the second user to select. One of them moves to the second touch area 12. The touch gesture selected by the second user is defined as the second touch gesture, and the function selected by the second user is defined as the second function. In this way, the present invention can perform step 404 to receive the second function corresponding to the second touch gesture and the second touch gesture defined by the second user in the second touch region 12. It should be noted that the method for operating the touch screen of the present invention and the method for defining the touch gesture for the touch screen are not limited to the above-described step sequence, and the order of the steps is also provided as long as the purpose of the present invention can be achieved. Can be changed. It is to be noted that the various embodiments described above are intended to be illustrative only, and the scope of the invention is intended to be limited by the scope of the claims. 201109996 [Simplified description of the drawings] Fig. 1 is a structural diagram of an electronic device of the present invention. 2A-2B are flow diagrams showing the steps of a method of operating a touch screen of the present invention. 3A-3C are schematic views of a method of operating a touch screen of the present invention. 4 is a flow chart showing the steps of a method for defining a touch gesture on a touch screen of the present invention. [Main component symbol description] Electronic device 1 Touch screen 10 First touch area 11 Second touch area 12 Setting module 21 Setting interface 211 Detection module 22 Judging module 23 Execution of module 24 Touch gesture Symbol 30 representative symbol of the first touch gesture 30a representative symbol of the function 40 representative symbol 40a of the first function