TWI464668B - Input device and the scrolling speed control method thereof - Google Patents

Input device and the scrolling speed control method thereof Download PDF

Info

Publication number
TWI464668B
TWI464668B TW101118015A TW101118015A TWI464668B TW I464668 B TWI464668 B TW I464668B TW 101118015 A TW101118015 A TW 101118015A TW 101118015 A TW101118015 A TW 101118015A TW I464668 B TWI464668 B TW I464668B
Authority
TW
Taiwan
Prior art keywords
scrolling
scroll
lines
unit
input device
Prior art date
Application number
TW101118015A
Other languages
Chinese (zh)
Other versions
TW201349084A (en
Inventor
Yi Ping Hsu
Er Hao Chen
Tao Cheng Yen
Original Assignee
Lite On Electronics Guangzhou
Lite On Technology Corp
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 Lite On Electronics Guangzhou, Lite On Technology Corp filed Critical Lite On Electronics Guangzhou
Priority to TW101118015A priority Critical patent/TWI464668B/en
Publication of TW201349084A publication Critical patent/TW201349084A/en
Application granted granted Critical
Publication of TWI464668B publication Critical patent/TWI464668B/en

Links

Description

輸入裝置及其控制捲動速度的方法Input device and method for controlling scrolling speed

本發明有關於一種輸入裝置及其控制捲動速度的方法,且特別是有關於電腦裝置的輸入裝置及其控制捲動速度的方法。The present invention relates to an input device and a method of controlling the scrolling speed thereof, and more particularly to an input device for a computer device and a method of controlling the scrolling speed thereof.

滑鼠或鍵盤等常用的電腦輸入裝置上常設置有滾輪或軌跡球等可滾動元件,用以供使用者控制電腦螢幕上所顯示之網頁或擋案捲動。當使用者操作所述的可滾動元件時,無論使用者操作的速度快或慢,每滾動一個單位所能對應控制電腦捲動的行數都相同。可滾動元件滾動的格數與電腦捲動行數的對應關係一般係於電腦系統當中設定,如視窗作業系統中可於控制台當中對滑鼠的滾輪進行行數對應設定,使得每滾動一格滑鼠滾輪就相對應捲動單行、多行或一頁。A commonly used computer input device such as a mouse or a keyboard is often provided with a scrollable component such as a scroll wheel or a trackball for the user to control the web page displayed on the computer screen or the file scrolling. When the user operates the scrollable component, regardless of whether the user operates at a fast or slow speed, the number of rows that can be controlled by the computer for each scrolling unit is the same. The correspondence between the number of scrolling elements of the scrollable component and the number of scrolling lines of the computer is generally set in the computer system. For example, in the window operating system, the number of rows of the mouse wheel can be set in the console, so that each scrolling is performed. The mouse wheel is corresponding to scrolling a single line, multiple lines or one page.

雖然每次滾動一格所對應的行數可透過設定加以調整,但每次設定完成後,電腦只能按照所設定的定值捲動。例如若設定每滾動滾輪一格,電腦即相對應捲動一行,則滾動滾輪十格,電腦相對應捲動十行。若需要捲動一百行時,在未變更設定之前,使用者亦必須滾動滾輪一百格。這樣的操作與對應方式,容易造成使用者使用文件時的不便,特別是在行數或頁數很長的文件時,若使用者欲在文件中大範圍的捲動則必須長時間的滾動滾輪或軌跡球,不但易於造成時間的浪費,也容易讓使用者的手部因過度使用而造成傷害。Although the number of lines corresponding to each scroll can be adjusted by setting, after each setting is completed, the computer can only scroll according to the set value. For example, if you set a scroll wheel for each frame, the computer will scroll a row accordingly, then the scroll wheel will be ten grids, and the computer should scroll ten rows. If you need to scroll a hundred lines, the user must also scroll a hundred frames before changing the settings. Such an operation and corresponding manner may easily cause inconvenience when the user uses the file, especially when the number of lines or the number of pages is long, and if the user wants to scroll in a large range in the file, the scroll wheel must be scrolled for a long time. Or the trackball is not only easy to waste time, but also easy to cause damage to the user's hand due to excessive use.

本發明實施例提供一種用以連接電腦裝置的輸入裝置,包括了滾動單元和控制單元。滾動單元用以根據操作而滾動(roll)一或多個滾動格(notch),滾動單元滾動的每一滾動格對應電腦裝置之文件的捲動行數。控制單元連接所述的滾動單元,並計算滾動單元滾動時相鄰兩個滾動格滾動所間隔的時間長度,以判斷滾動單元為快速滾動或慢速滾動,以及累計被滾動的各個滾動格所對應的捲動行數為累計行數,並且輸出控制指令到電腦裝置,以指示電腦裝置依照指定行數捲動文件。當兩個滾動格間隔的時間長度小於或等於門檻時間,控制單元判斷滾動單元為快速滾動,並在滾動單元快速滾動時遞增每一被滾動之滾動格對應的捲動行數。此外,控制單元將控制指令所指示的指定行數自累計行數中扣除。Embodiments of the present invention provide an input device for connecting a computer device, including a scroll unit and a control unit. The scroll unit is configured to roll one or more scrolls according to the operation, and each scroll grid of the scroll unit scrolls corresponds to the number of scroll lines of the file of the computer device. The control unit is connected to the scrolling unit, and calculates a length of time interval between two adjacent scrolling scrolls when the scrolling unit is scrolled, to determine whether the scrolling unit is fast scrolling or slow scrolling, and corresponding to each scrolling grid that is scrolled The number of scroll lines is the cumulative number of lines, and the control command is output to the computer device to instruct the computer device to scroll the file according to the specified number of lines. When the time length of the two scroll grid intervals is less than or equal to the threshold time, the control unit determines that the scroll unit is fast scrolling, and increments the number of scroll lines corresponding to each scrolled scroll grid when the scroll unit scrolls quickly. Further, the control unit subtracts the specified number of lines indicated by the control command from the accumulated number of lines.

除此之外,本發明還提供用以連接到電腦裝置的一種輸入裝置控制捲動速度的方法,所述的輸入裝置在運作時偵測輸入裝置之滾動單元的滾動,所述的滾動單元用以根據操作而滾動一或多個滾動格,滾動單元滾動的每一滾動格對應電腦裝置之文件的捲動行數;計算滾動單元滾動時,相鄰兩個滾動格滾動所間隔的時間長度,再判斷時間長度是否小於或等於門檻時間。當時間長度小於或等於門檻時間時,判斷滾動單元為快速滾動,並遞增快速滾動時所滾動的每一滾動格對應的捲動行數,再累計被滾動的所述滾動格對應的捲動行數為累計行數。此外在輸入裝置運作時,更定時輸出控制指令到電腦裝置,以指示電腦裝置根據控制指令中的指定行數捲動文件 ,並將控制指令所指示的指定行數自累計行數中扣除。In addition, the present invention also provides a method for controlling a scrolling speed of an input device for connecting to a computer device, the input device detecting the scrolling of the scrolling unit of the input device during operation, the scrolling unit To scroll one or more scroll cells according to the operation, each scroll grid scrolled by the scroll unit corresponds to the number of scroll lines of the file of the computer device; when calculating the scrolling unit, the length of time between two adjacent scroll grid scrolls, Then determine whether the length of time is less than or equal to the threshold time. When the length of time is less than or equal to the threshold time, it is determined that the scrolling unit is fast scrolling, and the number of scrolling lines corresponding to each scrolling grid scrolled during fast scrolling is incremented, and the scrolling row corresponding to the scrolling grid is further accumulated. The number is the cumulative number of rows. In addition, when the input device is in operation, the control command is outputted to the computer device at a timing to instruct the computer device to scroll the file according to the specified number of lines in the control command. And deducts the specified number of lines indicated by the control instruction from the accumulated number of lines.

綜上所述,本發明所提供的輸入裝置及其控制捲動速度的方法,可根據輸入裝置上的滾動單元滾動的時間間隔判斷滾動速度的快慢,進而自動控制電腦裝置上的文件捲動行數,使得滾動單元快轉時,文件可隨之快速大幅捲動,特別是隨著滾動單元快轉的時間越長,文件捲動的幅度增加越多,以利使用者可迅速接觸到文件中相距位置較遠的內容。In summary, the input device provided by the present invention and the method for controlling the scrolling speed can determine the speed of the scrolling speed according to the time interval of scrolling of the scrolling unit on the input device, thereby automatically controlling the file scrolling line on the computer device. The number, so that when the scrolling unit is fast-turning, the file can be scrolled quickly and quickly, especially as the scrolling unit rotates faster, the more the file scrolling increases, so that the user can quickly access the file. Content that is far apart.

〔可控制捲動速度的輸入裝置之實施例〕[Embodiment of input device capable of controlling scrolling speed]

請參閱圖1,圖1是本發明所提供的一種可用於控制電腦裝置之文件的捲動速度的輸入裝置的一較佳實施例之使用示意圖。如圖1所示,輸入裝置10可為設置有滾動單元100及按鍵102的滑鼠,用以連接到包括主機200及顯示器202的電腦裝置20。輸入裝置10的滾動單元100可為滾輪(scrolling wheel)或軌跡球(trackball),並且對應多個滾動格。所述滾動格為滾動單元100滾動的最小單位,每一滾動格可被設置對應電腦裝置20的顯示器202所顯示之文件204上的一或多行的捲動行數。換言之,當使用者操作輸入裝置10上的滾動單元100而滾動滾動格時,隨著滾動單元100的滾動(如圖1所示意的三次滾動格滾動103),輸入裝置10可傳送控制指令到電腦裝置20的主機200,以指示主機200根據滾動單元100的滾動數量而控制顯示器202上的文件隨之捲動(如圖1所示意的對應向下捲動三行206)。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a preferred embodiment of an input device for controlling a scrolling speed of a file of a computer device according to the present invention. As shown in FIG. 1, the input device 10 can be a mouse provided with a scroll unit 100 and a button 102 for connecting to a computer device 20 including a host 200 and a display 202. The scroll unit 100 of the input device 10 may be a scrolling wheel or a trackball and corresponds to a plurality of scroll bars. The scroll grid is the smallest unit of scrolling of the scroll unit 100, and each scroll grid can be set to correspond to the number of scroll lines of one or more lines on the file 204 displayed by the display 202 of the computer device 20. In other words, when the user operates the scroll unit 100 on the input device 10 to scroll the scroll grid, the input device 10 can transmit a control command to the computer as the scroll unit 100 scrolls (three-dimensional scroll grid 103 as illustrated in FIG. 1). The host 200 of the device 20 instructs the host 200 to control the scrolling of the file on the display 202 according to the number of scrolls of the scrolling unit 100 (as shown in FIG. 1 correspondingly scrolling down three rows 206).

圖1所示的滑鼠僅為可用以控制文件捲動速度的其中一種輸入裝置10之實施例。本實施例所述的輸入裝置尚可為其他設置有滾動單元的其他電腦週邊設備,例如為設置有滾輪或軌跡球的指標裝置(pointing device)或鍵盤等。此外,輸入裝置10與電腦裝置20的連接手段亦不限於如圖1所示的有線連接,本領域之技術人士可根據其通常知識而改變輸入裝置10之設計,進而以無線連結的方式與電腦裝置20溝通及傳遞指令。The mouse shown in Figure 1 is only one embodiment of one of the input devices 10 that can be used to control the scrolling speed of the document. The input device described in this embodiment may be other computer peripheral devices provided with a scroll unit, such as a pointing device or a keyboard provided with a scroll wheel or a trackball. In addition, the connection means of the input device 10 and the computer device 20 is not limited to the wired connection as shown in FIG. 1. Those skilled in the art can change the design of the input device 10 according to their usual knowledge, and then wirelessly connect the computer to the computer. Device 20 communicates and communicates instructions.

接著請參閱圖2所示的一種輸入裝置的一較佳實施例的方塊圖。本實施例的輸入裝置10至少可包括滾動單元100、控制單元104、記憶單元106及傳輸單元108。其中,滾動單元100、記憶單元106及傳輸單元108分別與控制單元104電性連接,且分別受到控制單元104的控制。滾動單元100可為如前述的滾輪、軌跡球或滾輪環(scrolling ring),本實施例以下將以滾輪為例進行說明。控制單元104為輸入裝置10內的主要處理及運算中心,可為微控制單元(MCU)、微處理器(micro processor)或嵌入式控制器(EC)等處理晶片。記憶單元106可為用於記錄輸入裝置10之韌體及/或驅動程式,以及計算滾動格所對應之捲動行數的程式碼的揮發性或非揮發性記憶體晶片。傳輸單元108則可視輸入裝置10與電腦裝置20之間採用有線連接或無線連接的方式而可為例如P/S 2連接埠、通用序列匯流排(USB)連接埠或藍芽(Bluetooth)傳輸模組晶片等通訊介面,或其他連接方式。Next, please refer to the block diagram of a preferred embodiment of an input device shown in FIG. 2. The input device 10 of the present embodiment may include at least a scroll unit 100, a control unit 104, a memory unit 106, and a transmission unit 108. The rolling unit 100, the memory unit 106 and the transmission unit 108 are electrically connected to the control unit 104, respectively, and are respectively controlled by the control unit 104. The rolling unit 100 may be a roller, a trackball or a scrolling ring as described above. In the following, a roller will be described as an example. The control unit 104 is a main processing and computing center within the input device 10, and can be a processing chip such as a micro control unit (MCU), a micro processor, or an embedded controller (EC). The memory unit 106 can be a volatile or non-volatile memory chip for recording the firmware and/or driver of the input device 10, and calculating the code of the number of scroll lines corresponding to the scroll grid. The transmission unit 108 can be a wired connection or a wireless connection between the input device 10 and the computer device 20, for example, a P/S 2 port, a universal serial bus (USB) port, or a Bluetooth mode. A communication interface such as a group of chips, or other connection methods.

滾動單元100包括多個滾動格,以滾輪為例,在滾輪上一般可見到多個等距的刻痕,每一刻痕可對應一個滾動 格。每轉動一格滾動格可使電腦裝置20上所顯示之文件(圖2未示)對應捲動特定的捲動行數。所述的捲動行數可依據控制單元104的控制而為固定的一或多行,或是根據由控制單元104進行運算並指定每一滾動格對應不同數值的捲動行數,以符合使用者的使用習慣及捲動文件的需求。詳細說明請繼續參閱以下說明。The scroll unit 100 includes a plurality of scroll grids. Taking the scroll wheel as an example, a plurality of equidistant scores are generally visible on the scroll wheel, and each score can correspond to one scroll. grid. Each time a grid of scrolls is rotated, the file (not shown in FIG. 2) displayed on the computer device 20 corresponds to the number of scrolling lines. The number of scroll lines may be fixed one or more lines according to the control of the control unit 104, or according to the operation performed by the control unit 104 and specifying the number of scroll lines corresponding to different values of each scroll grid to be used. The usage habits and the need to scroll files. For details, please continue to refer to the following instructions.

本實施例的控制單元104偵測滾動單元100根據使用者的操作而被滾動的滾動格的數量,以及每一滾動格與其前一滾動格被滾動所間隔的時間長度。控制單元104將相鄰兩滾動格之間所間隔的時間長度與一特定的門檻時間進行比對,判斷滾動單元100在使用者的操作下為快速滾動或慢速滾動。藉此,控制單元104可指定不同的捲動行數對應不同的滾動格,並累計滾動單元100滾動過程中每一滾動格所對應的捲動行數而產生累計行數。控制單元104可以輸出控制指令以通知電腦裝置20的處理器(圖2未示)捲動指定行數,使處理器根據控制指令所指示的指定行數產生捲動文件的效果。控制單元104根據累計行數而指示電腦裝置20應捲動的指定行數,隨累計行數的多寡不同,控制指令所指示的指定行數的數值可為一或多行。The control unit 104 of the present embodiment detects the number of scroll cells that the scroll unit 100 is scrolled according to the user's operation, and the length of time each scroll grid is separated from the previous one. The control unit 104 compares the length of time between adjacent scroll boxes with a specific threshold time, and determines that the scroll unit 100 is fast scrolling or slow scrolling under the user's operation. Thereby, the control unit 104 can specify that different scrolling lines correspond to different scrolling grids, and accumulate the number of scrolling lines corresponding to each scrolling grid in the scrolling process of the scrolling unit 100 to generate the cumulative number of rows. The control unit 104 may output a control command to notify the processor (not shown in FIG. 2) of the computer device 20 to scroll the specified number of lines, so that the processor generates the effect of scrolling the file according to the specified number of lines indicated by the control instruction. The control unit 104 instructs the specified number of lines that the computer device 20 should scroll according to the cumulative number of lines. The number of the specified number of lines indicated by the control command may be one or more lines depending on the number of accumulated lines.

值得一提的是,控制單元104輸出控制指令的方式可以是不規則的間歇性的輸出控制指令或者是以某一個特定的週期定時輸出控制指令。例如:控制單元104可以有週期性的輸出控制指令或者在某些特定時間限制到期之前輸出控制指令即可。然而,本發明並不因此限定控制單元104是否定時輸出控制指令,只要控制單元104可以輸出控制指令置電腦裝置,以使文件捲動即可。It is worth mentioning that the control unit 104 outputs the control command in a manner that is an irregular intermittent output control command or outputs a control command at a certain periodic timing. For example, control unit 104 may have periodic output control commands or may output control commands before certain time limits expire. However, the present invention does not thus limit whether the control unit 104 periodically outputs a control command, as long as the control unit 104 can output a control command to the computer device to scroll the file.

控制單元104計算滾動單元100滾動時,相鄰兩滾動格之間間隔的時間長度並比對門檻時間。當兩滾動格之間的時間長度大於門檻時間時,控制單元104判斷滾動單元100的滾動模式為慢速滾動。反之,當時間長度小於或等於門檻時間時,控制單元104則判斷滾動單元100的滾動模式為快速滾動。例如所述的門檻時間設定為100毫秒(ms),當相鄰兩滾動格滾動所間隔的時間長度大於100毫秒時為慢速滾動,當小於或等於100毫秒時則為快速滾動。The control unit 104 calculates the length of time between the adjacent two scroll grids when the scroll unit 100 is scrolled and compares the threshold time. When the length of time between the two scroll bars is greater than the threshold time, the control unit 104 determines that the scroll mode of the scroll unit 100 is slow scrolling. On the other hand, when the length of time is less than or equal to the threshold time, the control unit 104 determines that the scroll mode of the scroll unit 100 is fast scrolling. For example, the threshold time is set to 100 milliseconds (ms), which is slow scrolling when the length of time between adjacent scrolling scrolls is greater than 100 milliseconds, and fast scrolling when less than or equal to 100 milliseconds.

當滾動單元100被判斷為慢速滾動時,可能代表使用者正在慢速觀看電腦裝置20上顯示器所顯示的文件內容,因此控制單元104可指定在慢速滾動時的每一滾動格對應相同的基本行數,例如固定每滾動一滾動格則對應一行,或每滾動一滾動格對應相同的多行。換言之,當使用者慢速轉動滾動單元100時,電腦裝置20之顯示器上顯示的文件也會相對應地慢速捲動。進一步而言,請參閱圖3A所示的文件顯示畫面示意圖,若所設定的基本行數為一行,則在慢速滾動時,假設滾動單元100向後滾動三格滾動格,文件亦會對應向下捲動三行(即301、302到303),文件中所顯示的內容則會從圖3A改變為如圖3B所示的範圍。When the scroll unit 100 is judged to be slow scrolling, it may represent that the user is slowly watching the file content displayed on the display on the computer device 20, so the control unit 104 may specify that each scroll grid at the time of slow scrolling corresponds to the same The number of basic lines, for example, one row per scroll is fixed for one row, or the same number of rows for each scrolling grid. In other words, when the user slowly rotates the scroll unit 100, the file displayed on the display of the computer device 20 is also relatively slowly scrolled. Further, please refer to the schematic diagram of the file display screen shown in FIG. 3A. If the set basic line number is one line, then in the slow scrolling, it is assumed that the scroll unit 100 scrolls backward by three grids, and the file will also correspond downward. Scrolling three lines (ie, 301, 302 to 303), the content displayed in the file is changed from FIG. 3A to the range shown in FIG. 3B.

另一方面,當滾動單元100被判斷為快速滾動時,則可能代表使用者希望迅速地改變文件顯示的部分,以觀看文件內不同的內容,此時控制單元104可根據公式進行計算,使滾動單元100每滾動一個滾動格即對應不同數值的捲動行數,並且隨著快速滾動所持續的時間越長,讓快速滾動模式下的各個滾動格所對應的捲動行數,依照滾動格被滾動的順序依序遞增。換言之,請參閱圖4A,在快速滾 動模式下,每一滾動格所對應的捲動行數多於其前一滾動格所對應的捲動行數。因此,若使用者快速地將滾動單元100向後滾動三個滾動格,文件會依序增加向下捲動的行數,也就是圖4A中的捲動行數304、305及306依序遞增,使得文件所顯示的內容移動的幅度大於圖3A到3B的移動幅度,如圖4A到4B所示。藉此,可使得滾動單元100在快速滾動時,電腦裝置20應捲動的行數越來越多,也就易於大幅移動文件的顯示範圍。On the other hand, when the scroll unit 100 is judged to be fast scrolling, it may represent that the user desires to quickly change the portion of the file display to view different contents in the file, at which time the control unit 104 can perform calculation according to the formula to make scrolling. Each time the unit 100 scrolls a scrolling grid, that is, the number of scrolling lines corresponding to different values, and the longer the duration of the fast scrolling, the number of scrolling lines corresponding to each scrolling grid in the fast scrolling mode is determined according to the scrolling grid. The order of scrolling is incremented sequentially. In other words, see Figure 4A, in a quick roll In the dynamic mode, each scrolling grid corresponds to more scrolling rows than its previous scrolling grid. Therefore, if the user quickly scrolls the scroll unit 100 back three scrolling grids, the file sequentially increases the number of scrolling rows, that is, the scrolling rows 304, 305, and 306 in FIG. 4A are sequentially incremented. The magnitude of the movement of the content displayed by the document is made larger than that of FIGS. 3A to 3B, as shown in FIGS. 4A to 4B. Thereby, the scrolling unit 100 can make the number of lines that the computer device 20 should scroll when scrolling fast, and it is easy to greatly move the display range of the file.

其中,當控制單元104判斷出相鄰兩個滾動格之間的時間長度小於或等於門檻時間時,即可利用公式計算所述滾動格對應的捲動行數。例如可利用等差級數公式或等比級數公式及所述滾動格在快速滾動模式中的次序而進行計算。舉例來說,若以2為等差級數的公差,快速滾動模式中的第一個滾動格對應的捲動行數為1行,第二個滾動格對應的捲動行數則為3行,第三個滾動格對應的捲動行數為5行,依此類推遞增,直到滾動單元100停止滾動或是被控制單元100判斷變更為慢速滾動為止。由上述的例示可知,相較於慢速滾動時每一滾動格對應1行,當滾動單元100在快速滾動模式下滾動三個滾動格時,已累積了9行的捲動行數,相同的滾動格數量卻可比慢速滾動時所累積的3行捲動行數多出6行。Wherein, when the control unit 104 determines that the length of time between two adjacent scroll cells is less than or equal to the threshold time, the number of scroll lines corresponding to the scroll grid can be calculated by using a formula. For example, the calculation may be performed using an arithmetic progression formula or a proportional series formula and the order of the scroll grids in the fast scroll mode. For example, if 2 is the tolerance of the difference series, the number of scroll lines corresponding to the first scroll grid in the fast scroll mode is 1 line, and the number of scroll lines corresponding to the second scroll grid is 3 lines. The number of scroll lines corresponding to the third scroll bar is 5 lines, and so on, until the scroll unit 100 stops scrolling or is determined by the control unit 100 to change to slow scrolling. As can be seen from the above example, each scrolling grid corresponds to one row compared to the slow scrolling. When the scrolling unit 100 scrolls three scrolling grids in the fast scrolling mode, the number of scrolling rows of nine rows has been accumulated, the same. The number of scrolling grids can be six more lines than the number of three-line scrolling lines accumulated during slow scrolling.

控制單元104除了判斷滾動單元100的滾動模式並分別計算每一滾動格所對應的捲動行數之外,更進一步統計隨著滾動單元100被滾動而累積的捲動行數,包括慢速滾動時每一滾動格所對應的相同基本行數,以及快速滾動時每一滾動格根據公式所計算出來不同的捲動行數,以獲得 電腦裝置20所應捲動的累計行數。所述的累計行數可暫存於記憶單元106當中。In addition to determining the scroll mode of the scroll unit 100 and separately calculating the number of scroll lines corresponding to each scroll grid, the control unit 104 further counts the number of scroll lines accumulated as the scroll unit 100 is scrolled, including slow scrolling. The same number of basic rows corresponding to each scrolling grid, and the number of scrolling rows calculated by each scrolling grid according to the formula during fast scrolling to obtain The cumulative number of lines that the computer device 20 should scroll. The accumulated number of lines can be temporarily stored in the memory unit 106.

控制單元104在計算及累計捲動行數的同時,尚在輸入裝置10運作的過程中,可以持續根據一個週期定時產生控制指令,並將控制指令透過傳輸單元108傳送到電腦裝置20,以指示電腦裝置20反應輸入裝置10的操作而捲動文件。所述週期可以是初始或預設於輸入裝置10的韌體、由控制單元104設定或以其他方式指定,例如以每40毫秒為一個週期。控制單元104根據長度每40毫秒的週期輸出一次控制指令,控制指令中包括用以指示電腦裝置20進行捲動的指定行數。在本實施例中,假設指定行數為一行,也就是輸入裝置10每次發出控制指令給電腦裝置20時,都指示電腦裝置20捲動文件一行。而當控制單元104輸出包含有指定行數的控制指令後,即可將暫存的累計行數扣除掉已輸出的指定行數並更新所暫存的記錄,藉此以正確統計電腦裝置20應捲動而尚未捲動的行數,以待週期的時間再度屆滿時,再指示電腦裝置20繼續捲動剩餘的行數。The control unit 104, while calculating and accumulating the number of scrolling lines, can continue to generate control commands according to a cycle timing while the input device 10 is operating, and transmit the control commands to the computer device 20 through the transmission unit 108 to indicate The computer device 20 scrolls the file in response to the operation of the input device 10. The period may be initial or preset to the firmware of the input device 10, set by the control unit 104, or otherwise specified, for example, every 40 milliseconds. The control unit 104 outputs a control command every 40 milliseconds according to the length, and the control command includes a specified number of lines for instructing the computer device 20 to scroll. In the present embodiment, it is assumed that the specified number of lines is one line, that is, each time the input device 10 issues a control command to the computer device 20, the computer device 20 is instructed to scroll a line of the file. When the control unit 104 outputs the control command including the specified number of rows, the number of the accumulated lines that are temporarily stored can be deducted from the specified number of lines that have been outputted, and the temporarily stored records can be updated, so that the computer device 20 should be correctly counted. The number of rows scrolled but not yet scrolled, and when the time of the cycle expires again, the computer device 20 is instructed to continue scrolling the remaining number of rows.

因此,當使用者操作具有滾動單元100的輸入裝置10時,隨著使用者或快或慢地轉動滾動單元100,控制單元104持續計算及累計電腦裝置20應捲動的累計行數之外,同時也持續定時指示電腦裝置20執行捲動指定行數以消耗尚未捲動的行數,藉此而達成隨著使用者轉動輸入裝置10之滾動單元100的快或慢而相對應地微幅(slightly)或大幅度(significantly)捲動文件內容的效果。Therefore, when the user operates the input device 10 having the scroll unit 100, the control unit 104 continues to calculate and accumulate the cumulative number of lines that the computer device 20 should scroll, as the user rotates the scroll unit 100 quickly or slowly. At the same time, the computer device 20 is continuously timed to perform the scrolling of the specified number of lines to consume the number of lines that have not been scrolled, thereby achieving a correspondingly small amplitude as the user rotates the scroll unit 100 of the input device 10 faster or slower ( Slightly or substantially significant effect of scrolling the contents of the file.

進一步地,在本實施例中,控制單元104除了可執行上述的控制,以使得文件的捲動幅度配合滾動速度調整之 外,還可控制使電腦裝置20隨著滾動單元100持續快速滾動而快速捲動文件。藉此不僅使文件的捲動行數增加,也使得文件捲動的速度增加,以便更快捲動到使用者所要觀看的部分。Further, in this embodiment, the control unit 104 can perform the above control, so that the scrolling width of the file is matched with the scroll speed adjustment. In addition, it is also possible to control the computer device 20 to quickly scroll the document as the scroll unit 100 continues to scroll rapidly. This not only increases the number of scrolling lines of the document, but also increases the speed at which the document is scrolled so as to scroll faster to the portion that the user wants to view.

為了達到上述效果,輸入裝置10可預先記錄一第一門檻行數作為判定等待電腦裝置20捲動的累計行數是否過多的基準。控制單元104可比對及判斷累計行數是否已經超過所述第一門檻行數。例如:在控制單元104原先以一個第一周期,例如為40毫秒,定時產生及輸出控制指令的情況下,且當累計行數超過第一門檻行數時,控制單元104可改為根據一個第二週期定時產生及輸出控制指令。第二週期的週期時間短於第一週期,例如為20毫秒。當控制單元104根據週期時間較短的第二週期輸出控制指令,可提高指示電腦裝置20依照指定行數捲動的頻率,進而降低等待被捲動的累計行數的數量。因此,若控制單元104持續累計滾動單元100被快速滾動或慢速滾動而產生的捲動行數,並且以第一週期定時從累計行數中扣除被輸出的指定行數後,累計行數增加的速度仍快於消減的速度而超過第一門檻行數時,控制單元104可改為按照第二週期輸出控制指令以加快消減累計行數的速度。以本實施例所例示的數值而言,從第一週期的40毫秒改為第二週期的20毫秒後,累計行數消減的速度可提升約2倍,電腦裝置20捲動文件的速度也提高約2倍。In order to achieve the above effect, the input device 10 can record a first threshold number in advance as a criterion for determining whether or not the cumulative number of lines waiting for the computer device 20 to scroll is excessive. The control unit 104 can compare and determine whether the cumulative number of lines has exceeded the first threshold number. For example, in the case that the control unit 104 originally generates and outputs a control command with a first period, for example, 40 milliseconds, and when the accumulated number of rows exceeds the first threshold number, the control unit 104 may change according to one Two-cycle timing generation and output control instructions. The cycle time of the second cycle is shorter than the first cycle, for example 20 milliseconds. When the control unit 104 outputs the control command according to the second cycle with a short cycle time, the frequency indicating that the computer device 20 is scrolled according to the specified number of rows can be increased, thereby reducing the number of accumulated rows waiting to be scrolled. Therefore, if the control unit 104 continues to accumulate the number of scroll lines generated by the scroll unit 100 being quickly scrolled or slow scrolled, and deducting the number of designated lines outputted from the accumulated line number at the first cycle timing, the cumulative number of lines is increased. When the speed is still faster than the speed of the reduction and exceeds the first threshold number, the control unit 104 may instead output the control command according to the second period to speed up the reduction of the cumulative number of lines. With the numerical values exemplified in this embodiment, after changing from 40 milliseconds in the first cycle to 20 milliseconds in the second cycle, the speed of the cumulative row number reduction can be increased by about 2 times, and the speed at which the computer device 20 scrolls the file is also improved. About 2 times.

在本實施例中,若控制單元104根據第二週期輸出控制指令以降低累計行數的數值,並於比對後判斷累計行數未超過第一門檻行數時,可再恢復為根據第一週期產生及 輸出控制指令,以減輕控制單元104的運算負荷量。另一方面,若控制單元104根據第二週期輸出控制指令仍未能有效降低累計行數到未超過第一門檻行數時,可增加指定行數,例如指定行數由一行變更為多行。或者,可再縮短輸出控制指令的的週期時間,例如變更為10毫秒,藉以更頻繁地產生及輸出包括有指定行數的控制指令而降低累計行數的數值。In this embodiment, if the control unit 104 outputs a control command according to the second cycle to reduce the value of the accumulated number of rows, and after the comparison, it is determined that the cumulative number of rows does not exceed the first threshold number, and may be restored to the first Cycle generation and The control command is output to reduce the amount of computational load of the control unit 104. On the other hand, if the control unit 104 fails to effectively reduce the cumulative number of lines according to the second period to the number of lines that are not exceeded, the specified number of lines may be increased, for example, the number of specified lines is changed from one line to multiple lines. Alternatively, the cycle time of the output control command can be shortened again, for example, to 10 milliseconds, whereby the control command including the specified number of rows is generated and outputted more frequently to reduce the value of the accumulated number of rows.

亦即,除了縮短控制單元104輸出控制指令的週期時間之外,控制單元104尚可改變所產生的控制指令的內容,以增加控制指令中包含的指定行數的數值。例如當原本的指定行數為1行時,增加指定行數為多行。又例如原本的指定行數已為多行,則也可以再提高指定行數的數值,使新的指定行數之數值多於原本的指定行數之數值。藉此,可以控制電腦裝置20捲動文件的速度隨著週期時間的縮短而加快,同時也使每一次捲動所跨越的行數增加,產生高速飛梭(free-spin)捲動的效果。That is, in addition to shortening the cycle time at which the control unit 104 outputs the control command, the control unit 104 may change the content of the generated control command to increase the value of the specified number of lines included in the control command. For example, when the original specified number of lines is 1 line, the specified number of lines is increased to multiple lines. For example, if the original specified number of lines is already multiple lines, the value of the specified number of lines may be increased, so that the value of the new specified line number is greater than the value of the original specified line number. Thereby, the speed at which the computer device 20 scrolls the file can be controlled to be accelerated as the cycle time is shortened, and the number of lines spanned by each scrolling is also increased, resulting in a high-speed shuttle (free-spin) scrolling effect.

換句話說,除了如本例所述,控制單元104可透過改變週期時間及指定行數其中一者以加快文件被捲動的速度外,在其他的實施例當中,控制單元104亦可同時調整週期時間及指定行數以加速捲動文件。例如每次縮短週期時間為前一個週期時間的一半時,亦一併提高控制指令中的指定行數的數值為兩倍,藉此可提升電腦裝置20四倍的捲動速度。In other words, in addition to as described in this example, the control unit 104 can change the cycle time and the specified number of rows to speed up the file being scrolled. In other embodiments, the control unit 104 can also adjust at the same time. Cycle time and the specified number of lines to speed up scrolling files. For example, each time the shortening cycle time is half of the previous cycle time, the value of the specified number of rows in the control command is also doubled, thereby increasing the scrolling speed of the computer device 20 by four times.

〔輸入裝置控制捲動速度的方法實施例〕[Method Embodiment of Input Device Controlling Scrolling Speed]

請參閱圖5及圖6所繪示本發明提供的一種輸入裝置控制捲動速度的方法一較佳實施例之流程圖,其中,圖5 繪示了所述較佳實施例中累積捲動行數的流程圖,而圖6則繪示了所述較佳實施例中輸入裝置指示電腦裝置捲動的流程圖。本實施例所述之例示步驟流程可利用如圖2所示的輸入裝置10實施,故請一併參照圖2以利說明及理解。5 and FIG. 6 is a flow chart of a preferred embodiment of a method for controlling scrolling speed of an input device according to the present invention. FIG. A flow chart showing the cumulative number of scroll lines in the preferred embodiment is shown, and FIG. 6 is a flow chart showing the input device instructing the scrolling of the computer device in the preferred embodiment. The exemplary step flow described in this embodiment can be implemented by using the input device 10 shown in FIG. 2, so please refer to FIG. 2 for illustration and understanding.

首先請參照圖5。當輸入裝置10連接於電腦裝置20並且運作中時,控制單元104可偵測使用者對滾動單元100的操作,若使用者轉動滾動單元100,控制單元104可偵測到滾動單元100滾動一到多個滾動格(S401)。控制單元104於偵測滾動格時,計算相鄰兩滾動格所間隔的時間長度(S403),也就是計算最近一次偵測到滾動單元100滾動一個滾動格的時間與前一次偵測到滾動格的時間之差距。控制單元104接著可讀取門檻時間並且比對上述兩滾動格之間的時間長度,以判斷時間長度是否小於或等於門檻時間(S405)。First, please refer to Figure 5. When the input device 10 is connected to the computer device 20 and is in operation, the control unit 104 can detect the user's operation on the scroll unit 100. If the user rotates the scroll unit 100, the control unit 104 can detect that the scroll unit 100 scrolls one by one. A plurality of scroll bars (S401). When detecting the scroll grid, the control unit 104 calculates the length of time between the adjacent two scroll grids (S403), that is, calculates the time when the scroll unit 100 scrolls one scroll grid last time and the scroll volume detected before. The difference in time. The control unit 104 can then read the threshold time and compare the length of time between the two scroll boxes to determine whether the length of time is less than or equal to the threshold time (S405).

若根據比對結果判斷時間長度大於門檻時間,控制單元104則確認滾動單元100的滾動模式為慢速滾動,並且將基本行數設置為對應於慢速滾動時之滾動格的捲動行數(S407)。另一方面,若根據比對結果判斷時間長度小於或等於門檻時間,控制單元104則確認滾動單元100的滾動模式為快速滾動,並且利用公式計算快速滾動時的滾動格所對應的捲動行數,使快速滾動模式下的滾動格所對應的捲動行數隨著滾動格的滾動次序而遞增(S409)。換言之,控制單元104利用公式計算出來用以對應快速滾動模式下的任一滾動格之捲動行數時,可利用如等差級數公式、等比級數公式或其他關係式,按照所述滾動格在快速滾動模式下被偵測到的次序計算對應的捲動行數。由於採用等差 或等比級數公式計算,因此每一滾動格所對應的捲動行數大於其前一滾動格對應的捲動行數。例如以2為等比級數的公比,則快速滾動時的第一個滾動格對應的捲動行數可為1行,第二個滾動格對應的捲動行數為2行,第三個滾動格對應的捲動行數為4行,第四個滾動格對應的捲動行數則為8行,依此類推。If it is determined according to the comparison result that the time length is greater than the threshold time, the control unit 104 confirms that the scroll mode of the scroll unit 100 is slow scrolling, and sets the basic line number to the number of scroll lines corresponding to the scroll grid at the time of slow scrolling ( S407). On the other hand, if it is determined that the time length is less than or equal to the threshold time according to the comparison result, the control unit 104 confirms that the scroll mode of the scroll unit 100 is fast scrolling, and uses the formula to calculate the number of scroll lines corresponding to the scroll grid during fast scrolling. The number of scroll lines corresponding to the scroll grid in the fast scroll mode is incremented in accordance with the scroll order of the scroll grid (S409). In other words, when the control unit 104 calculates the number of scroll lines for using any of the scroll cells in the fast scroll mode by using the formula, the equations such as the difference series, the equation of the proportional series, or other relationships may be utilized, as described. The order in which the scroll grid is detected in the fast scroll mode calculates the corresponding number of scroll lines. Due to the use of equal difference Or the ratio is calculated by the formula, so the number of scroll lines corresponding to each scroll grid is greater than the number of scroll lines corresponding to the previous scroll grid. For example, if the ratio is 2, the ratio of the number of scroll lines corresponding to the first scroll grid in the fast scrolling may be 1 row, and the number of scroll rows corresponding to the second scroll grid is 2 rows, and the third The number of scroll lines corresponding to the scroll grid is 4 lines, the number of scroll lines corresponding to the fourth scroll grid is 8 lines, and so on.

控制單元104計算滾動格所對應的捲動行數後,可累計各個滾動格所對應的捲動行數,以統計出累計行數並加以記錄(S411),所述的累計行數包括控制單元104根據基本行數指定(即步驟S407)及根據公式計算出(即步驟S409)的捲動行數之和。獲得累計行數之後,控制單元104可繼續偵測次一個滾動格的滾動(S413),並且再度計算新偵測到的滾動格與其前一滾動格之間間隔的時間長度(S403),以便繼續隨著使用者對滾動單元100的操作而更新累計行數(步驟S405以下到S411)。After the control unit 104 calculates the number of scroll lines corresponding to the scroll grid, the number of scroll lines corresponding to each scroll grid can be accumulated to count the number of accumulated lines and record (S411), and the cumulative number of lines includes the control unit. 104 is the sum of the number of scroll lines calculated according to the basic line number designation (ie, step S407) and calculated according to the formula (ie, step S409). After obtaining the accumulated number of rows, the control unit 104 may continue to detect the scroll of the next scroll grid (S413), and again calculate the length of time between the newly detected scroll grid and its previous scroll grid (S403), in order to continue The cumulative number of lines is updated as the user operates the scroll unit 100 (step S405 down to S411).

另一方面,請參閱圖6,在輸入裝置10啟動而開始運作時起(S501),控制單元104可持續計時(S503),並且判斷根據例如控制單元104設定或其他方式指定的週期時間是否屆滿(S505)。所述的週期時間係為控制單元104用以定時產生及輸出控制指令的週期。若週期時間尚未屆滿,控制單元104則尚不需要輸出控制指令到電腦裝置20,僅需返回步驟S503繼續計時以供判斷週期時間是否屆滿。然而,若控制單元10根據計時的結果判斷輸出控制指令的週期時間屆滿時(即S505之結果為「是」),則進一步判斷輸入裝置10中是否有應輸出而尚未輸出的累計行數(S507)。換言之,控制單元104可到記憶單元106用以記錄累計 行數的位址,讀取並判斷所述累計行數是否大於0。On the other hand, referring to FIG. 6, when the input device 10 is activated to start operation (S501), the control unit 104 can continue counting (S503), and judge whether the cycle time specified according to, for example, the control unit 104 setting or other means is expired. (S505). The cycle time is a period used by the control unit 104 to periodically generate and output a control command. If the cycle time has not expired, the control unit 104 does not need to output a control command to the computer device 20, and only needs to return to step S503 to continue timing for determining whether the cycle time has expired. However, if the control unit 10 determines that the cycle time of the output control command has expired based on the result of the counting (ie, the result of S505 is YES), it is further determined whether the input device 10 has an accumulated number of lines that should be output but not yet output (S507). ). In other words, the control unit 104 can go to the memory unit 106 to record the accumulation. The address of the number of rows, read and determine whether the cumulative number of rows is greater than zero.

若控制單元104在週期時間屆滿時判斷未有應輸出的累計行數,即累計行數的數值為0,控制單元104亦不需要輸出控制指令到電腦裝置20,僅需返回步驟S503繼續計時。然而,若此時輸入裝置10所記錄的累計行數大於0(即步驟S507判斷結果為是),代表尚有應指示電腦裝置20捲動的行數,控制單元104則可產生包含有指定行數在內的控制指令並透過傳輸單元108傳送到電腦裝置20,以指示電腦裝置20的處理器(圖2未示)根據控制指令中的指定行數捲動文件(S509)。If the control unit 104 determines that there is no cumulative number of lines to be output when the cycle time expires, that is, the value of the accumulated line number is 0, the control unit 104 does not need to output the control command to the computer device 20, and only needs to return to step S503 to continue counting. However, if the cumulative number of lines recorded by the input device 10 at this time is greater than 0 (ie, the result of the determination in step S507 is YES), the number of lines indicating that the computer device 20 should be scrolled is indicated, and the control unit 104 may generate the specified line. The control command including the number is transmitted to the computer device 20 through the transmission unit 108 to instruct the processor (not shown in FIG. 2) of the computer device 20 to scroll the file according to the specified number of lines in the control command (S509).

控制單元104輸出控制指令後,更進一步將控制指令中所包含的指定行數從累計行數當中扣除,並更新被記錄的累計行數(S511),藉此以減少累計行數的數值,以便正確反應出尚未被電腦裝置20執行捲動的累計行數。控制單元104完成累計行數的更新之後,亦可繼續計時(S503)以供判斷週期時間是否屆滿(S505),並依據判斷的結果再度執行上述的對應流程步驟,以持續地在輸入裝置10的運作過程中即時地控制捲動行數的變化及電腦裝置20捲動文件的幅度。After outputting the control command, the control unit 104 further subtracts the specified number of lines included in the control command from the accumulated number of lines, and updates the accumulated number of lines to be recorded (S511), thereby reducing the value of the accumulated line number so that The cumulative number of lines that have not been scrolled by the computer device 20 is correctly reflected. After the control unit 104 completes the update of the accumulated number of rows, it may continue to count (S503) for determining whether the cycle time has expired (S505), and re-executing the corresponding process steps described above according to the result of the determination, continuously on the input device 10. The change in the number of scroll lines and the extent to which the computer device 20 scrolls the file are instantly controlled during operation.

其中,圖6步驟S507所讀取並判斷的累計行數可為對應圖5的步驟S411所記錄的累計行數。圖6步驟S511中,控制單元104則可將所述的指定行數從圖5步驟S411所記錄的累計行數中扣除並更新,以維持累計行數的正確性。The cumulative number of rows read and determined in step S507 of FIG. 6 may be the cumulative number of rows recorded in step S411 of FIG. 5. In step S511 of Fig. 6, the control unit 104 may subtract and update the specified number of lines from the cumulative number of lines recorded in step S411 of Fig. 5 to maintain the correctness of the cumulative number of lines.

〔另一輸入裝置控制捲動速度的方法實施例〕[Method Embodiment of Another Input Device Controlling Scrolling Speed]

接下來請配合圖6參閱圖7所繪示的另一個輸入裝置 控制捲動速度的一較佳方法實施例之流程圖。圖7繪示的是本較佳實施例中累積捲動行數的流程圖。本實施例所示的步驟流程,除了以輸入裝置控制電腦裝置動態改變捲動文件的幅度之外,還可進一步使電腦裝置捲動文件的速度配合輸入裝置的操作而調整。本實施例所例示的流程步驟同樣可利用圖2所示的輸入裝置10完成,故亦請一併參閱圖2以利說明。Next, please refer to FIG. 6 to refer to another input device illustrated in FIG. 7 . A flow chart of a preferred method embodiment for controlling scrolling speed. Figure 7 is a flow chart showing the cumulative number of scroll lines in the preferred embodiment. In the step flow shown in this embodiment, in addition to controlling the computer device to dynamically change the amplitude of the scroll file by the input device, the speed at which the computer device scrolls the file can be further adjusted in accordance with the operation of the input device. The flow steps exemplified in the embodiment can also be completed by using the input device 10 shown in FIG. 2, so please refer to FIG. 2 for illustration.

本例中,控制單元104在輸入裝置10運作的過程中可即時偵測滾動單元100的滾動格滾動(S601),並計算依序被偵測到的兩個滾輪格之間間隔的時間長度(S603)。控制單元104以計算出來的時間長度比對門檻時間,以判斷時間長度是否小於或等於門檻時間(S605)。若時間長度大於門檻時間,控制單元104則判斷滾動單元100的滾動模式為慢速滾動,並以基本行數指定為所述滾動格所對應的捲動行數(S607)。若時間長度小於或等於門檻時間時,控制單元104則判斷滾動模式為快速滾動,並且利用公式以及所述滾動格在快速滾動模式下的次序,計算出高於前一個滾動格對應之捲動行數之數值的捲動行數(S609)。接著,控制單元104再將各滾動格所對應的捲動行數加以累計,產生累計行數並加以記錄(S611)。前述步驟S601到S611與圖5所示的步驟S401到S411相似,S601到S611詳細說明請參閱圖5的相關步,驟說明,於此不再重述。In this example, the control unit 104 can instantly detect the scrolling scroll of the scroll unit 100 during the operation of the input device 10 (S601), and calculate the length of time between the two detected scroll wheel grids ( S603). The control unit 104 compares the threshold time with the calculated length of time to determine whether the length of time is less than or equal to the threshold time (S605). If the length of time is greater than the threshold time, the control unit 104 determines that the scroll mode of the scroll unit 100 is slow scrolling, and specifies the number of scroll lines corresponding to the scroll grid by the number of basic lines (S607). If the length of time is less than or equal to the threshold time, the control unit 104 determines that the scroll mode is fast scrolling, and calculates a scrolling line corresponding to the previous scrolling grid by using the formula and the order of the scrolling grid in the fast scrolling mode. The number of scroll lines of the numerical value (S609). Next, the control unit 104 accumulates the number of scroll lines corresponding to each of the scroll bars, generates the cumulative number of lines, and records them (S611). The foregoing steps S601 to S611 are similar to the steps S401 to S411 shown in FIG. 5, and the detailed descriptions of S601 to S611 are referred to the relevant steps of FIG. 5, and the description thereof will not be repeated here.

與圖5所示之實施例不同之處,在於圖7所示實施例中控制單元104統計出累計行數之後,可判斷累計行數是否超過了第一門檻行數(例如:10行)(S613),藉以判斷捲動行數是否因滾動單元100持續被快速滾動而迅速累積了 大量等待電腦裝置20捲動的行數,並以別的不同的週期時間產生控制指令。若累計行數尚未超過第一門檻行數,控制單元104尚不需改變產生控制指令的週期時間(例如初始或預設的週期時間為第一週期),因此可維持採用第一週期作為每次產生控制指令的週期時間(S615),並繼續偵測滾動單元100滾動次一個滾動格(S623),以及計算新偵測到的滾動格與其前一滾動格之間間隔的時間長度(S603),以便計算新偵測到的滾動格的捲動行數及更新累計行數(S605到S611)。然而,若經步驟S613後判斷累計行數已超過第一門檻行數,控制單元104則可由初始或預設的第一週期改為以第二週期作為所述的週期時間,準備產生控制指令,所述的第二週期短於第一週期(S617),藉以增加相同的時間內控制單元104輸出控制指令以指示電腦裝置20捲動文件的次數。The difference from the embodiment shown in FIG. 5 is that after the control unit 104 counts the accumulated number of rows in the embodiment shown in FIG. 7, it can be determined whether the accumulated number of rows exceeds the first threshold number (for example, 10 rows) ( S613), by which it is judged whether the number of scroll lines is rapidly accumulated due to the scroll unit 100 being continuously scrolled quickly. A large number of rows waiting for the computer device 20 to scroll, and generating control commands at different cycle times. If the accumulated number of rows has not exceeded the first threshold number, the control unit 104 does not need to change the cycle time for generating the control command (for example, the initial or preset cycle time is the first cycle), so the first cycle can be maintained as each time. Generating a cycle time of the control command (S615), and continuing to detect that the scroll unit 100 scrolls the next one of the scroll bars (S623), and calculating the length of time between the newly detected scroll bar and its previous scroll bar (S603), In order to calculate the number of scroll lines of the newly detected scroll grid and update the cumulative number of lines (S605 to S611). However, if it is determined in step S613 that the cumulative number of lines has exceeded the first threshold number, the control unit 104 may change from the initial or preset first period to the second period as the cycle time, ready to generate a control command. The second period is shorter than the first period (S617), thereby increasing the number of times the control unit 104 outputs a control command to instruct the computer device 20 to scroll the file in the same time.

在本實施例中,控制單元104將控制指令產生週期時間從第一週期改為較短的第二週期後,還可進一步判斷累計行數是否超過第二門檻行數(例如:15行)(S619)。若累計行數未超過第二門檻行數,控制單元104可繼續偵測次一個滾動格的滾動(S623)及執行後續步驟。若經過步驟S619之後,控制單元104判斷累計行數已超過第二門檻行數,此時由於累計行數已仍然超過第二門檻行數而可能造成等待電腦裝置20執行的行數過多,控制單元104可進一步提高產生控制指令時所包括的指定行數的數值,並記錄提高後的指定行數(S621),再繼續偵測次一個滾動格(S623)。例如原指定行數為單行,在步驟S621時則使指定行數變更為兩行(或多行),藉此,當每次輸出控制指令到電腦裝 置20時,即可指示電腦裝置20一次捲動兩行(或多行),使得捲動速度及文件捲動幅度一併增加。In this embodiment, after the control unit 104 changes the control command generation cycle time from the first cycle to the shorter second cycle, it may further determine whether the accumulated number of rows exceeds the second threshold number (for example, 15 rows) ( S619). If the accumulated number of lines does not exceed the second threshold number, the control unit 104 may continue to detect the scroll of the next one of the scroll bars (S623) and perform the subsequent steps. After the step S619, the control unit 104 determines that the accumulated number of lines has exceeded the second threshold number. At this time, since the accumulated number of lines still exceeds the second threshold number, the number of lines waiting for the computer device 20 to execute may be excessive, and the control unit 104 further increases the value of the specified number of lines included in the generation of the control command, and records the increased number of designated lines (S621), and continues to detect the next one of the scroll bars (S623). For example, if the original specified number of lines is a single line, in step S621, the specified number of lines is changed to two lines (or multiple lines), thereby outputting a control command to the computer each time. When set to 20, the computer device 20 can be instructed to scroll two lines (or multiple lines) at a time, so that the scrolling speed and the file scrolling amplitude are increased.

在另一方面,在輸入裝置10運作的過程中,控制單元104可執行如圖6所示的流程步驟,以定時將步驟S611所累積的累計行數扣除。詳細的流程請參閱圖6所對應的說明。值得一提的是,當對應到圖7的實施例時,圖6步驟S505所述的週期時間隨著控制單元104在圖7步驟S613判斷累計行數是否超過第一門檻行數的結果而變動。當累計行數未超過第一門檻行數時(即步驟S613的判斷結果為「否」),控制單元104於步驟S505所判斷的週期時間即為第一週期;而當累計行數超過第一門檻行數時(即步驟S613的判斷結果為「是」),控制單元104於步驟S505所判斷的週期時間即為第二週期。On the other hand, in the course of operation of the input device 10, the control unit 104 may perform the flow steps as shown in FIG. 6 to periodically deduct the accumulated number of lines accumulated in step S611. For the detailed process, please refer to the description corresponding to Figure 6. It is worth mentioning that, when corresponding to the embodiment of FIG. 7, the cycle time described in step S505 of FIG. 6 varies as the control unit 104 determines in step S613 of FIG. 7 whether the cumulative number of rows exceeds the first threshold number. . When the cumulative number of rows does not exceed the first threshold number (ie, the determination result in step S613 is "NO"), the cycle time determined by the control unit 104 in step S505 is the first cycle; and when the cumulative number of rows exceeds the first When the threshold is counted (ie, the determination result in step S613 is YES), the cycle time determined by the control unit 104 in step S505 is the second cycle.

若當時所適用的週期時間已屆滿時,控制單元104可產生包括指定行數的控制指令以指示電腦裝置20按照指定行數捲動文件(圖6步驟S509),所述的指定行數亦可根據步驟S619判斷累計行數是否超過第二門檻行數的結果而為初始(或指定)的單行或提高後的多行。換句話說,控制單元104在已調整為第二週期的週期時間裡,判斷累計行數超過第二門檻行數時,可增加指定行數的數值(例如為提高後的多行);控制單元104判斷累計行數未超過該第二門檻行數時,將指定行數的數值恢復為一初始值(例如:單行)。If the cycle time applied at the time has expired, the control unit 104 may generate a control command including the specified number of lines to instruct the computer device 20 to scroll the file according to the specified number of lines (step S509 of FIG. 6), and the specified number of lines may also be According to step S619, it is determined whether the cumulative number of lines exceeds the result of the second threshold number, and is an initial (or designated) single line or an increased plurality of lines. In other words, when the number of accumulated lines exceeds the second threshold number in the cycle time adjusted to the second period, the control unit 104 may increase the value of the specified number of lines (for example, the increased multiple lines); When 104 determines that the cumulative number of lines does not exceed the second threshold number, the value of the specified number of lines is restored to an initial value (for example, a single line).

值得一提的是,圖7實施例中,除了判斷累計行數是否超過第二門檻行數,並依據判斷結果決定是否提高控制指令所指示的指定行數之外(步驟S619與S621)。圖7實施 例的門檻行數可以是兩個以上。在此僅以下面兩個例子來說明,但下述例子並非對申請權利範圍之限制。例子一:圖7實施例中,第一門檻行數用以判斷控制單元104產生控制指令的週期為第一周期或第二周期。另外,可增加第三門檻行數以判斷控制單元104是否要以其他週期(例如:比第二周期短的周期)產生控制指令。例子二:可增加第四門檻行數,並判斷累計行數是否超過第四門檻行數,藉此進一步提高指定行數。然而,本發明並不限定門檻行數的數目,門檻行數可以用以判斷控制指令的產生週期是否要改變,或者用以判斷指定行數是否要提高,藉此提高累計行數的去除速度。It is to be noted that, in the embodiment of FIG. 7, in addition to determining whether the cumulative number of lines exceeds the number of second threshold lines, and determining whether to increase the number of designated lines indicated by the control command according to the determination result (steps S619 and S621). Figure 7 implementation The number of threshold lines can be two or more. The following two examples are only described here, but the following examples are not intended to limit the scope of the application. Example 1: In the embodiment of FIG. 7 , the first threshold number is used to determine that the period in which the control unit 104 generates the control command is the first period or the second period. Additionally, the third threshold line number may be increased to determine if the control unit 104 is to generate a control command in other cycles (eg, a cycle that is shorter than the second cycle). Example 2: The number of lines in the fourth threshold can be increased, and whether the number of accumulated lines exceeds the number of lines in the fourth threshold can be determined, thereby further increasing the number of designated lines. However, the present invention does not limit the number of threshold lines. The number of threshold lines can be used to determine whether the generation cycle of the control command is to be changed, or to determine whether the specified number of rows is to be increased, thereby increasing the removal speed of the accumulated number of rows.

另外,圖7的實施例也可將判斷累計行數是否超過第二門檻行數(S619)的相關步驟去除,以簡化流程步驟。例如:步驟S617結束之後直接進行步驟S623。因為圖7實施例的第二周期短於第一周期,當累計行數超過第一門檻行數時,控制指令可以第二周期定時產生,累計行數實際上已經被更快的速度清除。或者,在步驟S617結束後可以相同的第一門檻行數為判斷或直接就進行步驟S621,且在步驟S621結束之後進行步驟S623。當控制指令以第二周期定時產生且指定行數被提高時,累計行數被清除的速度可被進一步提升。In addition, the embodiment of FIG. 7 can also remove the correlation step of judging whether the cumulative number of lines exceeds the second threshold number (S619) to simplify the flow steps. For example, step S623 is directly performed after the end of step S617. Since the second period of the embodiment of FIG. 7 is shorter than the first period, when the accumulated number of lines exceeds the first threshold number, the control command can be generated at the second period, and the cumulative number of lines is actually cleared by the faster speed. Alternatively, after the end of step S617, the same number of first threshold lines may be judged or step S621 may be directly performed, and after step S621 is ended, step S623 may be performed. When the control command is generated at the second cycle timing and the specified number of lines is increased, the speed at which the accumulated line number is cleared can be further increased.

值得一提的是,依照圖7的流程步驟,以第一周期(或以第二周期)定時產生控制指令時,所使用的周期計算方式可以有多種方式。本實施例僅列舉兩種週期計算方式,但本發明並不因此限定。It is worth mentioning that, in accordance with the flow steps of FIG. 7, when the control command is generated in the first cycle (or in the second cycle), the cycle calculation method used may be in various ways. This embodiment only cites two types of periodic calculation methods, but the present invention is not limited thereto.

例子A:在每一次執行步驟S613(判斷累計行數是否超 過第一門檻行數)後重新計時週期時間,使得每次累計行數改變時,產生控制指令的週期時間皆被重新計時。在此敘述一種情況用來說明,此處假設第一周期為40毫秒,第二周期為20毫秒,當以第一周期(40毫秒)計時且尚未達到第一周期的時間時(例如,計時至30毫秒),若此時滾動單元100產生捲動行數而使累計行數超過第一門檻行數,依據步驟S613的判斷結果,週期時間改變為第二周期(20毫秒),而此時以第一周期產生的控制指令尚未被產生,且週期時間重新計時至20毫秒時才產生控制指令。換句話說,在上述的情況,週期時間改變前的控制指令與週期時間改變後的控制指令的時間間隔為50毫秒。依據上述可知,週期時間的改變可能會拉長控制指令的時間間隔(只有週期時間改變時的那一次),使得整體上的控制指令產生的週期時間看起來不僅是單純的第一周期或第二周期。Example A: At each execution step S613 (determine whether the cumulative number of lines is super After the first threshold is counted, the cycle time is re-timed so that the cycle time for generating the control command is re-timed each time the accumulated number of rows changes. A case is described herein to illustrate that it is assumed here that the first period is 40 milliseconds and the second period is 20 milliseconds, when the first period (40 milliseconds) is timed and the time of the first period has not been reached (for example, timing to 30 milliseconds), if the scroll unit 100 generates the number of scroll lines and the number of accumulated lines exceeds the first threshold number, the cycle time is changed to the second period (20 milliseconds) according to the judgment result of step S613, and The control command generated in the first cycle has not yet been generated, and the control command is generated when the cycle time is re-timed to 20 milliseconds. In other words, in the above case, the time interval between the control command before the cycle time change and the control command after the cycle time change is 50 milliseconds. According to the above, the change of the cycle time may lengthen the time interval of the control command (only when the cycle time is changed), so that the cycle time generated by the overall control command does not seem to be a simple first cycle or the second. cycle.

例子B:當依據步驟S613的判斷結果而使產生控制指令的週期改變時,下一次的控制指令先依照週期改變前的周期時間而產生,下下次的控制指令則可以改變後的週期而定時產生。換句話說,例子B即可避免例子A中所產生的週期時間改變時可能的控制指令的時間間隔拉長的狀況。使得,產生控制指令的週期時間不是第一周期就是的二周期。然而,不論是例子A或例子B的方式,僅在於處理週期時間改變時所可能造成控制指令的間隔時間的變化(一次性的變化)。整體上,例子A或例子B並不會影響減少累計行數的速度。Example B: When the period in which the control command is generated is changed according to the result of the determination in step S613, the next control command is first generated according to the cycle time before the cycle change, and the next control command can be changed after the cycle. produce. In other words, the example B can avoid the situation in which the time interval of the possible control commands is elongated when the cycle time generated in the example A is changed. Thus, the cycle time at which the control command is generated is not the first cycle or the second cycle. However, the mode of either example A or example B is only a change in the interval of the control command (a one-time change) that may occur when the processing cycle time is changed. Overall, Example A or Example B does not affect the speed of reducing the cumulative number of rows.

為了便於更進一步了解控制單元104運算及調整行數的方式,請參閱圖8A到8C所繪示的一個具體例示,此具 體例示是以前述的例子B的方式來改變週期時間。In order to further understand the manner in which the control unit 104 calculates and adjusts the number of lines, please refer to a specific example illustrated in FIGS. 8A to 8C. The body example is to change the cycle time in the manner of the aforementioned example B.

依據圖7的實施例所設定的各項數值如下:假設門檻時間為100毫秒;基本行數為1行;控制單元104使用的公式為以2為公差的等差級數公式;第一門檻行數為10行,第二門檻行數為15行;第一週期為40毫秒,第二週期可為20毫秒。特別注意的是,上述數值僅為例示說明所用,並非對申請權利範圍之限制。表1則為模擬使用者以不同速度轉動滾動單元100而產生的捲動行數: The values set according to the embodiment of Fig. 7 are as follows: assuming that the threshold time is 100 milliseconds; the basic number of rows is 1 row; the formula used by the control unit 104 is an equation of the difference series with a tolerance of 2; The number is 10 lines, and the second number of lines is 15 lines; the first period is 40 milliseconds, and the second period is 20 milliseconds. It is to be noted that the above-mentioned values are for illustrative purposes only and are not intended to limit the scope of the application. Table 1 shows the number of scroll lines generated by the user rotating the scroll unit 100 at different speeds:

根據表1所示的每一次轉動滾動單元100而對應計算出的捲動行數,請參閱圖8A。圖8A繪示了控制單元104根據偵測到滾動單元100滾動的時間點所計算出的捲動行數的時間行數座標圖,也就是對應表1的「捲動行數「一欄。從滾動單元100轉動一滾動格的時間點,可區分出時間區段t1 、t3 及t5 之中,滾動單元100的滾動模式為快速滾動,而相對應的捲動行數則以2為公差依序遞增。相對地,時間區段t2 及t4 則屬於慢速滾動的模式,因此相對應的捲動行數皆為相同的1行。Refer to FIG. 8A for the number of scroll lines calculated in accordance with each of the rolling units 100 shown in Table 1. FIG. 8A is a graph showing the time line number of the number of scroll lines calculated by the control unit 104 according to the time point at which the scroll unit 100 is detected, that is, the column of the number of scroll lines corresponding to Table 1. The scrolling unit 100 rotates a time point of a scrolling grid to distinguish between the time segments t 1 , t 3 and t 5 , the scrolling mode of the scrolling unit 100 is fast scrolling, and the corresponding number of scrolling rows is 2 The tolerances are sequentially incremented. In contrast, the time segments t 2 and t 4 belong to the slow scrolling mode, so the corresponding number of scrolling rows are the same one row.

接著請參照圖8B。圖8B繪示的是控制單元104定時產生控制指令而指示電腦裝置20捲動的指定行數的時間行數座標圖。每一個指定行數產生的時間點係根據初始(或預設)或控制單元104所決定之週期時間而定時發生,在本例中即為40毫秒或20毫秒。從圖8B可知,控制單元104初始時(或預設)是以第一週期而在每計時屆滿40毫秒時,輸出一次含有指定行數的控制指令。請配合參照圖8C的累計行數時序圖,可觀察出:累計行數在滾動單元100滾動的每一時間點(即表1中的「滾動時間」一欄)時都會產生捲動行數而增加累計行數,但在每一個第一週期屆滿(即40毫秒之倍數時)時都會減少,即係因控制單元104輸出控制指令後,將指定行數從累計行數中扣除的結果。例如,滾動單元100轉動所累積的捲動行數因每40毫秒扣除一次的結果,當第一週期在第440毫秒再度屆滿而扣除指定行數時,輸入裝置10暫時沒有需要再輸出的累計行數,故 在次一個第一週期屆滿時(即第480毫秒時),控制單元104即不需再輸出控制指令。因此,如圖8B所示,在第480毫秒時的指定行數為0,第520毫秒與第560毫秒時亦同。Next, please refer to FIG. 8B. FIG. 8B is a graph showing the time line number of the specified number of lines in which the control unit 104 periodically generates a control command to instruct the computer device 20 to scroll. The time point at which each specified number of lines is generated is periodically generated according to the initial (or preset) or cycle time determined by control unit 104, which in this example is 40 milliseconds or 20 milliseconds. As can be seen from FIG. 8B, the control unit 104 initially (or presets) outputs a control command containing the specified number of lines at the time of expiration of 40 milliseconds per time in the first cycle. Referring to the cumulative line number timing chart of FIG. 8C, it can be observed that the cumulative number of lines will generate the number of scroll lines at each time point of the scroll unit 100 scrolling (ie, the "scroll time" column in Table 1). The cumulative number of lines is increased, but is reduced when each first period expires (i.e., when multiples of 40 milliseconds), that is, the result of deducting the specified number of lines from the cumulative number of lines after the control unit 104 outputs the control command. For example, the result that the number of scroll lines accumulated by the scroll unit 100 is deducted once every 40 milliseconds, when the first period is again expired at the 440th millisecond and the specified number of lines is deducted, the input device 10 temporarily has no cumulative line to be re-outputted. Number, so When the next first cycle expires (ie, at the 480th millisecond), the control unit 104 does not need to output a control command. Therefore, as shown in FIG. 8B, the specified number of lines at the 480th millisecond is 0, and the 520th and 560th milliseconds are also the same.

請繼續參閱圖8B與圖8C。在滾動單元100轉動了第9個滾動格之後(即第670毫秒時),累計行數已經超過了第一門檻行數(10行),故而控制單元104將週期時間縮短,改為第二週期的20毫秒。因此,從第670毫秒處判斷超過第一門檻行數時起,每隔20毫秒即產生了一個指定行數(在本實施例中此時的指定行數是一初始或預設值,例如1行)。然而,依據所使用的周期計算方式,以第一周期從640毫秒開始計時,因此,在670毫秒後的10毫秒(680毫秒處)產生控制指令,然後後續的控制指令才以第二周期產生(如圖8B中的700毫秒與720毫秒處)。圖8C當中也分別在相對應的時間點,各減少一行累計行數。在720毫秒處,累計行數非超過第一門檻行數(10行),因此下次產生控制指令是40毫秒以後(即760毫秒處)。在760毫秒處時,控制單元104又偵測到第10個滾動格而增加了9行捲動行數,且在760毫秒時因第一週期屆滿而扣除一行指定行數,因此在760毫秒時累計行數增加8行(如圖8C所示)。當週期時間縮短降低為20毫秒之後,控制單元104於偵測到次一個滾動格而再度更新累計行數時,若發現累計行數更超出第二門檻行數(15行),則可增加指定行數為兩行。如圖8B的第780與800毫秒時的指定行數為2。Please continue to refer to FIG. 8B and FIG. 8C. After the scroll unit 100 has rotated the ninth scroll grid (ie, at the 670th millisecond), the cumulative number of lines has exceeded the number of first threshold lines (10 lines), so the control unit 104 shortens the cycle time to the second period. 20 milliseconds. Therefore, from the time when it is judged that the number of lines of the first threshold is exceeded at the 670th millisecond, a specified number of lines is generated every 20 milliseconds (in this embodiment, the specified number of lines at this time is an initial or preset value, for example, 1 Row). However, depending on the periodic calculation method used, the timing is started from 640 milliseconds in the first cycle, therefore, the control command is generated at 10 milliseconds (680 milliseconds) after 670 milliseconds, and then the subsequent control commands are generated in the second cycle ( As shown in Fig. 8B at 700 milliseconds and 720 milliseconds). In Fig. 8C, the number of accumulated lines is also reduced by one at each corresponding time point. At 720 milliseconds, the cumulative number of rows does not exceed the first threshold (10 rows), so the next generation of control commands is 40 milliseconds (ie, 760 milliseconds). At 760 milliseconds, the control unit 104 detects the 10th scroll grid and increases the number of scroll lines by 9 lines, and deducts a specified number of lines for one line at the 760 milliseconds due to the expiration of the first period, so at 760 milliseconds The cumulative number of lines is increased by 8 lines (as shown in Fig. 8C). After the cycle time shortening is reduced to 20 milliseconds, the control unit 104 may increase the specified number of lines when the number of accumulated lines exceeds the second threshold number (15 lines) when the number of accumulated lines is detected again. The number of lines is two lines. The number of designated lines at the 780th and 800th milliseconds of Fig. 8B is 2.

在第820毫秒處時,控制單元104又偵測到第11個滾動格而增加了11行捲動行數,因此,更新後的累計行數仍然超過第一門檻行數且超過第二門檻行數。由於此時所採 用的第二週期時間已加快為20毫秒,但累計行數仍然遠多於第二門檻行數,故控制單元104亦提高每次扣除的指定行數的數值,以進一步加快累計行數清除速度。在本例中為以提高為2行為例說明。故而,請參閱圖8B,從第820毫秒起,控制單元104繼續以第二周期(20毫秒)輸出控制指令並指示電腦裝置20捲動2行,此時電腦裝置20上的文件會更快速且大幅度地捲動,使得剩餘的累計行數可快速清除。對照圖8C可知,累計行數因此自第820毫秒時起快速減少,直到第920毫秒開始時,累計行數已低於第二門檻行數(15行),控制單元104則將每次扣除的指定行數恢復為1行。當滾動單元100於第940毫秒再次滾動(即第12個滾動格)時,控制單元104判斷更新的累計行數仍已降低至第二門檻行數以下,則每次扣除的指定行數仍保持為1行。再來,如圖8B所示,從第1020毫秒至第1100毫秒,累計行數未超過第一門檻行數(10行),恢復為以第一周期(每40毫秒)扣除1行指定行數。接著,在第1140毫秒處時,控制單元104又偵測到第14個滾動格而增加了3行捲動行數,因此,更新後的累計行數再次超過第一門檻行數(10行)。控制單元104自第1140毫秒開始以第二周期(20毫秒)定時扣除1行的指定行數,即在第1160毫秒處扣除1行的指定行數。最後,從第1160毫秒之後,累計行數未超過第一門檻行數(10行),恢復為以第一周期(每40毫秒)扣除1行指定行數,使使累計行數隨著小幅增加的捲動行數及定時扣除的指定行數而逐漸降低。At the 820th millisecond, the control unit 104 detects the 11th scroll grid and increases the number of 11 scroll lines. Therefore, the updated cumulative number of lines still exceeds the first threshold and exceeds the second threshold. number. Due to the time The second cycle time used has been increased to 20 milliseconds, but the cumulative number of rows is still much larger than the second threshold number, so the control unit 104 also increases the value of the specified number of rows per deduction to further speed up the cumulative number of rows. . In this example, the behavior is improved by 2. Therefore, referring to FIG. 8B, from the 820th millisecond, the control unit 104 continues to output the control command in the second cycle (20 milliseconds) and instructs the computer device 20 to scroll 2 rows, at which time the file on the computer device 20 is faster and The scrolling is greatly increased, so that the remaining accumulated lines can be quickly cleared. As can be seen from FIG. 8C, the cumulative number of rows therefore decreases rapidly from the 820th millisecond, until the beginning of the 920th millisecond, the cumulative number of rows has been lower than the second threshold (15 rows), and the control unit 104 will deduct each time. The specified number of lines is restored to 1 line. When the scroll unit 100 scrolls again at the 940th millisecond (ie, the 12th scroll grid), the control unit 104 determines that the updated cumulative number of lines has been reduced below the second threshold number, and the specified number of lines deducted each time remains. It is 1 line. Then, as shown in FIG. 8B, from the 1020th to the 1100th millisecond, the cumulative number of lines does not exceed the first threshold number (10 lines), and the number of lines is deducted by 1 line in the first period (every 40 milliseconds). . Then, at the 1140th millisecond, the control unit 104 detects the 14th scrolling grid and increases the number of scrolling rows by 3 rows. Therefore, the updated cumulative number of rows again exceeds the first threshold number of rows (10 rows). . The control unit 104 deducts the specified number of lines of one line at the first cycle (20 milliseconds) from the 1140th millisecond, that is, deducts the specified number of lines of one line at the 1160th millisecond. Finally, after the 1160th millisecond, the cumulative number of rows does not exceed the first threshold number (10 rows), and the number of specified rows is deducted by the first cycle (every 40 milliseconds), so that the cumulative number of rows increases slightly. The number of scroll lines and the number of specified lines deducted gradually decrease.

〔實施例的可能功效〕[Possible effects of the examples]

根據本發明上述較佳實施例,本發明的輸入裝置及其 控制捲動速度的方法,可以動態地隨著使用者操作輸入裝置的滾動單元的速度,調整用以指示電腦裝置捲動文件的捲動行數,達到慢速滾動時電腦裝置微幅捲動文件、快速滾動時電腦裝置亦對應大幅捲動文件的效果。According to the above preferred embodiment of the present invention, the input device of the present invention The method for controlling the scrolling speed can dynamically adjust the number of scrolling lines for instructing the computer device to scroll the file as the user operates the scrolling unit of the input device, and the computer device slightly scrolls the file when the scrolling is slow. In the case of fast scrolling, the computer device also corresponds to the effect of greatly scrolling the file.

進一步地,依據上述較佳實施例所揭露的內容,本發明輸入裝置及其控制捲動速度的方法還可在使用者較長時間快速滾動輸入裝置的滾動單元,因而累積了大量的待捲動行數時,加速電腦裝置捲動文件。具體而言,根據上述較佳實施例所述,本發明至少可透過加速傳送控制指令提高電腦裝置捲動文件的頻率,以及透過提高每次指示電腦裝置捲動文件的行數的方式,讓使用者持續一段時間快速轉動滾動單元時,可自動漸進地增加捲動的幅度及速度,產生如飛梭滾動的效果。Further, according to the disclosure of the above preferred embodiments, the input device of the present invention and the method for controlling the scrolling speed thereof can also quickly scroll the scrolling unit of the input device for a long time, thereby accumulating a large amount of scrolling to be scrolled. When the number of lines is increased, the computer device is accelerated to scroll the file. Specifically, according to the above preferred embodiments, the present invention can at least increase the frequency of scrolling files by the computer device by accelerating the transfer control command, and by using the method of increasing the number of lines of the file for each time the computer device is scrolled. When the scrolling unit is quickly rotated for a period of time, the amplitude and speed of the scrolling can be automatically and progressively increased, resulting in an effect such as a shuttle scrolling.

此外,根據上述較佳實施例,本發明的輸入裝置可透過控制單元執行軟體或韌體程式,在不變動硬體結構或增加元件而造成裝置成本過度增加的前提下,即達成上述各種功效。In addition, according to the above preferred embodiment, the input device of the present invention can execute a software or firmware program through the control unit, and achieve the above various effects without changing the hardware structure or adding components to cause an excessive increase in device cost.

藉此,不但可降低使用者在長篇幅文件之中捲動時操作滾動單元的次數,減少使用者手部過度使用而易引起的不適感,同時還可增進使用者的良好使用經驗。Thereby, not only can the number of times the user operates the scrolling unit during scrolling in the long-form document can be reduced, the discomfort caused by excessive use of the user's hand can be reduced, and the user's good experience can be improved.

以上所述僅為本發明之較佳實施例,其並非用以侷限本發明之專利範圍。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the invention.

10‧‧‧輸入裝置10‧‧‧Input device

100‧‧‧滾動單元100‧‧‧ rolling unit

102‧‧‧按鍵102‧‧‧ button

103‧‧‧滾動格數103‧‧‧ rolling grid

104‧‧‧控制單元104‧‧‧Control unit

106‧‧‧記憶單元106‧‧‧ memory unit

108‧‧‧傳輸單元108‧‧‧Transportation unit

20‧‧‧電腦裝置20‧‧‧Computer equipment

200‧‧‧主機200‧‧‧Host

202‧‧‧顯示器202‧‧‧ display

204‧‧‧文件204‧‧ ‧ documents

206‧‧‧捲動行數206‧‧‧Rolling lines

301-306‧‧‧捲動幅度301-306‧‧‧volume range

S401-S413‧‧‧流程步驟S401-S413‧‧‧ Process steps

S501-S511‧‧‧流程步驟S501-S511‧‧‧ Process steps

S601-S623‧‧‧流程步驟S601-S623‧‧‧ Process steps

t1 -t5 ‧‧‧時間區段t 1 -t 5 ‧‧‧ time zone

圖1:本發明提供的一種輸入裝置的一較佳實施例之使用環境示意圖; 圖2:本發明提供的一種輸入裝置的一較佳實施例之方塊圖;圖3A-3B:本發明的該較佳實施例中文件對應輸入裝置慢速滾動的捲動示意圖;圖4A-4B:本發明的該較佳實施例中文件對應輸入裝置快速滾動的捲動示意圖;圖5:本發明提供的一種輸入裝置控制捲動速度的一較佳方法實施例中累積捲動行數的流程圖;圖6:本發明提供的一種輸入裝置控制捲動速度的一較佳方法實施例中輸入裝置指示電腦裝置捲動的流程圖;圖7:本發明提供的另一種輸入裝置控制捲動速度的一較佳方法實施例中累積捲動行數的流程圖;圖8A:本發明的一較佳實施例中捲動行數的時間行數座標圖;圖8B:本發明的該較佳實施例中指定行數的時間行數座標圖;及圖8C:本發明的該較佳實施例中累計行數的時間行數座標圖。FIG. 1 is a schematic diagram of a use environment of a preferred embodiment of an input device provided by the present invention; FIG. 2 is a block diagram of a preferred embodiment of an input device provided by the present invention; and FIGS. 3A-3B are schematic diagrams showing scrolling of a file corresponding to an input device in a slow scrolling manner in the preferred embodiment of the present invention; FIGS. 4A-4B The scrolling diagram of the file corresponding to the fast scrolling of the input device in the preferred embodiment of the present invention; FIG. 5 is a flow chart of the method for accumulating the number of scrolling lines in a preferred method embodiment of controlling the scrolling speed of the input device provided by the present invention. Figure 6 is a flow chart showing a method for controlling the scrolling speed of an input device in accordance with a preferred embodiment of the present invention. Figure 7: Another input device provided by the present invention controls the scrolling speed. FIG. 8A is a flow chart showing the number of rows of scrolling rows in a preferred embodiment of the present invention; FIG. 8B is a preferred embodiment of the present invention; A time line number coordinate map specifying the number of lines in the example; and Fig. 8C: a time line number coordinate map of the cumulative number of lines in the preferred embodiment of the present invention.

S401-S413‧‧‧流程步驟S401-S413‧‧‧ Process steps

Claims (10)

一種輸入裝置,用以連接於一電腦裝置,該輸入裝置包括:一滾動單元,用以根據操作而滾動一或多個滾動格,該滾動單元滾動的每一所述滾動格對應該電腦裝置之一文件的一捲動行數;及一控制單元,連接該滾動單元,計算該滾動單元滾動時相鄰兩個所述滾動格滾動所間隔的一時間長度,以判斷該滾動單元為快速滾動或慢速滾動,以及累計被滾動的所述滾動格對應的該捲動行數為一累計行數,並輸出一控制指令到該電腦裝置,以指示該電腦裝置依照一指定行數捲動該文件;其中,當該時間長度小於或等於一門檻時間,該控制單元判斷該滾動單元為快速滾動,並在該滾動單元快速滾動時遞增每一被滾動的所述滾動格對應的該捲動行數;其中,該控制單元將該控制指令所指示的該指定行數自該累計行數中扣除。An input device for connecting to a computer device, the input device comprising: a scrolling unit for scrolling one or more scroll cells according to an operation, and each of the scroll cells scrolled by the scrolling unit corresponds to a computer device a scrolling number of a file; and a control unit connecting the scrolling unit to calculate a length of time between two adjacent scrolling scrolls when the scrolling unit is scrolled to determine that the scrolling unit is fast scrolling or Slow scrolling, and the number of scroll lines corresponding to the scrolling scroll is a cumulative number of lines, and outputs a control command to the computer device to instruct the computer device to scroll the file according to a specified number of lines. Wherein, when the length of time is less than or equal to a threshold time, the control unit determines that the scrolling unit is fast scrolling, and increments the number of scrolling lines corresponding to each scrolling scrolling grid when the scrolling unit is quickly scrolling And wherein the control unit subtracts the specified number of lines indicated by the control instruction from the accumulated line number. 如申請專利範圍第1項所述的輸入裝置,其中,當該時間長度大於該門檻時間,該控制單元判斷該滾動單元為慢速滾動,並在該滾動單元慢速滾動時控制每一所述滾動格對應的該捲動行數為一基本行數;當該滾動單元快速滾動時控制每一所述滾動格對應的該捲動行數等差遞增或等比遞增。The input device of claim 1, wherein the control unit determines that the scroll unit is slow scrolling when the time length is greater than the threshold time, and controls each of the scroll units when the scroll unit is slowly scrolling The number of scroll lines corresponding to the scrolling grid is a basic number of rows; when the scrolling unit is rapidly scrolling, the number of scrolling rows corresponding to each of the scrolling grids is controlled to be incremented or equal. 如申請專利範圍第1項所述的輸入裝置,其中,該控制單元依照一第一週期輸出該控制指令到該電腦裝置,以 指示該電腦裝置依照該指定行數捲動該文件。The input device of claim 1, wherein the control unit outputs the control command to the computer device according to a first cycle, Instructing the computer device to scroll the file according to the specified number of lines. 如申請專利範圍第3項所述的輸入裝置,其中,該控制單元判斷該累計行數超過一第一門檻行數時,依照一第二週期定時輸出該控制指令,該第二週期短於該第一週期;該控制單元判斷該控制指令依照該第二週期輸出而該累計行數未超過該第一門檻行數時,變更為依照該第一週期輸出該控制指令。The input device of claim 3, wherein the control unit determines that the cumulative number of rows exceeds a first threshold number, and outputs the control command according to a second cycle timing, wherein the second cycle is shorter than the The first cycle is configured to: when the control unit determines that the control command is output according to the second cycle, and the number of accumulated rows does not exceed the first threshold number, the control unit changes to output the control command according to the first cycle. 如申請專利範圍第4項所述的輸入裝置,其中,當該控制單元依照該第二週期定時輸出該控制指令時,且該控制單元判斷該累計行數超過一第二門檻行數時,增加該指定行數的數值;當該控制單元依照該第二週期定時輸出該控制指令時,且該控制單元判斷該累計行數未超過該第二門檻行數時,將該指定行數的數值恢復為一初始值。The input device of claim 4, wherein when the control unit outputs the control command according to the second cycle timing, and the control unit determines that the accumulated number of rows exceeds a second threshold number, the control unit increases a value of the specified number of rows; when the control unit outputs the control command according to the second cycle timing, and the control unit determines that the accumulated number of rows does not exceed the second threshold number, the value of the specified row number is restored. Is an initial value. 一種輸入裝置控制捲動速度的方法,該輸入裝置用以連接一電腦裝置,該方法包括:於該輸入裝置運作時,偵測該輸入裝置的一滾動單元的滾動,該滾動單元用以根據操作而滾動一或多個滾動格,該滾動單元滾動的每一所述滾動格對應該電腦裝置之一文件的一捲動行數;計算該滾動單元滾動時相鄰兩個滾動格滾動所間隔的一時間長度;判斷該時間長度是否小於或等於一門檻時間;及當該時間長度小於或等於該門檻時間時,判斷該滾動單元為快速滾動,並遞增快速滾動時所滾動的每一所述滾動格對應的該捲動行數; 累計被滾動的所述滾動格對應的該捲動行數為一累計行數;於該輸入裝置運作時,輸出一控制指令到該電腦裝置,以指示該電腦裝置根據該控制指令中的一指定行數捲動該文件;及將該控制指令所指示該的該指定行數自該累計行數中扣除。A method for controlling a scrolling speed of an input device, wherein the input device is configured to connect to a computer device, the method comprising: detecting, when the input device is in operation, detecting a scrolling of a scrolling unit of the input device, the scrolling unit for operating according to the operation And scrolling one or more scroll cells, each scroll bar of the scrolling unit is corresponding to a scrolling number of files of one of the computer devices; calculating the interval between adjacent scrolling scrolls when the scrolling unit is scrolling a length of time; determining whether the length of time is less than or equal to a threshold time; and when the length of time is less than or equal to the threshold time, determining that the scroll unit is fast scrolling, and incrementing each scrolling that is scrolled during fast scrolling The number of scroll lines corresponding to the grid; The scrolling row corresponding to the scrolling scroll is a cumulative number of rows; when the input device is in operation, outputting a control command to the computer device to instruct the computer device to specify according to the control command The number of lines scrolls the file; and the specified number of lines indicated by the control instruction is subtracted from the accumulated number of lines. 如申請專利範圍第6項所述的輸入裝置控制捲動速度的方法,其中,判斷該時間長度是否小於或等於該門檻時間之後,更包括:當該時間長度大於該門檻時間時,判斷該滾動單元為慢速滾動,並指定以一基本行數作為慢速滾動時所滾動的所述滾動格對應的該捲動行數。The method for controlling the scrolling speed of the input device according to claim 6, wherein determining whether the length of time is less than or equal to the threshold time further comprises: when the length of time is greater than the threshold time, determining the scrolling The unit is slow scrolling, and specifies the number of scroll lines corresponding to the scroll grid scrolled by a basic line number as a slow scroll. 如申請專利範圍第6項所述的輸入裝置控制捲動速度的方法,其中,累計被滾動的所述滾動格對應的該捲動行數為該累計行數之後,更包括:判斷該累計行數是否超過一第一門檻行數;當該累計行數未超過該第一門檻行數時,依照一第一週期定時輸出該控制指令;及當該累計行數超過該第一門檻行數時,依照一第二週期定時輸出該控制指令,該第二週期短於該第一週期。The method of controlling the scrolling speed of the input device according to the sixth aspect of the invention, wherein the scrolling the scrolling grid corresponds to the number of the scrolling rows, and further comprising: determining the cumulative row Whether the number exceeds a first threshold number; when the accumulated number of lines does not exceed the first threshold number, the control instruction is output according to a first period; and when the accumulated number of lines exceeds the first threshold And outputting the control instruction according to a second period, the second period being shorter than the first period. 如申請專利範圍第8項所述的輸入裝置控制捲動速度的方法,其中,依照該第二週期輸出該控制指令之步驟包括:當該累計行數超過一第二門檻行數時,提高該控制指 令指示的該指定行數。The method of controlling the scrolling speed by the input device according to claim 8 , wherein the step of outputting the control command according to the second period comprises: when the number of accumulated lines exceeds a second threshold, increasing the number Control finger The specified number of lines indicated. 如申請專利範圍第6項所述的輸入裝置控制捲動速度的方法,其中,累計該累計行數之後,更包括:返回偵測該輸入裝置的該滾動單元滾動之步驟;其中,於該輸入裝置運作時,輸出該控制指令到該電腦裝置,以指示該電腦裝置根據該控制指令中的該指定行數捲動該文件的步驟包括:判斷一週期時間是否屆滿;當該週期時間尚未屆滿時,返回偵測該輸入裝置的該滾動單元滾動之步驟;當該週期時間屆滿時,判斷該累計行數是否大於零;當該累計行數未大於零,返回偵測該輸入裝置的該滾動單元滾動之步驟;及當該累計行數大於零,產生該控制指令以供輸出到該電腦裝置;其中,將該控制指令所指示該的該指定行數自該累計行數中扣除之後,更包括:返回判斷該週期時間是否屆滿之步驟。The method for controlling the scrolling speed of the input device according to claim 6, wherein after the accumulating the accumulated number of lines, the method further comprises: returning to the step of detecting the scrolling of the scrolling unit of the input device; wherein, the input is When the device is in operation, outputting the control command to the computer device to instruct the computer device to scroll the file according to the specified number of lines in the control command comprises: determining whether a cycle time expires; when the cycle time has not expired Returning to the step of detecting the scrolling of the scrolling unit of the input device; when the cycle time expires, determining whether the accumulated number of rows is greater than zero; when the cumulative number of rows is not greater than zero, returning to detecting the scrolling unit of the input device a step of scrolling; and when the accumulated number of rows is greater than zero, the control command is generated for output to the computer device; wherein, the specified number of rows indicated by the control command is deducted from the accumulated number of rows, and further includes : Returns the step to determine if the cycle time has expired.
TW101118015A 2012-05-21 2012-05-21 Input device and the scrolling speed control method thereof TWI464668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101118015A TWI464668B (en) 2012-05-21 2012-05-21 Input device and the scrolling speed control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101118015A TWI464668B (en) 2012-05-21 2012-05-21 Input device and the scrolling speed control method thereof

Publications (2)

Publication Number Publication Date
TW201349084A TW201349084A (en) 2013-12-01
TWI464668B true TWI464668B (en) 2014-12-11

Family

ID=50157437

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101118015A TWI464668B (en) 2012-05-21 2012-05-21 Input device and the scrolling speed control method thereof

Country Status (1)

Country Link
TW (1) TWI464668B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040066371A1 (en) * 2002-10-02 2004-04-08 Huang Mark Po-Shaw Mouse device and method with the wireless transmission function
WO2007124614A1 (en) * 2006-04-27 2007-11-08 Apexone Microelectronics Ltd. Process for controlling cursor speed in user interface
TWI290295B (en) * 2005-02-23 2007-11-21 Pixart Imaging Inc Method for configuring mouse attributes with different key combinations and device using the same
TWI361368B (en) * 2007-11-26 2012-04-01 Darfon Electronics Corp Computer mouse and operating method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040066371A1 (en) * 2002-10-02 2004-04-08 Huang Mark Po-Shaw Mouse device and method with the wireless transmission function
TWI290295B (en) * 2005-02-23 2007-11-21 Pixart Imaging Inc Method for configuring mouse attributes with different key combinations and device using the same
WO2007124614A1 (en) * 2006-04-27 2007-11-08 Apexone Microelectronics Ltd. Process for controlling cursor speed in user interface
TWI361368B (en) * 2007-11-26 2012-04-01 Darfon Electronics Corp Computer mouse and operating method thereof

Also Published As

Publication number Publication date
TW201349084A (en) 2013-12-01

Similar Documents

Publication Publication Date Title
JP5919995B2 (en) Display device, display method, and display program
US8847978B2 (en) Information processing apparatus, information processing method, and information processing program
JP6430020B2 (en) Web page loading method and system
US20130311939A1 (en) Input device and method for controlling scrolling speed thereof
JP5999830B2 (en) Information processing program, information processing apparatus, information processing system, and information processing method
JP2013003718A (en) Information processing device, scroll display method of information processing device, and scroll display program
KR101996469B1 (en) Display control device, display control method, and program
CN104620215A (en) Electronic apparatus, document display method, and computer-readable recording medium whereupon program is recorded
EP2998853A1 (en) Method and apparatus for adjusting playback
US10699665B2 (en) Semiconductor device, portable terminal device, and operation detecting method
JP2014089729A5 (en)
KR101372122B1 (en) Method and apparatus for correcting gesture on touch screen based on vector
CN104636048A (en) Page content rolling display method and device
US10579254B2 (en) Method and apparatus for realizing human-machine interaction
TWI464668B (en) Input device and the scrolling speed control method thereof
US8587521B2 (en) Scrolling inertia
TWI660293B (en) Method of accelerating scrolling input and mouse
KR20150071130A (en) Method and apparatus for controlling scroll in portable device
TWI557629B (en) System and method for automatically adjusting display ratio of user interface
CN105511673B (en) A kind of touch screen response method, device and game control method, device
US20030151588A1 (en) Method and apparatus for cursor smoothing
CN104348748B (en) A kind of method and system of limitation network speed
CN107357504A (en) A kind of electronic map for by scaling gesture show scaling
TWI573018B (en) Information processing device and information processing method
EP2866134A1 (en) Portable electronic device and control method