TWI410828B - Method for performing instruction by detecting change in distance and portable device using the method - Google Patents

Method for performing instruction by detecting change in distance and portable device using the method Download PDF

Info

Publication number
TWI410828B
TWI410828B TW98135445A TW98135445A TWI410828B TW I410828 B TWI410828 B TW I410828B TW 98135445 A TW98135445 A TW 98135445A TW 98135445 A TW98135445 A TW 98135445A TW I410828 B TWI410828 B TW I410828B
Authority
TW
Taiwan
Prior art keywords
distance
change
moving
sensor
moving object
Prior art date
Application number
TW98135445A
Other languages
Chinese (zh)
Other versions
TW201115396A (en
Inventor
Chih Ming Chiang
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to TW98135445A priority Critical patent/TWI410828B/en
Publication of TW201115396A publication Critical patent/TW201115396A/en
Application granted granted Critical
Publication of TWI410828B publication Critical patent/TWI410828B/en

Links

Landscapes

  • Optical Radar Systems And Details Thereof (AREA)
  • Position Input By Displaying (AREA)

Abstract

A method for performing an instruction by detecting change in distance and a portable device using the method are disclosed. The portable device comprises a first proximity sensor and a second proximity sensor, wherein the first proximity sensor is used for detecting and acquiring a first change in distance of a first moving object in movement, the second proximity sensor is used for detecting and acquiring a second change in distance of a second moving object in movement. The method comprises the steps of: setting at least one instruction corresponding to the first change in distance and the second change in distance; detecting and acquiring the first change in distance of the first moving object in movement and the second change in distance of the second moving object in movement; and according to the first change in distance and the second change in distance, performing at least one instruction corresponding to the first change in distance and the second change in distance.

Description

偵測距離之變化以執行指令之方法及應用此方法之可攜式電子裝置Method for detecting change in distance to execute instructions and portable electronic device using the same

本發明係關於一種偵測距離之變化以執行指令之方法及應用此方法之可攜式電子裝置;特別是一種偵測並取得使用者之手指移動時形成之距離變化以執行指令之方法及應用此方法之可攜式電子裝置。The present invention relates to a method for detecting a change in distance to execute an instruction and a portable electronic device using the same; in particular, a method and application for detecting and obtaining a change in distance formed by a user's finger movement to execute an instruction The portable electronic device of this method.

隨著技術不斷進步及使用者之需求下,電子產品一直朝向體積越來越輕薄短小的方向前進,尤其是可攜式電子裝置,例如手機、智慧型手機(smart phone)或個人數位助理(personal digital assistant,PDA)等,更是如此。然而其螢幕之尺寸卻須維持一定之尺寸,甚至是越大越好,以方便使用者在資訊爆炸之今日,能以適當之螢幕尺寸順利瀏覽畫面,而不因螢幕尺寸過小造成眼睛的負擔。With the continuous advancement of technology and the needs of users, electronic products have been moving toward a lighter, thinner and shorter direction, especially portable electronic devices such as mobile phones, smart phones or personal digital assistants (personal Digital assistant, PDA), etc., even more so. However, the size of the screen must be maintained at a certain size, even larger, the better, so that users can smoothly browse the screen with the appropriate screen size in the current information explosion, without the eye strain caused by the small screen size.

現今之可攜式電子裝置通常具有觸控螢幕,方便使用者直接在螢幕上做點選或執行可攜式電子裝置內之程式等等,但遇到一些特殊使用情境時(譬如玩遊戲或是撥打電話時),仍需用到可攜式電子裝置之實體按鍵(譬如2向、4向方向鍵或數字鍵)以執行指令。在先前技術中,為配合電子產品輕薄短小的需求,實體按鍵亦需設計為較小尺寸。此時,將因實體按鍵較小而產生使用時之不方便。此外,當在玩遊戲時,因需長時間快速猛力的按壓實體按鍵(譬如2向或4向方向鍵),極易造成實體按鍵之損壞。Today's portable electronic devices usually have a touch screen, which allows users to directly click on the screen or execute programs in the portable electronic device, etc., but in some special use situations (such as playing games or When making a call, you still need to use the physical buttons of the portable electronic device (such as 2-way, 4-way direction keys or numeric keys) to execute the command. In the prior art, physical buttons also need to be designed to be smaller in size in order to meet the light and short requirements of electronic products. At this time, it is inconvenient to use due to the small physical button. In addition, when playing a game, it is easy to cause physical button damage due to the need to press a physical button (such as a 2-way or 4-way direction button) for a long time.

因此,有必要提供一種新的執行指令之方法及應用此方法之可攜式電子裝置,以改善上述所存在的問題。Therefore, it is necessary to provide a new method of executing instructions and a portable electronic device using the same to improve the above problems.

為改善先前技術所存在的問題,本發明提供一種偵測距離之變化以執行指令之方法及應用此方法之可攜式電子裝置。In order to improve the problems of the prior art, the present invention provides a method for detecting a change in distance to execute an instruction and a portable electronic device using the same.

本發明首先提供一種偵測距離之變化以執行指令之方法,用於可攜式電子裝置。可攜式電子裝置包括第一距離感測器及第二距離感測器,第一距離感測器用以偵測並取得第一移動物件在移動時形成之第一距離變化,第二距離感測器用以偵測並取得第二移動物件在移動時形成之第二距離變化,第一距離變化包括第一移動距離及第一移動方向,第二距離變化包括第二移動距離及第二移動方向。偵測距離之變化以執行指令之方法包括下列步驟:設定當第一移動距離及第二移動距離實質上相同且第一移動方向及第二移動方向係分別遠離第一距離感測器及第二距離感測器時對應至向上指令;偵測並取得第一移動物件在移動時形成之第一距離變化及第二移動物件在移動時形成之第二距離變化;以及執行第一距離變化及第二距離變化所對應之向上指令。The present invention first provides a method of detecting a change in distance to execute an instruction for a portable electronic device. The portable electronic device includes a first distance sensor and a second distance sensor, wherein the first distance sensor is configured to detect and obtain a first distance change formed by the first moving object when moving, and the second distance sensing The device is configured to detect and obtain a second distance change formed by the second moving object when moving, the first distance change includes a first moving distance and a first moving direction, and the second distance change includes a second moving distance and a second moving direction. The method for detecting a change in distance to execute an instruction includes the steps of: setting a first moving distance and a second moving distance to be substantially the same and the first moving direction and the second moving direction are respectively away from the first distance sensor and the second The distance sensor corresponds to an upward command; detecting and obtaining a first distance change formed by the first moving object when moving and a second distance change formed by the second moving object when moving; and performing the first distance change and the The upward command corresponding to the change of the distance.

在本發明之一實施例中,本發明提供一種偵測距離之變化以執行指令之方法,用於可攜式電子裝置。可攜式電子裝置包括第一距離感測器及第二距離感測器,第一距離感測器用以偵測並取得第一移動物件在移動時形成之第一距離變化,第二距離感測器用以偵測並取得第二移動物件在移動時形成之第二距離變化,第一距離變化包括第一移動距離及第一移動方向,第二距離變化包括第二移動距離 及第二移動方向。偵測距離之變化以執行指令之方法包括下列步驟:設定當第一移動距離及第二移動距離實質上相同且第一移動方向及第二移動方向係分別接近第一距離感測器及第二距離感測器時對應至一向下指令;偵測並取得第一移動物件在移動時形成之第一距離變化及第二移動物件在移動時形成之第二距離變化;以及執行第一距離變化及第二距離變化所對應之向下指令。In one embodiment of the invention, the present invention provides a method of detecting a change in distance to execute an instruction for a portable electronic device. The portable electronic device includes a first distance sensor and a second distance sensor, wherein the first distance sensor is configured to detect and obtain a first distance change formed by the first moving object when moving, and the second distance sensing The device is configured to detect and obtain a second distance change formed by the second moving object when moving, the first distance change includes a first moving distance and a first moving direction, and the second distance change includes a second moving distance And the second direction of movement. The method for detecting a change in distance to execute an instruction includes the steps of: setting a first moving distance and a second moving distance to be substantially the same and the first moving direction and the second moving direction are respectively close to the first distance sensor and the second The distance sensor corresponds to a downward command; detecting and obtaining a first distance change formed by the first moving object when moving and a second distance change formed by the second moving object when moving; and performing the first distance change and The downward command corresponding to the second distance change.

在本發明之一實施例中,本發明首先提供一種偵測距離之變化以執行指令之方法,用於可攜式電子裝置。可攜式電子裝置包括第一距離感測器及第二距離感測器,第一距離感測器用以偵測並取得第一移動物件在移動時形成之第一距離變化,第二距離感測器用以偵測並取得第二移動物件在移動時形成之第二距離變化,第一距離變化包括第一移動距離及第一移動方向,第二距離變化包括第二移動距離及第二移動方向。偵測距離之變化以執行指令之方法包括下列步驟:設定當第一移動距離係實質上為0且第二移動方向係反覆接近及遠離第二距離感測器時對應至向右指令;偵測並取得第一移動物件在移動時形成之第一距離變化及第二移動物件在移動時形成之第二距離變化;以及執行第一距離變化及第二距離變化所對應之向右指令。In one embodiment of the present invention, the present invention first provides a method for detecting a change in distance to execute an instruction for a portable electronic device. The portable electronic device includes a first distance sensor and a second distance sensor, wherein the first distance sensor is configured to detect and obtain a first distance change formed by the first moving object when moving, and the second distance sensing The device is configured to detect and obtain a second distance change formed by the second moving object when moving, the first distance change includes a first moving distance and a first moving direction, and the second distance change includes a second moving distance and a second moving direction. The method for detecting a change in distance to execute an instruction includes the steps of: setting a command to the right when the first moving distance is substantially 0 and the second moving direction is approaching and moving away from the second distance sensor; detecting And obtaining a first distance change formed by the first moving object when moving and a second distance change formed by the second moving object when moving; and performing a rightward command corresponding to the first distance change and the second distance change.

在本發明之一實施例中,本發明首先提供一種偵測距離之變化以執行指令之方法,用於可攜式電子裝置。可攜式電子裝置包括第一距離感測器及第二距離感測器,第一距離感測器用以偵測並取得第一移動物件在移動時形成之第一距離變化,第二距離感測器用以偵測並取得第二移動 物件在移動時形成之第二距離變化,第一距離變化包括第一移動距離及第一移動方向,第二距離變化包括第二移動距離及第二移動方向。偵測距離之變化以執行指令之方法包括下列步驟:設定當第二移動距離係實質上為0且第一移動方向係反覆接近及遠離第一距離感測器時對應至向左指令;偵測並取得第一移動物件在移動時形成之第一距離變化及第二移動物件在移動時形成之第二距離變化;以及執行第一距離變化及第二距離變化所對應之向左指令。In one embodiment of the present invention, the present invention first provides a method for detecting a change in distance to execute an instruction for a portable electronic device. The portable electronic device includes a first distance sensor and a second distance sensor, wherein the first distance sensor is configured to detect and obtain a first distance change formed by the first moving object when moving, and the second distance sensing Used to detect and obtain the second move The second distance change formed by the object when moving, the first distance change includes a first moving distance and a first moving direction, and the second distance change includes a second moving distance and a second moving direction. The method for detecting a change in distance to execute an instruction includes the steps of: setting a command to the left when the second moving distance is substantially zero and the first moving direction is close to and away from the first distance sensor; And obtaining a first distance change formed by the first moving object when moving and a second distance change formed by the second moving object when moving; and performing a leftward command corresponding to the first distance change and the second distance change.

為讓本發明之上述和其他目的、特徵和優點能更明顯易懂,下文特舉出較佳實施例,並配合所附圖式,作詳細說明如下。The above and other objects, features, and advantages of the present invention will become more apparent from the description of the appended claims.

以下請先參考圖1關於本發明之可攜式電子裝置之一實施例之架構示意圖。Please refer to FIG. 1 for a schematic structural diagram of an embodiment of a portable electronic device according to the present invention.

如圖1所示,本發明之可攜式電子裝置1包括第一距離感測器121、第二距離感測器122、儲存裝置13、設定模組14、輸入介面裝置15及控制模組11。其中第一距離感測器121係用以偵測並取得第一移動物件(例如使用者之手指)在移動時形成之第一距離變化;第二距離感測器122係用以偵測並取得第二移動物件(例如使用者之另一手指)在移動時形成之第二距離變化。其中,第一距離變化包括第一移動距離及第一移動方向,第二距離變化包括第二移動距離及第二移動方向。As shown in FIG. 1 , the portable electronic device 1 of the present invention includes a first distance sensor 121 , a second distance sensor 122 , a storage device 13 , a setting module 14 , an input interface device 15 , and a control module 11 . . The first distance sensor 121 is configured to detect and obtain a first distance change formed by the first moving object (such as a user's finger) when moving; the second distance sensor 122 is configured to detect and obtain The second distance moved by the second moving object (eg, the other finger of the user) as it moves. The first distance change includes a first moving distance and a first moving direction, and the second distance change includes a second moving distance and a second moving direction.

在本發明之一實施例中,第一距離感測器121及第二距離感測器122為近距離感測器(proximity sensor),例如光學式之近距離感測器,但本發明不以此為限。舉例來說,近距離感測器亦可為超聲波式之近距離感測器。光學式之近距離感測器可以發射光源,當光源被移動物件反射時,光學式之近距離感測器可偵測出移動物件之移動距離及移動方向。由於近距離感測器已經在相關技術領域中被廣泛使用,且並非本發明所要改進之重點所在,故在此不再贅述其詳細之運作方式。In an embodiment of the present invention, the first distance sensor 121 and the second distance sensor 122 are proximity sensors, such as optical proximity sensors, but the present invention does not This is limited. For example, the proximity sensor can also be an ultrasonic proximity sensor. The optical proximity sensor can emit a light source, and when the light source is reflected by the moving object, the optical proximity sensor can detect the moving distance and the moving direction of the moving object. Since the proximity sensor has been widely used in the related art, and is not the focus of the improvement of the present invention, the detailed operation mode will not be described herein.

在本發明之一實施例中,第一移動物件及第二移動物件為使用者之手指,但本發明不以此為限,任何可反射光線之物品皆可為本發明之第一移動物件及第二移動物件。In an embodiment of the present invention, the first moving object and the second moving object are the fingers of the user, but the invention is not limited thereto, and any object capable of reflecting light can be the first moving object of the present invention and The second moving object.

儲存裝置13包括資料庫131。設定模組14係與儲存裝置13電性連接,設定模組14用以設定第一距離變化及第二距離變化所對應之至少一指令並將至少一指令儲存至資料庫131。The storage device 13 includes a database 131. The setting module 14 is electrically connected to the storage device 13. The setting module 14 is configured to set at least one instruction corresponding to the first distance change and the second distance change and store the at least one instruction in the database 131.

控制模組11係電性連接第一距離感測器121、第二距離感測器122、儲存裝置13、設定模組14及輸入介面裝置15。控制模組11用以控制第一距離感測器121、第二距離感測器122、儲存裝置13、設定模組14及輸入介面裝置15之運作。當第一距離感測器121偵測並取得第一距離變化及第二距離感測器122偵測並取得第二距離變化時,控制模組11係根據資料庫131以執行第一距離變化及第二距離變化所對應之至少一指令。The control module 11 is electrically connected to the first distance sensor 121, the second distance sensor 122, the storage device 13, the setting module 14, and the input interface device 15. The control module 11 is configured to control the operations of the first distance sensor 121, the second distance sensor 122, the storage device 13, the setting module 14, and the input interface device 15. When the first distance sensor 121 detects and obtains the first distance change and the second distance sensor 122 detects and obtains the second distance change, the control module 11 performs the first distance change according to the database 131 and At least one instruction corresponding to the second distance change.

輸入介面裝置15係與控制模組11電性連接。輸入介面裝置15可於一特定模式下操作,設定模組14可用以設定當輸入介面裝置15於特定模式下操作時,第一距離變化及第二距離變化所對應之至少一指令並將該至少一指令儲存至資料庫131。當輸入介面裝置15於特定模式下操作時,控制模組11係根據資料庫131以執行輸入介面裝置15於特定模式下操作時,第一距離變化及第二距離變化所對應之至少一指令。如圖2所示,在本發明之一實施例中,可攜式電子裝置1係個人數位助理,而輸入介面裝置15係觸控螢幕,但本發明不以此為限。舉例來說,可攜式電子裝置1亦可為行動電話或遊戲機。須注意的是,在本實施例中,第一距離感測器121及第二距離感測器122係與輸入介面裝置15設置在同一面上,且第一距離感測器121及第二距離感測器122之偵測方向係實質上垂直輸入介面裝置15,但本發明之第一距離感測器121及第二距離感測器122之設置位置及偵測方向並不以此為限。The input interface device 15 is electrically connected to the control module 11. The input interface device 15 can be operated in a specific mode, and the setting module 14 can be used to set at least one instruction corresponding to the first distance change and the second distance change when the input interface device 15 operates in the specific mode and the at least one instruction An instruction is stored in the database 131. When the input interface device 15 is operated in a specific mode, the control module 11 is configured to perform at least one instruction corresponding to the first distance change and the second distance change when the input interface device 15 is operated in the specific mode according to the database 131. As shown in FIG. 2, in one embodiment of the present invention, the portable electronic device 1 is a personal digital assistant, and the input interface device 15 is a touch screen, but the invention is not limited thereto. For example, the portable electronic device 1 can also be a mobile phone or a game machine. It should be noted that, in this embodiment, the first distance sensor 121 and the second distance sensor 122 are disposed on the same surface as the input interface device 15, and the first distance sensor 121 and the second distance are The detection direction of the sensor 122 is substantially perpendicular to the input interface device 15, but the set position and the detection direction of the first distance sensor 121 and the second distance sensor 122 of the present invention are not limited thereto.

如圖3所示,在本發明之另一實施例之可攜式電子裝置1a中,第一距離感測器121a及第二距離感測器122a係與輸入介面裝置15a設置在同一面上,但第一距離感測器121a及第二距離感測器122a之偵測方向係實質上平行輸入介面裝置15a。As shown in FIG. 3, in the portable electronic device 1a of another embodiment of the present invention, the first distance sensor 121a and the second distance sensor 122a are disposed on the same surface as the input interface device 15a. However, the detection directions of the first distance sensor 121a and the second distance sensor 122a are substantially parallel to the input interface device 15a.

以下即以圖1所示的本發明之可攜式電子裝置1為例,詳細說明本發明之偵測距離之變化以執行指令之方法之各個步驟,但須注意的是,只要能達成本發明之目的,本發明之方法並不以應用在圖1所示的可攜式電子裝置1為限。In the following, the portable electronic device 1 of the present invention shown in FIG. 1 is taken as an example to describe in detail the steps of the method for detecting the change of the distance of the present invention to execute the command, but it should be noted that the present invention can be achieved. For the purpose, the method of the present invention is not limited to the portable electronic device 1 shown in FIG.

請一併參考圖1、圖2及圖4至圖9關於本發明之偵測距離之變化以執行指令之方法之一實施例。Please refer to FIG. 1, FIG. 2 and FIG. 4 to FIG. 9 for an embodiment of the method for detecting a change in the detection distance of the present invention to execute an instruction.

如圖4所示,本發明首先進行步驟S71,設定第一距離變化及第二距離變化所對應之至少一指令。As shown in FIG. 4, the present invention first performs step S71 to set at least one instruction corresponding to the first distance change and the second distance change.

如圖5所示,步驟S71更包括步驟S711至步驟S718。以下即先說明步驟S711至步驟S718。As shown in FIG. 5, step S71 further includes steps S711 to S718. Steps S711 to S718 will be described below.

步驟S711:設定當第一移動距離及第二移動距離實質上相同且第一移動方向及第二移動方向係分別遠離第一距離感測器及第二距離感測器時對應至向上指令。Step S711: Set the corresponding to the upward command when the first moving distance and the second moving distance are substantially the same and the first moving direction and the second moving direction are respectively away from the first distance sensor and the second distance sensor.

如圖6所示,在本發明之一實施例中,本發明可藉由設定模組14設定當第一距離感測器121及第二距離感測器122分別偵測並取得到第一移動物件81之第一移動距離及第二移動物件82之第二移動距離實質上相同,且第一移動物件81之第一移動方向及第二移動物件82第二移動方向係分別遠離第一距離感測器121及第二距離感測器122時係對應至向上指令。舉例來說,輸入介面裝置15中係顯示九宮格功能區域151,向上指令係指反白區1511由九宮格功能區域151之中央區域向上移動一格,但本發明不以此為限。As shown in FIG. 6 , in an embodiment of the present invention, the first module 141 and the second distance sensor 122 are respectively configured to detect and obtain the first movement by the setting module 14 . The first moving distance of the object 81 and the second moving distance of the second moving object 82 are substantially the same, and the first moving direction of the first moving object 81 and the second moving direction of the second moving object 82 are respectively away from the first distance sense The detector 121 and the second distance sensor 122 correspond to an upward command. For example, the input interface device 15 displays a nine-square function area 151, and the upward command means that the anti-white area 1511 is moved upward by a central area of the nine-square function area 151, but the invention is not limited thereto.

在本發明之一實施例中,第一移動物件81及第二移動物件82係分別為使用者之左手手指及右手手指,但本發明不以此為限。In one embodiment of the present invention, the first moving object 81 and the second moving object 82 are respectively a left-hand finger and a right-hand finger of the user, but the invention is not limited thereto.

步驟S712:設定當第一移動距離及第二移動距離實質上相同且第一移動方向及第二移動方向係分別接近第一距離感測器及第二距離感測器時對應至向下指令。Step S712: Set the corresponding to the downward command when the first moving distance and the second moving distance are substantially the same and the first moving direction and the second moving direction are respectively close to the first distance sensor and the second distance sensor.

如圖7所示,舉例來說,輸入介面裝置15中係顯示九宮格功能區域151,向下指令係指反白區1511由九宮格功能區域151之中央區域向下移動一格,但本發明不以此為限。As shown in FIG. 7, for example, the input interface device 15 displays a nine-grid function area 151, and the downward command means that the anti-white area 1511 is moved downward by a central area of the nine-square function area 151, but the present invention does not This is limited.

步驟S713:設定當第一移動距離係實質上為0且第二移動方向係反覆接近及遠離第二距離感測器時對應至向右指令。Step S713: Set to correspond to the rightward command when the first moving distance is substantially 0 and the second moving direction is close to and away from the second distance sensor.

如圖8所示,當第一移動物件81之第一移動距離係實質上為0,且第二移動物件82之第二移動方向係反覆接近及遠離第二距離感測器122時係對應至向右指令。舉例來說,輸入介面裝置15中係顯示九宮格功能區域151,向右指令係指反白區1511由九宮格功能區域151之中央區域向右移動一格,但本發明不以此為限。As shown in FIG. 8, when the first moving distance of the first moving object 81 is substantially 0, and the second moving direction of the second moving object 82 is repeatedly approaching and away from the second distance sensor 122, the corresponding Command to the right. For example, the input interface device 15 displays a nine-grid function area 151, and the right-point command means that the anti-white area 1511 is moved to the right by a central area of the nine-square grid function area 151, but the invention is not limited thereto.

步驟S714:設定當第二移動距離係實質上為0且第一移動方向係反覆接近及遠離第一距離感測器時對應至向左指令。Step S714: Set to correspond to the leftward command when the second moving distance is substantially 0 and the first moving direction is close to and away from the first distance sensor.

如圖9所示,當第二移動物件82之第二移動距離係實質上為0,且第一移動物件81之第一移動方向係反覆接近及遠離第一距離感測器121時係對應至向左指令。舉例來說,輸入介面裝置15中係顯示九宮格功能區域151,向左指令係指反白區1511由九宮格功能區域151之中央區域向左移動一格,但本發明不以此為限。As shown in FIG. 9, when the second moving distance of the second moving object 82 is substantially 0, and the first moving direction of the first moving object 81 is repeatedly approaching and away from the first distance sensor 121, the corresponding Command to the left. For example, the input interface device 15 displays a nine-grid function area 151, and the left-hand command means that the anti-white area 1511 is shifted to the left by a central area of the nine-square grid function area 151, but the invention is not limited thereto.

惟須注意的是,上述之第一距離變化或第二距離變化所對應之指令並不以上述所提為限。舉例來說,本發明之向上、向下、向左及向右指令亦可使用在使用者在操作可攜式電子裝置1之遊戲中。It should be noted that the above-mentioned first distance change or the second distance change instruction is not limited to the above. For example, the up, down, left, and right commands of the present invention can also be used in a game in which the user operates the portable electronic device 1.

步驟S715:設定當輸入介面裝置於特定模式下操作時,第一移動距離係實質上為0且第二移動方向係遠離第二距離感測器時對應至放大指令。Step S715: setting when the input interface device is operated in the specific mode, the first moving distance is substantially 0 and the second moving direction is away from the second distance sensor corresponding to the amplification instruction.

步驟S716:設定當輸入介面裝置於特定模式下操作時,第一移動距離係實質上為0且第二移動方向係遠離第二距離感測器時對應至縮小指令。Step S716: setting when the input interface device is operated in the specific mode, the first moving distance is substantially 0 and the second moving direction is away from the second distance sensor corresponding to the reduction instruction.

在本發明之一實施例中,若配合輸入介面裝置15可於一特定模式下操作時,則設定模組14設定當輸入介面裝置15於特定模式下操作時,第一距離變化及第二距離變化所對應之至少一指令。In an embodiment of the present invention, when the input interface device 15 is operable in a specific mode, the setting module 14 sets the first distance change and the second distance when the input interface device 15 operates in a specific mode. At least one instruction corresponding to the change.

在本發明之一實施例中,當特定模式係使用者在輸入介面裝置15上進行至少一物件之選取或移動時,則設定模組14設定第一距離變化及第二距離變化對應至放大指令或縮小指令,可控制至少一物件在輸入介面裝置15中之放大或縮小。在本發明之一實施例中,當第一移動距離係實質上為0,且第二移動方向係遠離第二距離感測器122時對應至放大指令;當第一移動距離係實質上為0,且第二移動方向係遠離第二距離感測器122時對應至縮小指令,但本發明不以此為限。In an embodiment of the present invention, when the user of the specific mode performs selection or movement of at least one object on the input interface device 15, the setting module 14 sets the first distance change and the second distance change corresponding to the enlargement instruction. Or zooming out the instructions to control the enlargement or reduction of at least one object in the input interface device 15. In an embodiment of the invention, when the first moving distance is substantially 0, and the second moving direction is away from the second distance sensor 122, it corresponds to an amplification instruction; when the first moving distance is substantially 0 And the second moving direction is away from the second distance sensor 122 corresponding to the reduction instruction, but the invention is not limited thereto.

步驟S717:設定當輸入介面裝置於特定模式下操作時,第一移動距離係實質上為0且第二移動方向係遠離第二距離感測器122時係對應至向上捲動畫面指令。Step S717: setting when the input interface device is operated in the specific mode, the first moving distance is substantially 0 and the second moving direction is away from the second distance sensor 122 corresponds to the upward scrolling animation surface command.

步驟S718:設定當輸入介面裝置於特定模式下操作時,第一移動距離係實質上為0且第二移動方向係遠離第二距離感測器122時係對應至向下捲動畫面指令。Step S718: setting when the input interface device is operated in the specific mode, the first moving distance is substantially 0 and the second moving direction is away from the second distance sensor 122 corresponds to the downward scrolling animation surface command.

在本發明之一實施例中,當特定模式係瀏覽畫面模式時,則設定模組14設定當輸入介面裝置15於特定模式下操作時,第一距離變化及第二距離變化對應至向上捲動畫面指令或向下捲動畫面指令。在本發明之一實施例中,當第一移動距離係實質上為0,且第二移動方向係遠離第二距離感測器122時對應至向上捲動畫面指令;當第一移動距離係實質上為0,且第二移動方向係遠離第二距離感測器122時對應至向下捲動畫面指令。惟須注意的是,特定模式不以上述所提為限。In an embodiment of the present invention, when the specific mode is the browsing mode, the setting module 14 sets the first distance change and the second distance change corresponding to the upward scrolling animation when the input interface device 15 operates in the specific mode. Face instructions or scroll down the animation face instructions. In an embodiment of the present invention, when the first moving distance is substantially 0, and the second moving direction is away from the second distance sensor 122, it corresponds to an upward scrolling animation surface instruction; when the first moving distance is substantially The upper is 0, and the second moving direction is away from the second distance sensor 122 corresponding to the downward scrolling animation surface command. It should be noted that the specific mode is not limited to the above.

另需注意的是,本發明之步驟S711至S718之順序係可變動,而不以圖5所示的順序為限。It should also be noted that the order of steps S711 to S718 of the present invention is variable, and is not limited to the order shown in FIG.

接下來進行步驟S72,偵測並取得第一移動物件在移動時形成之第一距離變化及第二移動物件在移動時形成之第二距離變化。Next, in step S72, the first distance change formed by the first moving object when moving and the second distance change formed by the second moving object when moving are detected and obtained.

在本發明之一實施例中,第一距離感測器121及第二距離感測器122係分別偵測並取得第一移動物件81在移動時形成之第一距離變化及第二移動物件82在移動時形成之第二距離變化。In one embodiment of the present invention, the first distance sensor 121 and the second distance sensor 122 respectively detect and obtain a first distance change formed by the first moving object 81 while moving and the second moving object 82. The second distance formed during the movement changes.

接著進行步驟S73,判斷第一移動距離及第二移動距離是否皆在距離門檻值內。Next, proceeding to step S73, it is determined whether both the first moving distance and the second moving distance are within the distance threshold.

本發明之距離門檻值係用以判斷第一移動物件81或第二移動物件82之第一移動距離或第二移動距離係一有意義之移動,而非第一移動物件81或第二移動物件82之不經意從第一距離感測器121或第二距離感測器122上方經過,若第一移動距離或第二移動距離大於距離門檻值,則判斷為 無意義之移動。在本發明之一實施例中,距離門檻值係實質上介於0.5公分至2.5公分之間,但本發明不以此為限。在本發明之一較佳實施例中,距離門檻值係實質上為2公分。The distance threshold value of the present invention is used to determine that the first moving distance or the second moving distance of the first moving object 81 or the second moving object 82 is a meaningful movement, instead of the first moving object 81 or the second moving object 82. Inadvertently passing over the first distance sensor 121 or the second distance sensor 122, if the first moving distance or the second moving distance is greater than the distance threshold, it is determined as Meaningless movement. In an embodiment of the invention, the distance threshold is substantially between 0.5 cm and 2.5 cm, but the invention is not limited thereto. In a preferred embodiment of the invention, the distance threshold is substantially 2 cm.

若第一移動距離及第二移動距離皆在距離門檻值內,則進行步驟S74,判斷輸入介面裝置是否於特定模式下操作。If both the first moving distance and the second moving distance are within the distance threshold, step S74 is performed to determine whether the input interface device operates in a specific mode.

若輸入介面裝置15不在特定模式下操作,則進行步驟S75,執行第一距離變化及第二距離變化所對應之至少一指令。If the input interface device 15 is not operating in the specific mode, then step S75 is performed to execute at least one instruction corresponding to the first distance change and the second distance change.

在本發明之一實施例中,第一距離變化及第二距離變化所對應之至少一指令可為上述所提之向上、向下、向右及向左指令,故在此不再贅述。In an embodiment of the present invention, at least one instruction corresponding to the first distance change and the second distance change may be the above-mentioned upward, downward, rightward, and leftward instructions, and thus is not described herein again.

在步驟S74中,若輸入介面裝置15係在特定模式下操作,則進行步驟S76,執行輸入介面裝置於特定模式下操作時,第一距離變化及第二距離變化所對應之至少一指令。在本發明之一實施例中,第一距離變化及第二距離變化所對應之至少一指令可為上述所提之放大、縮小指令、向上捲動畫面及向下捲動畫面指令,故在此不再贅述。In step S74, if the input interface device 15 is operated in the specific mode, step S76 is executed to execute at least one instruction corresponding to the first distance change and the second distance change when the input interface device operates in the specific mode. In an embodiment of the present invention, the at least one instruction corresponding to the first distance change and the second distance change may be the above-mentioned zoom-in and zoom-out instructions, the scroll-up animation face, and the scroll-down animation face command, so No longer.

綜上所陳,本發明無論就目的、手段及功效,在在均顯示其迥異於習知技術之特徵,懇請 貴審查委員明察,早日賜准專利,俾嘉惠社會,實感德便。惟應注意的是,上述諸多實施例僅係為了便於說明而舉例而已,本發明所主張之權利範圍自應以申請專利範圍所述為準,而非僅限於上述實施例。To sum up, the present invention, regardless of its purpose, means and efficacy, shows its distinctive features of the prior art. You are requested to review the examination and express the patent as soon as possible. It should be noted that the various embodiments described above are merely illustrative for ease of explanation, and the scope of the invention is intended to be limited by the scope of the claims.

1、1a‧‧‧可攜式電子裝置1, 1a‧‧‧ portable electronic device

11‧‧‧控制模組11‧‧‧Control module

121、121a‧‧‧第一距離感測器121, 121a‧‧‧first distance sensor

122、122a‧‧‧第二距離感測器122, 122a‧‧‧Second distance sensor

13‧‧‧儲存裝置13‧‧‧Storage device

131‧‧‧資料庫131‧‧‧Database

14‧‧‧設定模組14‧‧‧Setting module

15、15a‧‧‧輸入介面裝置15, 15a‧‧‧Input interface device

151‧‧‧九宮格功能區域151‧‧‧9-square function area

1511‧‧‧反白區1511‧‧‧Anti-white area

81‧‧‧第一移動物件81‧‧‧First moving object

82‧‧‧第二移動物件82‧‧‧Second moving object

圖1係關於本發明之可攜式電子裝置之一實施例之架構示意圖。1 is a schematic structural diagram of an embodiment of a portable electronic device according to the present invention.

圖2係關於本發明之可攜式電子裝置之一實施例之示意圖。2 is a schematic diagram of an embodiment of a portable electronic device in accordance with the present invention.

圖3係關於本發明之可攜式電子裝置之另一實施例之示意圖。3 is a schematic diagram of another embodiment of a portable electronic device in accordance with the present invention.

圖4係關於本發明之偵測距離之變化以執行指令之方法之一實施例之步驟流程圖。4 is a flow chart showing the steps of an embodiment of a method for detecting a change in the detected distance of the present invention to execute an instruction.

圖5係關於本發明之偵測距離之變化以執行指令之方法之一實施例之步驟流程圖。Figure 5 is a flow diagram of the steps of an embodiment of a method for detecting a change in the detected distance of the present invention to execute an instruction.

圖6係關於本發明之偵測距離之變化以執行指令之方法之一實施例之操作示意圖。Figure 6 is a schematic illustration of the operation of one embodiment of a method for detecting a change in the detected distance of the present invention.

圖7係關於本發明之偵測距離之變化以執行指令之方法之一實施例之操作示意圖。Figure 7 is a schematic illustration of the operation of one embodiment of a method for detecting a change in the detected distance of the present invention.

圖8係關於本發明之偵測距離之變化以執行指令之方法之一實施例之操作示意圖。Figure 8 is a schematic illustration of the operation of one embodiment of a method for detecting a change in the detected distance of the present invention.

圖9係關於本發明之偵測距離之變化以執行指令之方法之一實施例之操作示意圖。Figure 9 is a schematic illustration of the operation of one embodiment of a method for detecting a change in the detected distance of the present invention.

1...可攜式電子裝置1. . . Portable electronic device

121...第一距離感測器121. . . First distance sensor

122...第二距離感測器122. . . Second distance sensor

15...輸入介面裝置15. . . Input interface device

Claims (4)

一種偵測距離之變化以執行指令之方法,用於一可攜式電子裝置,該可攜式電子裝置包括一第一距離感測器及一第二距離感測器,該第一距離感測器用以偵測並取得一第一移動物件在移動時形成之一第一距離變化,該第二距離感測器用以偵測並取得一第二移動物件在移動時形成之一第二距離變化,該第一距離變化包括一第一移動距離及一第一移動方向,該第二距離變化包括一第二移動距離及一第二移動方向,該方法包括下列步驟:設定當該第一移動距離及該第二移動距離實質上相同且該第一移動方向及該第二移動方向係分別遠離該第一距離感測器及該第二距離感測器時對應至一向上指令;偵測並取得該第一移動物件在移動時形成之該第一距離變化及該第二移動物件在移動時形成之該第二距離變化;以及根據該第一距離變化及該第二距離變化,以執行該第一距離變化及該第二距離變化所對應之該向上指令。 A method for detecting a change in distance to execute an instruction for a portable electronic device, the portable electronic device comprising a first distance sensor and a second distance sensor, the first distance sensing The first distance object is configured to detect and obtain a first distance change when the first moving object is moved, and the second distance sensor is configured to detect and obtain a second distance change when the second moving object moves. The first distance change includes a first movement distance and a first movement direction, and the second distance change includes a second movement distance and a second movement direction, the method comprising the steps of: setting the first movement distance and The second moving distance is substantially the same, and the first moving direction and the second moving direction are respectively away from the first distance sensor and the second distance sensor respectively corresponding to an upward command; detecting and obtaining the The first distance change formed by the first moving object when moving and the second distance change formed by the second moving object when moving; and according to the first distance change and the second distance change Change the first distance and the second distance corresponding to the change of the direction instruction. 一種偵測距離之變化以執行指令之方法,用於一可攜式電子裝置,該可攜式電子裝置包括一第一距離感測器及一第二距離感測器,該第一距離感測器用以偵測並取得一第一移動物件在移動時形成之一第一距離變化,該第二距離感測器用以偵測並取得一第二移動物件在移動時形成之一第二距離變化,該第一距離變化包括一第一移 動距離及一第一移動方向,該第二距離變化包括一第二移動距離及一第二移動方向,該方法包括下列步驟:設定當該第一移動距離及該第二移動距離實質上相同且該第一移動方向及該第二移動方向係分別接近該第一距離感測器及該第二距離感測器時對應至一向下指令;偵測並取得該第一移動物件在移動時形成之該第一距離變化及該第二移動物件在移動時形成之該第二距離變化;以及根據該第一距離變化及該第二距離變化,以執行該第一距離變化及該第二距離變化所對應之該向下指令。 A method for detecting a change in distance to execute an instruction for a portable electronic device, the portable electronic device comprising a first distance sensor and a second distance sensor, the first distance sensing The first distance object is configured to detect and obtain a first distance change when the first moving object is moved, and the second distance sensor is configured to detect and obtain a second distance change when the second moving object moves. The first distance change includes a first shift a moving distance and a first moving direction, the second distance changing includes a second moving distance and a second moving direction, the method comprising the steps of: setting the first moving distance and the second moving distance to be substantially the same The first moving direction and the second moving direction respectively correspond to the first distance sensor and the second distance sensor respectively corresponding to a downward command; detecting and obtaining the first moving object is formed when moving The first distance change and the second distance change formed by the second moving object while moving; and the first distance change and the second distance change according to the first distance change and the second distance change Corresponding to this downward instruction. 一種偵測距離之變化以執行指令之方法,用於一可攜式電子裝置,該可攜式電子裝置包括一第一距離感測器及一第二距離感測器,該第一距離感測器用以偵測並取得一第一移動物件在移動時形成之一第一距離變化,該第二距離感測器用以偵測並取得一第二移動物件在移動時形成之一第二距離變化,該第一距離變化包括一第一移動距離及一第一移動方向,該第二距離變化包括一第二移動距離及一第二移動方向,該方法包括下列步驟:設定當該第一移動距離係實質上為0且該第二移動方向係反覆接近及遠離該第二距離感測器時對應至一向右指令;偵測並取得該第一移動物件在移動時形成之該第一距離變化及該第二移動物件在移動時形成之該第二距離變化;以及 根據該第一距離變化及該第二距離變化,以執行該第一距離變化及該第二距離變化所對應之該向右指令。 A method for detecting a change in distance to execute an instruction for a portable electronic device, the portable electronic device comprising a first distance sensor and a second distance sensor, the first distance sensing The first distance object is configured to detect and obtain a first distance change when the first moving object is moved, and the second distance sensor is configured to detect and obtain a second distance change when the second moving object moves. The first distance change includes a first movement distance and a first movement direction, the second distance change includes a second movement distance and a second movement direction, and the method includes the following steps: setting the first movement distance system When the second moving direction is substantially close to and away from the second distance sensor, corresponding to a rightward command; detecting and obtaining the first distance change formed by the first moving object when moving and a second distance change formed by the second moving object while moving; And performing the rightward command corresponding to the first distance change and the second distance change according to the first distance change and the second distance change. 一種偵測距離之變化以執行指令之方法,用於一可攜式電子裝置,該可攜式電子裝置包括一第一距離感測器及一第二距離感測器,該第一距離感測器用以偵測並取得一第一移動物件在移動時形成之一第一距離變化,該第二距離感測器用以偵測並取得一第二移動物件在移動時形成之一第二距離變化,該第一距離變化包括一第一移動距離及一第一移動方向,該第二距離變化包括一第二移動距離及一第二移動方向,該方法包括下列步驟:設定當該第二移動距離係實質上為0且該第一移動方向係反覆接近及遠離該第一距離感測器時對應至一向左指令;偵測並取得該第一移動物件在移動時形成之該第一距離變化及該第二移動物件在移動時形成之該第二距離變化;以及根據該第一距離變化及該第二距離變化,以執行該第一距離變化及該第二距離變化所對應之該向左指令。A method for detecting a change in distance to execute an instruction for a portable electronic device, the portable electronic device comprising a first distance sensor and a second distance sensor, the first distance sensing The first distance object is configured to detect and obtain a first distance change when the first moving object is moved, and the second distance sensor is configured to detect and obtain a second distance change when the second moving object moves. The first distance change includes a first movement distance and a first movement direction, the second distance change includes a second movement distance and a second movement direction, and the method includes the following steps: setting the second movement distance system When the first moving direction is substantially close to and away from the first distance sensor, corresponding to a leftward command; detecting and obtaining the first distance change formed by the first moving object when moving and The second distance change formed by the second moving object when moving; and the first distance change and the second distance change according to the first distance change and the second distance change corresponding to the direction Left instruction.
TW98135445A 2009-10-20 2009-10-20 Method for performing instruction by detecting change in distance and portable device using the method TWI410828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98135445A TWI410828B (en) 2009-10-20 2009-10-20 Method for performing instruction by detecting change in distance and portable device using the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98135445A TWI410828B (en) 2009-10-20 2009-10-20 Method for performing instruction by detecting change in distance and portable device using the method

Publications (2)

Publication Number Publication Date
TW201115396A TW201115396A (en) 2011-05-01
TWI410828B true TWI410828B (en) 2013-10-01

Family

ID=44934447

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98135445A TWI410828B (en) 2009-10-20 2009-10-20 Method for performing instruction by detecting change in distance and portable device using the method

Country Status (1)

Country Link
TW (1) TWI410828B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI465968B (en) * 2011-10-18 2014-12-21 Acer Inc Portable electronic device and method for showing corresponding keys thereof
JP7002791B2 (en) * 2018-09-25 2022-01-20 学校法人千葉工業大学 Information processing equipment and mobile robots

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7190348B2 (en) * 2000-12-26 2007-03-13 International Business Machines Corporation Method for touchscreen data input
TW200832201A (en) * 2006-11-08 2008-08-01 3M Innovative Properties Co Touch location sensing system and method employing sensor data fitting to a predefined curve
TWI304179B (en) * 2006-02-13 2008-12-11 Michael Rong Input device operated by digit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7190348B2 (en) * 2000-12-26 2007-03-13 International Business Machines Corporation Method for touchscreen data input
TWI304179B (en) * 2006-02-13 2008-12-11 Michael Rong Input device operated by digit
TW200832201A (en) * 2006-11-08 2008-08-01 3M Innovative Properties Co Touch location sensing system and method employing sensor data fitting to a predefined curve

Also Published As

Publication number Publication date
TW201115396A (en) 2011-05-01

Similar Documents

Publication Publication Date Title
US10216407B2 (en) Display control apparatus, display control method and display control program
US9013422B2 (en) Device, method, and storage medium storing program
US9703382B2 (en) Device, method, and storage medium storing program with control for terminating a program
US9442648B2 (en) Portable electronic device and method of controlling same
JP5946462B2 (en) Mobile terminal and its screen control method
US20120256829A1 (en) Portable electronic device and method of controlling same
US20120013542A1 (en) Portable electronic device and method of determining a location of a touch
KR20090066368A (en) Portable terminal having touch screen and method for performing function thereof
JP6107663B2 (en) Information processing device
JP2015007949A (en) Display device, display controlling method, and computer program
JP2009266220A (en) Method and device for operating graphic menu bar and recording medium using the same
JP2013512505A (en) How to modify commands on the touch screen user interface
CA2738698A1 (en) Portable electronic device and method of controlling same
US20120287073A1 (en) Selection of a selection item on a touch-sensitive display
JP5805685B2 (en) Electronic device, control method, and control program
KR20110105718A (en) Portable electronic device and method of controlling same
KR20140089224A (en) Device and method for executing operation based on touch-input
US10908868B2 (en) Data processing method and mobile device
WO2018112803A1 (en) Touch screen-based gesture recognition method and device
TWI410828B (en) Method for performing instruction by detecting change in distance and portable device using the method
JP6096100B2 (en) Electronic device, control method, and control program
KR101460363B1 (en) Method and apparatus for zoom in/out using touch-screen
JP2013065290A (en) Device, method, and program
JP2013047923A (en) Device, method, and program
US11221757B2 (en) Electronic device, control method, and program