TWI815487B - Electronic device and method of controlling mouse cursor - Google Patents

Electronic device and method of controlling mouse cursor Download PDF

Info

Publication number
TWI815487B
TWI815487B TW111120268A TW111120268A TWI815487B TW I815487 B TWI815487 B TW I815487B TW 111120268 A TW111120268 A TW 111120268A TW 111120268 A TW111120268 A TW 111120268A TW I815487 B TWI815487 B TW I815487B
Authority
TW
Taiwan
Prior art keywords
cursor
cursor position
projection vector
mouse
mouse cursor
Prior art date
Application number
TW111120268A
Other languages
Chinese (zh)
Other versions
TW202349183A (en
Inventor
張博鈞
Original Assignee
優派國際股份有限公司
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 優派國際股份有限公司 filed Critical 優派國際股份有限公司
Priority to TW111120268A priority Critical patent/TWI815487B/en
Application granted granted Critical
Publication of TWI815487B publication Critical patent/TWI815487B/en
Publication of TW202349183A publication Critical patent/TW202349183A/en

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

An electronic device and a method of controlling a mouse cursor are provided. The method includes: obtaining a movement trajectory corresponding to the mouse cursor, wherein the movement trajectory includes a first mouse cursor, a second mouse cursor, and a third mouse cursor; calculating a first projection vector of the first mouse cursor and the second mouse cursor on a first axil and calculating a second projection vector of the second mouse cursor and the third mouse cursor on the first axil; in response to a first direction of the first projection vector being opposite to a second direction of the second projection vector, increasing a quantity count value corresponding to the movement trajectory; and in response to the quantity count value being greater than a quantity threshold, changing the outputted mouse cursor.

Description

控制滑鼠游標的電子裝置和方法Electronic device and method for controlling mouse cursor

本發明是有關於一種控制滑鼠游標的電子裝置和方法。The present invention relates to an electronic device and method for controlling a mouse cursor.

隨著顯示器技術的進步,螢幕所支援的解析度較以往提升了許多。此外,有越來越多的使用者開始使用多螢幕的電腦配置以提升工作效率。然而,上述的因素都會造成使用者更難即時掌握滑鼠游標的位置。因此,如何幫助使用者迅速地尋找到滑鼠游標,是本領域的重要課題之一。With the advancement of display technology, the resolution supported by the screen has been much higher than in the past. In addition, more and more users are beginning to use multi-screen computer configurations to improve work efficiency. However, the above factors will make it more difficult for users to grasp the position of the mouse cursor in real time. Therefore, how to help users quickly find the mouse cursor is one of the important issues in this field.

本發明提供一種控制滑鼠游標的電子裝置和方法,可根據簡單的操作動作使滑鼠游標變得更加明顯。The present invention provides an electronic device and method for controlling a mouse cursor, which can make the mouse cursor more visible based on simple operating actions.

本發明的一種控制滑鼠游標的電子裝置,包含第一收發器、第二收發器以及處理器。第一收發器取得對應於滑鼠游標的移動軌跡,其中移動軌跡包含第一游標位置、第二游標位置以及第三游標位置。第二收發器輸出滑鼠游標。處理器耦接第一收發器和第二收發器,其中處理器經配置以執行:計算第一游標位置和第二游標位置在第一軸上的第一投影向量,並且計算第二游標位置和第三游標位置在第一軸上的第二投影向量;響應於第一投影向量的第一方向與第二投影向量的第二方向相反,增加對應於移動軌跡的數量計數值;以及響應於數量計數值大於數量閾值,改變所輸出的滑鼠游標。An electronic device for controlling a mouse cursor according to the present invention includes a first transceiver, a second transceiver and a processor. The first transceiver obtains a movement trajectory corresponding to the mouse cursor, where the movement trajectory includes a first cursor position, a second cursor position, and a third cursor position. The second transceiver outputs the mouse cursor. The processor is coupled to the first transceiver and the second transceiver, wherein the processor is configured to: calculate a first projection vector of the first cursor position and the second cursor position on the first axis, and calculate the second cursor position and a second projection vector of the third cursor position on the first axis; in response to the first direction of the first projection vector being opposite to the second direction of the second projection vector, increasing the number count value corresponding to the movement trajectory; and in response to the number If the count value is greater than the quantity threshold, change the output mouse cursor.

在本發明的一實施例中,上述的第一游標位置對應於第一時間點,第二游標位置對應於晚於第一時間點的第二時間點,並且第三游標位置對應於晚於第二時間點的第三時間點,其中處理器更經配置以執行:響應於第一投影向量的長度大於距離閾值,增加數量計數值。In an embodiment of the present invention, the above-mentioned first cursor position corresponds to a first time point, the second cursor position corresponds to a second time point later than the first time point, and the third cursor position corresponds to a second time point later than the first time point. At a third time point of the two time points, the processor is further configured to: in response to the length of the first projection vector being greater than the distance threshold, increment the quantity count value.

在本發明的一實施例中,上述的處理器更經配置以執行:響應於第一投影向量和第二投影向量大於距離閾值,增加數量計數值。In an embodiment of the present invention, the above-mentioned processor is further configured to perform: in response to the first projection vector and the second projection vector being greater than the distance threshold, increasing the quantity count value.

在本發明的一實施例中,上述的處理器更經配置以執行:根據顯示解析度輸出滑鼠游標;以及根據顯示解析度決定距離閾值。In an embodiment of the present invention, the above-mentioned processor is further configured to: output the mouse cursor according to the display resolution; and determine the distance threshold according to the display resolution.

在本發明的一實施例中,上述的顯示解析度與距離閾值成正比。In an embodiment of the present invention, the above display resolution is proportional to the distance threshold.

在本發明的一實施例中,上述的第一游標位置對應於第一時間點,並且第二游標位置對應於第二時間點,其中第一時間點與第二時間點相鄰,其中處理器更經配置以執行:響應於第一時間點與第二時間點之間的差值小於或等於時間閾值,根據第一游標位置和第二游標位置計算第一投影向量。In an embodiment of the present invention, the above-mentioned first cursor position corresponds to a first point in time, and the second cursor position corresponds to a second point in time, wherein the first point in time is adjacent to the second point in time, and the processor Further configured to perform: in response to the difference between the first time point and the second time point being less than or equal to the time threshold, calculating the first projection vector based on the first cursor position and the second cursor position.

在本發明的一實施例中,上述的處理器更經配置以執行:根據游標位置有差異,即中斷通知處理器做紀錄。In an embodiment of the present invention, the above-mentioned processor is further configured to perform: according to the difference in the cursor position, the interrupt notifies the processor to record.

在本發明的一實施例中,上述的處理器更經配置以執行:根據顯示解析度輸出滑鼠游標;以及根據顯示解析度決定預設游標位置數量及滑鼠軌跡佇列的大小。In an embodiment of the present invention, the above-mentioned processor is further configured to: output a mouse cursor according to the display resolution; and determine the number of preset cursor positions and the size of the mouse track queue according to the display resolution.

在本發明的一實施例中,上述的顯示解析度與預設游標位置數量成正比。In an embodiment of the present invention, the above-mentioned display resolution is proportional to the number of preset cursor positions.

在本發明的一實施例中,上述的處理器更經配置以執行:響應於第二收發器與多個顯示器通訊連接,改變所輸出的滑鼠游標。In an embodiment of the present invention, the above-mentioned processor is further configured to: change the output mouse cursor in response to the second transceiver communicating with the plurality of displays.

在本發明的一實施例中,上述的處理器更經配置以執行:放大滑鼠游標以改變所輸出的滑鼠游標。In an embodiment of the present invention, the above-mentioned processor is further configured to perform: enlarging the mouse cursor to change the output mouse cursor.

本發明的一種控制滑鼠游標的方法,包含:取得對應於滑鼠游標的移動軌跡,其中移動軌跡包含第一游標位置、第二游標位置以及第三游標位置;計算第一游標位置和第二游標位置在第一軸上的第一投影向量,並且計算第二游標位置和第三游標位置在第一軸上的第二投影向量;響應於第一投影向量的第一方向與第二投影向量的第二方向相反,增加對應於移動軌跡的數量計數值;以及響應於數量計數值大於數量閾值,改變被輸出的滑鼠游標。A method of controlling a mouse cursor of the present invention includes: obtaining a movement trajectory corresponding to the mouse cursor, where the movement trajectory includes a first cursor position, a second cursor position, and a third cursor position; calculating the first cursor position and the second cursor position. a first projection vector of the cursor position on the first axis, and calculate a second projection vector of the second cursor position and the third cursor position on the first axis; in response to the first direction of the first projection vector and the second projection vector The second direction is opposite, increasing the quantity count value corresponding to the movement trajectory; and in response to the quantity count value being greater than the quantity threshold, changing the output mouse cursor.

基於上述,本發明的電子裝置可根據滑鼠游標被使用者搖動的次數改變或放大滑鼠游標,藉以提示使用者滑鼠游標的位置。Based on the above, the electronic device of the present invention can change or enlarge the mouse cursor according to the number of times the mouse cursor is shaken by the user, thereby prompting the user for the position of the mouse cursor.

為了使本發明之內容可以被更容易明瞭,以下特舉實施例作為本發明確實能夠據以實施的範例。另外,凡可能之處,在圖式及實施方式中使用相同標號的元件/構件/步驟,係代表相同或類似部件。In order to make the content of the present invention easier to understand, the following embodiments are given as examples according to which the present invention can be implemented. In addition, wherever possible, elements/components/steps with the same reference numbers in the drawings and embodiments represent the same or similar parts.

圖1根據本發明的一實施例繪示一種控制滑鼠游標的電子裝置100的示意圖。電子裝置100可包含處理器110、儲存媒體120、收發器130以及收發器140。電子裝置100例如是滑鼠或運算裝置。電子裝置100可在使用者操作滑鼠搖動時改變滑鼠游標的顯示方式,藉以提示使用者滑鼠游標所在的位置。FIG. 1 is a schematic diagram of an electronic device 100 for controlling a mouse cursor according to an embodiment of the present invention. The electronic device 100 may include a processor 110, a storage medium 120, a transceiver 130, and a transceiver 140. The electronic device 100 is, for example, a mouse or a computing device. The electronic device 100 can change the display mode of the mouse cursor when the user operates the mouse to shake, thereby reminding the user of the position of the mouse cursor.

處理器110例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微控制單元(micro control unit,MCU)、微處理器(microprocessor)、數位信號處理器(digital signal processor,DSP)、可程式化控制器、特殊應用積體電路(application specific integrated circuit,ASIC)、圖形處理器(graphics processing unit,GPU)、影像訊號處理器(image signal processor,ISP)、影像處理單元(image processing unit,IPU)、算數邏輯單元(arithmetic logic unit,ALU)、複雜可程式邏輯裝置(complex programmable logic device,CPLD)、現場可程式化邏輯閘陣列(field programmable gate array,FPGA)或其他類似元件或上述元件的組合。處理器110可耦接至儲存媒體120、收發器130以及收發氣140,並且存取和執行儲存於儲存媒體120中的多個模組和各種應用程式。The processor 110 is, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose micro control unit (MCU), microprocessor, or digital signal processing unit. Digital signal processor (DSP), programmable controller, application specific integrated circuit (ASIC), graphics processing unit (GPU), image signal processor (ISP) ), image processing unit (IPU), arithmetic logic unit (ALU), complex programmable logic device (CPLD), field programmable gate array (field programmable gate array) , FPGA) or other similar components or a combination of the above components. The processor 110 may be coupled to the storage medium 120, the transceiver 130, and the transceiver 140, and access and execute multiple modules and various applications stored in the storage medium 120.

儲存媒體120例如是任何型態的固定式或可移動式的隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟(hard disk drive,HDD)、固態硬碟(solid state drive,SSD)或類似元件或上述元件的組合,而用於儲存可由處理器110執行的多個模組或各種應用程式。上述的多個模組或應用程式可為作業系統(operation system,OS)的常駐程式(daemon)。The storage medium 120 is, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), or flash memory. , hard disk drive (HDD), solid state drive (SSD) or similar components or a combination of the above components, used to store multiple modules or various application programs that can be executed by the processor 110 . The above-mentioned multiple modules or applications may be resident programs (daemon) of the operating system (operation system, OS).

收發器130或收發器140以無線或有線的方式傳送及接收訊號。收發器130或收發器140還可以執行例如低噪聲放大、阻抗匹配、混頻、向上或向下頻率轉換、濾波、放大以及類似的操作。The transceiver 130 or the transceiver 140 transmits and receives signals in a wireless or wired manner. Transceiver 130 or transceiver 140 may also perform, for example, low noise amplification, impedance matching, mixing, up or down frequency conversion, filtering, amplification, and similar operations.

電子裝置100可通過收發器130取得對應於滑鼠的移動軌跡。舉例來說,若電子裝置100為滑鼠,則收發器130可為滑鼠的紅外線感測器、雷射感測器或藍光感測器。若電子裝置100為運算裝置(例如:電腦),則收發器130可為用以接收來自滑鼠的訊號的輸入介面。The electronic device 100 can obtain the movement trajectory corresponding to the mouse through the transceiver 130 . For example, if the electronic device 100 is a mouse, the transceiver 130 may be an infrared sensor, a laser sensor or a blue light sensor of the mouse. If the electronic device 100 is a computing device (eg, a computer), the transceiver 130 may be an input interface for receiving signals from a mouse.

電子裝置100可通過收發器140輸出滑鼠游標。舉例來說,若電子裝置100為滑鼠,則收發器140可為用以輸出滑鼠訊號的PS/2介面、通用序列匯流排(universal serial bus,USB)介面或射頻發射器。若電子裝置100為運算裝置(例如:電腦),則收發器140可用以輸出滑鼠游標的訊號至顯示器,藉以通過顯示器顯示滑鼠游標。The electronic device 100 can output the mouse cursor through the transceiver 140 . For example, if the electronic device 100 is a mouse, the transceiver 140 may be a PS/2 interface, a universal serial bus (USB) interface or a radio frequency transmitter for outputting mouse signals. If the electronic device 100 is a computing device (eg, a computer), the transceiver 140 can be used to output the mouse cursor signal to the display, thereby displaying the mouse cursor through the display.

圖2根據本發明的一實施例繪示一種控制滑鼠游標的方法的流程圖,其中所述方法可由如圖1所示的電子裝置100實施。在步驟S201中,處理器110可通過收發器130取得對應於滑鼠游標的移動軌跡。移動軌跡可包含分別對應於多個時間點的多個游標位置。在本實施例中,移動軌跡可包含對應於第一時間點的第一游標位置、對應於第二時間點的第二游標位置以及對應於第三時間點的第三游標位置,其中第二時間點晚於第一時間點,並且第三時間點晚於第二時間點。FIG. 2 illustrates a flowchart of a method of controlling a mouse cursor according to an embodiment of the present invention, wherein the method can be implemented by the electronic device 100 shown in FIG. 1 . In step S201, the processor 110 may obtain the movement trajectory corresponding to the mouse cursor through the transceiver 130. The movement trajectory may include multiple cursor positions corresponding to multiple time points respectively. In this embodiment, the movement trajectory may include a first cursor position corresponding to the first time point, a second cursor position corresponding to the second time point, and a third cursor position corresponding to the third time point, where the second time point The time point is later than the first time point, and the third time point is later than the second time point.

在一實施例中,處理器110可通過收發器130接收滑鼠的輸入訊號,並且根據預設游標位置數量自輸入訊號中取樣出滑鼠游標的移動軌跡。若移動軌跡包含太多的游標位置,處理器110可能將使用者對滑鼠的多個不同的操作誤判為使用者在搖動滑鼠。本發明通過對用於判斷滑鼠是否被搖動的移動軌跡所包含的游標位置數量進行限制以避免上述的情況發生。舉例來說,假設預設游標位置數量等於50,則處理器110可從滑鼠的輸入訊號中取樣出50個游標位置以作為滑鼠的移動軌跡。In one embodiment, the processor 110 may receive a mouse input signal through the transceiver 130 and sample the movement trajectory of the mouse cursor from the input signal according to a preset number of cursor positions. If the movement trajectory contains too many cursor positions, the processor 110 may misjudge the user's multiple different operations on the mouse as the user shaking the mouse. The present invention avoids the above situation by limiting the number of cursor positions included in the movement trajectory used to determine whether the mouse is shaken. For example, assuming that the default number of cursor positions is equal to 50, the processor 110 can sample 50 cursor positions from the mouse input signal as the movement trajectory of the mouse.

在一實施例中,處理器110可根據顯示解析度輸出滑鼠游標,並可根據顯示解析度決定預設游標位置數量及滑鼠座標佇列的大小,其中顯示解析度可與預設游標位置數量成正比。舉例來說,假設電子裝置100通過收發器140耦接至顯示器。電子裝置100可通過收發器140輸出包含圖形使用者介面(graphical user interface,GUI)以及滑鼠游標的影像訊號至顯示器。當影像訊號對應的顯示解析度越高時,圖形使用者介面中的滑鼠游標會縮小,且基於使用者操作而移動的滑鼠游標的移動距離也會縮短。如此,處理器110將需要取樣更多的游標位置以根據這些游標位置判斷使用者是否搖動滑鼠。因此,處理器110可隨著顯示解析度的提升而增加預設游標位置數量及滑鼠座標佇列的大小。In one embodiment, the processor 110 can output the mouse cursor according to the display resolution, and can determine the number of default cursor positions and the size of the mouse coordinate queue according to the display resolution, where the display resolution can be related to the default cursor position. Directly proportional to quantity. For example, assume that electronic device 100 is coupled to a display through transceiver 140 . The electronic device 100 can output image signals including a graphical user interface (GUI) and a mouse cursor to the display through the transceiver 140 . When the display resolution corresponding to the image signal is higher, the mouse cursor in the graphical user interface will be smaller, and the moving distance of the mouse cursor moved based on user operations will also be shortened. In this way, the processor 110 will need to sample more cursor positions to determine whether the user shakes the mouse based on these cursor positions. Therefore, the processor 110 can increase the number of default cursor positions and the size of the mouse coordinate queue as the display resolution increases.

在步驟S202中,處理器110可判斷時間上相鄰的兩個游標位置之間的時間差是否大於時間閾值。若時間差大於時間閾值,則回到步驟S201。處理器110可在將暫存在儲存媒體120中的移動軌跡清除後,再重新執行步驟S201。若時間差小於或等於時間閾值,則進入步驟S203。時間閾值可介於0.5秒至1秒之間。In step S202, the processor 110 may determine whether the time difference between two temporally adjacent cursor positions is greater than a time threshold. If the time difference is greater than the time threshold, return to step S201. The processor 110 may re-execute step S201 after clearing the movement trajectory temporarily stored in the storage medium 120 . If the time difference is less than or equal to the time threshold, step S203 is entered. The time threshold can be between 0.5 seconds and 1 second.

具體來說,假設對應於第一游標位置的第一時間點與對應於第二游標位置的第二時間點為相鄰的兩個取樣時間點。處理器110可響應於第一時間點與第二時間點之間的差值大於時間閾值而判斷回到步驟S201,並可響應於所述差值小於或等於時間閾值而決定執行步驟S203。當移動軌跡包含的時間上相鄰的兩個游標位置之間的時間差大於時間閾值時,代表這兩個游標位置可能對應於不同的操作而非對應於搖動滑鼠的連續動作。因此,處理器110可判斷使用者未搖動滑鼠,從而決定重新執行步驟S201。Specifically, it is assumed that the first time point corresponding to the first cursor position and the second time point corresponding to the second cursor position are two adjacent sampling time points. The processor 110 may determine to return to step S201 in response to the difference between the first time point and the second time point being greater than the time threshold, and may decide to perform step S203 in response to the difference being less than or equal to the time threshold. When the time difference between two temporally adjacent cursor positions included in the movement trajectory is greater than the time threshold, it means that the two cursor positions may correspond to different operations rather than to the continuous action of shaking the mouse. Therefore, the processor 110 can determine that the user has not shaken the mouse, and thus decides to re-execute step S201.

在步驟S203中,處理器110可將儲存移動軌跡至儲存媒體120,其中所述移動軌跡可用於判斷使用者是否搖動滑鼠。處理器110可根據移動軌跡計算多個投影向量。In step S203, the processor 110 may store the movement trajectory to the storage medium 120, where the movement trajectory may be used to determine whether the user shakes the mouse. The processor 110 may calculate multiple projection vectors according to the movement trajectory.

圖3A和3B根據本發明的一實施例繪示移動軌跡的示意圖。參照圖3A,假設第一游標位置為P1、第二游標位置為P2且第三游標位置為P3。處理器110可計算第一游標位置P1和第二游標位置P2在第一軸(例如:X軸)上的投影向量 ,並且計算第二游標位置P2和第三游標位置P3在第一軸上的投影向量 3A and 3B are schematic diagrams of movement trajectories according to an embodiment of the present invention. Referring to FIG. 3A , assume that the first cursor position is P1, the second cursor position is P2, and the third cursor position is P3. The processor 110 can calculate the projection vector of the first cursor position P1 and the second cursor position P2 on the first axis (for example: X axis) , and calculate the projection vector of the second cursor position P2 and the third cursor position P3 on the first axis .

回到圖2,在步驟S204中,處理器110可根據多個投影向量產生數量計數值。以圖3A為例,數量計數值的初始值可為零。處理器110可響應於投影向量 的方向(即:正X方向)與投影向量 的方向(即:負X方向)相反而增加對應於移動軌跡的數量計數值。 Returning to FIG. 2 , in step S204 , the processor 110 may generate a quantity count value according to a plurality of projection vectors. Taking FIG. 3A as an example, the initial value of the quantity count value may be zero. The processor 110 may respond to the projection vector direction (ie: positive X direction) and the projection vector The opposite direction (ie: negative X direction) increases the count value corresponding to the number of moving trajectories.

為了避免使用者手部的顫抖被誤判為搖動滑鼠操作,處理器110可根據距離閾值來區分對應於手部顫抖或搖動滑鼠操作的投影向量。在一實施例中,距離閾值的單位可為顯示解析度的像素(pixel)。舉例來說,距離閾值可等於60像素。在一實施例中,距離閾值的單位可為絕對長度。舉例來說,距離閾值可等於10公分。In order to prevent the user's hand trembling from being misjudged as a mouse shaking operation, the processor 110 may distinguish projection vectors corresponding to hand trembling or mouse shaking operations based on a distance threshold. In one embodiment, the unit of the distance threshold may be pixels of display resolution. For example, the distance threshold may be equal to 60 pixels. In one embodiment, the unit of the distance threshold may be an absolute length. For example, the distance threshold may be equal to 10 centimeters.

在一實施例中,處理器110可響應於不同方向的兩個投影向量的長度均大於距離閾值而增加數量計數值。參照圖3A,假設距離閾值為D。處理器110可響應於投影向量 和投影向量 兩者的長度均大於距離閾值D而增加數量計數值。 In one embodiment, the processor 110 may increase the number count value in response to the lengths of the two projection vectors in different directions being both greater than the distance threshold. Referring to FIG. 3A , assume that the distance threshold is D. The processor 110 may respond to the projection vector and projection vector The length of both is greater than the distance threshold D and the number count value is increased.

在一實施例中,處理器110可響應於不同方向的兩個投影向量中的較早的投影向量的長度大於距離閾值而增加數量計數值。參照圖3B,假設距離閾值為D。處理器110可響應於投影向量 和投影向量 中的較早的投影向量 的長度大於距離閾值D而增加數量計數值。投影向量 是否大於距離閾值D並不影響處理器110增加數量計數值。 In one embodiment, the processor 110 may increment the quantity count value in response to the length of an earlier of the two projection vectors in different directions being greater than the distance threshold. Referring to FIG. 3B , assume that the distance threshold is D. The processor 110 may respond to the projection vector and projection vector The earlier projection vector in The length is greater than the distance threshold D and the number count value is increased. Projection vector Whether it is greater than the distance threshold D does not affect the processor 110 to increase the quantity count value.

當影像訊號對應的顯示解析度越高時,圖形使用者介面中的滑鼠游標會縮小,且基於使用者操作而移動的滑鼠游標的移動距離也會縮短。如此,用於判斷搖動滑鼠操作的距離閾值D將需要被調整以適應新的顯示解析度。在一實施例中,處理器110可根據顯示解析度決定距離閾值D,其中顯示解析度可與距離閾值成正比。When the display resolution corresponding to the image signal is higher, the mouse cursor in the graphical user interface will be smaller, and the moving distance of the mouse cursor moved based on user operations will also be shortened. Thus, the distance threshold D used to determine the mouse shaking operation will need to be adjusted to adapt to the new display resolution. In one embodiment, the processor 110 may determine the distance threshold D according to the display resolution, where the display resolution may be proportional to the distance threshold.

回到圖2,在根據對應於移動軌跡的所有投影向量計算出數量計數值後,在步驟S205中,處理器110可判斷數量計數值是否大於數量閾值。若數量計數值大於數量閾值,代表使用者搖動滑鼠的次數足夠。據此,處理器110可決定執行步驟S206。若數量計數值小於或等於數量閾值,代表使用者搖動滑鼠的次數不足夠。據此,處理器110可決定執行步驟S206。Returning to FIG. 2 , after calculating the quantity count value based on all projection vectors corresponding to the movement trajectory, in step S205 , the processor 110 may determine whether the quantity count value is greater than the quantity threshold. If the quantity count value is greater than the quantity threshold, it means that the user has shaken the mouse enough times. Accordingly, the processor 110 may decide to perform step S206. If the quantity count value is less than or equal to the quantity threshold, it means that the user has not shaken the mouse enough times. Accordingly, the processor 110 may decide to perform step S206.

在步驟S206中,處理器110可改變輸出的滑鼠游標(例如:滑鼠游標的外型),藉以提示使用者滑鼠游標在顯示器上的位置。舉例來說,處理器110可放大滑鼠游標,以使滑鼠游標更加顯眼。In step S206, the processor 110 may change the output mouse cursor (eg, the appearance of the mouse cursor) to prompt the user for the position of the mouse cursor on the display. For example, the processor 110 may enlarge the mouse cursor to make the mouse cursor more visible.

在一實施例中,處理器110可響應於收發器140與多個顯示器通訊連接而改變輸出的滑鼠游標,藉以讓使用者能從多個顯示器中迅速地找出滑鼠游標所在的位置。In one embodiment, the processor 110 can change the output mouse cursor in response to the communication connection between the transceiver 140 and multiple displays, so that the user can quickly find the position of the mouse cursor from the multiple displays.

圖4根據本發明的另一實施例繪示一種控制滑鼠游標的方法的流程圖,其中所述方法可由如圖1所示的電子裝置100實施。在步驟S401中,取得對應於滑鼠游標的移動軌跡,其中移動軌跡包含第一游標位置、第二游標位置以及第三游標位置。在步驟S402中,計算第一游標位置和第二游標位置在第一軸上的第一投影向量,並且計算第二游標位置和第三游標位置在第一軸上的第二投影向量。在步驟S403中,響應於第一投影向量的第一方向與第二投影向量的第二方向相反,增加對應於移動軌跡的數量計數值。在步驟S404中,響應於數量計數值大於數量閾值,改變被輸出的滑鼠游標。FIG. 4 illustrates a flowchart of a method of controlling a mouse cursor according to another embodiment of the present invention, wherein the method can be implemented by the electronic device 100 shown in FIG. 1 . In step S401, a movement trajectory corresponding to the mouse cursor is obtained, where the movement trajectory includes a first cursor position, a second cursor position, and a third cursor position. In step S402, a first projection vector of the first cursor position and the second cursor position on the first axis is calculated, and a second projection vector of the second cursor position and the third cursor position on the first axis is calculated. In step S403, in response to the first direction of the first projection vector being opposite to the second direction of the second projection vector, the number count value corresponding to the movement trajectory is increased. In step S404, in response to the quantity count being greater than the quantity threshold, the output mouse cursor is changed.

綜上所述,本發明的電子裝置可根據滑鼠游標的移動軌跡判斷是否改變滑鼠游標以提示使用者滑鼠游標的位置。若使用者搖動滑鼠的次數大於數量閾值,則電子裝置可改變滑鼠游標。此外,電子裝置還可根據滑鼠被搖動時的移動距離與距離閾值的比較結果判斷該次搖動是否有效,避免電子裝置將使用者的手部顫抖誤判為搖動滑鼠。另一方面,電子裝置可根據顯示解析度調整距離閾值或取樣移動軌跡的方法,從而自動最佳化控制滑鼠游標的方法以適應不同規格的螢幕。電子裝置還可以在使用者使用多螢幕配置時,改變滑鼠游標以幫助使用者在多個螢幕中迅速地找出滑鼠游標的所在。In summary, the electronic device of the present invention can determine whether to change the mouse cursor according to the movement trajectory of the mouse cursor to prompt the user for the position of the mouse cursor. If the number of times the user shakes the mouse is greater than the quantity threshold, the electronic device can change the mouse cursor. In addition, the electronic device can also determine whether the shaking is effective based on the comparison between the moving distance of the mouse when it is shaken and the distance threshold, thereby preventing the electronic device from misjudging the user's hand trembling as shaking the mouse. On the other hand, the electronic device can adjust the distance threshold or the method of sampling movement trajectories according to the display resolution, thereby automatically optimizing the method of controlling the mouse cursor to adapt to screens of different specifications. The electronic device can also change the mouse cursor when the user uses a multi-screen configuration to help the user quickly find the location of the mouse cursor on multiple screens.

100:電子裝置 110:處理器 120:儲存媒體 130、140:收發器 P1、P2、P3:游標位置 :投影向量 S201、S202、S203、S204、S205、S206、S401、S402、S403、S404:步驟 100: Electronic device 110: Processor 120: Storage media 130, 140: Transceivers P1, P2, P3: Cursor position , : Projection vectors S201, S202, S203, S204, S205, S206, S401, S402, S403, S404: Steps

圖1根據本發明的一實施例繪示一種控制滑鼠游標的電子裝置的示意圖。 圖2根據本發明的一實施例繪示一種控制滑鼠游標的方法的流程圖。 圖3A和3B根據本發明的一實施例繪示移動軌跡的示意圖。 圖4根據本發明的另一實施例繪示一種控制滑鼠游標的方法的流程圖。 FIG. 1 is a schematic diagram of an electronic device for controlling a mouse cursor according to an embodiment of the present invention. FIG. 2 illustrates a flowchart of a method of controlling a mouse cursor according to an embodiment of the present invention. 3A and 3B are schematic diagrams of movement trajectories according to an embodiment of the present invention. FIG. 4 illustrates a flowchart of a method of controlling a mouse cursor according to another embodiment of the present invention.

S401、S402、S403、S404:步驟 S401, S402, S403, S404: steps

Claims (10)

一種控制滑鼠游標的電子裝置,包括:第一收發器,取得對應於所述滑鼠游標的移動軌跡,其中所述移動軌跡包括第一游標位置、第二游標位置以及第三游標位置;第二收發器,根據顯示解析度輸出所述滑鼠游標;以及處理器,耦接所述第一收發器和所述第二收發器,其中所述處理器經配置以執行:根據所述顯示解析度決定距離閾值;計算所述第一游標位置和所述第二游標位置在第一軸上的第一投影向量,並且計算所述第二游標位置和所述第三游標位置在所述第一軸上的第二投影向量;響應於所述第一投影向量的第一方向與所述第二投影向量的第二方向相反以及所述第一投影向量和所述第二投影向量大於所述距離閾值,增加對應於所述移動軌跡的數量計數值;以及響應於所述數量計數值大於數量閾值,改變所輸出的所述滑鼠游標。 An electronic device for controlling a mouse cursor, including: a first transceiver to obtain a movement trajectory corresponding to the mouse cursor, wherein the movement trajectory includes a first cursor position, a second cursor position, and a third cursor position; two transceivers, outputting the mouse cursor according to the display resolution; and a processor, coupled to the first transceiver and the second transceiver, wherein the processor is configured to perform: according to the display resolution determine the distance threshold; calculate the first projection vector of the first cursor position and the second cursor position on the first axis, and calculate the second cursor position and the third cursor position on the first axis a second projection vector on the axis; in response to the first direction of the first projection vector being opposite the second direction of the second projection vector and the first projection vector and the second projection vector being greater than the distance a threshold value, increasing a quantity count value corresponding to the movement trajectory; and in response to the quantity count value being greater than a quantity threshold value, changing the output mouse cursor. 如請求項1所述的電子裝置,其中所述第一游標位置對應於第一時間點,所述第二游標位置對應於晚於所述第一時間點的第二時間點,並且所述第三游標位置對應於晚於所述第二時間點的第三時間點,其中所述處理器更經配置以執行:響應於所述第一投影向量的長度大於距離閾值,增加所述數 量計數值。 The electronic device of claim 1, wherein the first cursor position corresponds to a first time point, the second cursor position corresponds to a second time point later than the first time point, and the third cursor position corresponds to a second time point later than the first time point. Three cursor positions correspond to a third time point later than the second time point, wherein the processor is further configured to: in response to a length of the first projection vector being greater than a distance threshold, increasing the number Quantity value. 如請求項1所述的電子裝置,其中所述顯示解析度與所述距離閾值成正比。 The electronic device according to claim 1, wherein the display resolution is proportional to the distance threshold. 如請求項1所述的電子裝置,其中所述第一游標位置對應於第一時間點,並且所述第二游標位置對應於第二時間點,其中所述第一時間點與所述第二時間點相鄰,其中所述處理器更經配置以執行:響應於所述第一時間點與所述第二時間點之間的差值小於或等於時間閾值,根據所述第一游標位置和所述第二游標位置計算所述第一投影向量。 The electronic device of claim 1, wherein the first cursor position corresponds to a first time point, and the second cursor position corresponds to a second time point, wherein the first time point is the same as the second time point. The time points are adjacent, wherein the processor is further configured to perform: in response to the difference between the first time point and the second time point being less than or equal to a time threshold, according to the first cursor position and The second cursor position calculates the first projection vector. 如請求項1所述的電子裝置,其中所述處理器更經配置以執行:根據預設游標位置數量取樣所述移動軌跡。 The electronic device of claim 1, wherein the processor is further configured to perform: sampling the movement trajectory according to a preset number of cursor positions. 如請求項5所述的電子裝置,其中所述處理器更經配置以執行:根據顯示解析度輸出所述滑鼠游標;以及根據所述顯示解析度決定所述預設游標位置數量。 The electronic device of claim 5, wherein the processor is further configured to: output the mouse cursor according to the display resolution; and determine the preset number of cursor positions according to the display resolution. 如請求項5所述的電子裝置,其中所述顯示解析度與所述預設游標位置數量成正比。 The electronic device according to claim 5, wherein the display resolution is proportional to the number of preset cursor positions. 如請求項1所述的電子裝置,其中所述處理器更經配置以執行:響應於所述第二收發器與多個顯示器通訊連接,改變所輸出 的所述滑鼠游標。 The electronic device of claim 1, wherein the processor is further configured to perform: in response to the second transceiver communicating with a plurality of displays, changing the output of the mouse cursor. 如請求項1所述的電子裝置,其中所述處理器更經配置以執行:放大所述滑鼠游標以改變所輸出的所述滑鼠游標。 The electronic device of claim 1, wherein the processor is further configured to perform: enlarging the mouse cursor to change the output mouse cursor. 一種控制滑鼠游標的方法,包括:取得對應於所述滑鼠游標的移動軌跡,其中所述移動軌跡包括第一游標位置、第二游標位置以及第三游標位置;根據顯示解析度輸出所述滑鼠游標;根據所述顯示解析度決定距離閾值;計算所述第一游標位置和所述第二游標位置在第一軸上的第一投影向量,並且計算所述第二游標位置和所述第三游標位置在所述第一軸上的第二投影向量;響應於所述第一投影向量的第一方向與所述第二投影向量的第二方向相反以及所述第一投影向量和所述第二投影向量大於所述距離閾值,增加對應於所述移動軌跡的數量計數值;以及響應於所述數量計數值大於數量閾值,改變被輸出的所述滑鼠游標。 A method for controlling a mouse cursor, including: obtaining a movement trajectory corresponding to the mouse cursor, wherein the movement trajectory includes a first cursor position, a second cursor position, and a third cursor position; and outputting the said movement trajectory according to the display resolution. Mouse cursor; determine a distance threshold according to the display resolution; calculate the first projection vector of the first cursor position and the second cursor position on the first axis, and calculate the second cursor position and the a second projection vector of a third cursor position on the first axis; in response to the first direction of the first projection vector being opposite to the second direction of the second projection vector and the sum of the first projection vector and the The second projection vector is greater than the distance threshold, increasing the number count value corresponding to the movement trajectory; and in response to the number count value being greater than the number threshold, changing the output mouse cursor.
TW111120268A 2022-05-31 2022-05-31 Electronic device and method of controlling mouse cursor TWI815487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111120268A TWI815487B (en) 2022-05-31 2022-05-31 Electronic device and method of controlling mouse cursor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111120268A TWI815487B (en) 2022-05-31 2022-05-31 Electronic device and method of controlling mouse cursor

Publications (2)

Publication Number Publication Date
TWI815487B true TWI815487B (en) 2023-09-11
TW202349183A TW202349183A (en) 2023-12-16

Family

ID=88966050

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111120268A TWI815487B (en) 2022-05-31 2022-05-31 Electronic device and method of controlling mouse cursor

Country Status (1)

Country Link
TW (1) TWI815487B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200837611A (en) * 2007-03-02 2008-09-16 Kye Systems Corp Computer input device, cursor control device capable adjusting resolution and method for controlling same
CN108829278A (en) * 2018-08-24 2018-11-16 京东方科技集团股份有限公司 The control method and device of mouse, mouse
TW201921233A (en) * 2018-05-28 2019-06-01 英屬開曼群島商敦泰電子有限公司 Mouse control method and mouse
US20190179428A1 (en) * 2013-06-04 2019-06-13 Wen-Chieh Geoffrey Lee High Resolution and High Sensitivity Three-Dimensional (3D) Cursor Maneuvering Device
CN110325946A (en) * 2017-02-17 2019-10-11 雷蛇(亚太)私人有限公司 Computer mouse, computer mouse configuration and mouse pad configuration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200837611A (en) * 2007-03-02 2008-09-16 Kye Systems Corp Computer input device, cursor control device capable adjusting resolution and method for controlling same
US20190179428A1 (en) * 2013-06-04 2019-06-13 Wen-Chieh Geoffrey Lee High Resolution and High Sensitivity Three-Dimensional (3D) Cursor Maneuvering Device
CN110325946A (en) * 2017-02-17 2019-10-11 雷蛇(亚太)私人有限公司 Computer mouse, computer mouse configuration and mouse pad configuration
TW201921233A (en) * 2018-05-28 2019-06-01 英屬開曼群島商敦泰電子有限公司 Mouse control method and mouse
CN108829278A (en) * 2018-08-24 2018-11-16 京东方科技集团股份有限公司 The control method and device of mouse, mouse

Also Published As

Publication number Publication date
TW202349183A (en) 2023-12-16

Similar Documents

Publication Publication Date Title
KR102664705B1 (en) Electronic device and method for modifying magnification of image using multiple cameras
US8094204B2 (en) Image movement based device control method, program, and apparatus
JP6522343B2 (en) Pan animation
US20100300771A1 (en) Information processing apparatus, information processing method, and program
US9632626B2 (en) Apparatuses and methods for providing a 3D man-machine interface (MMI)
US10318152B2 (en) Modifying key size on a touch screen based on fingertip location
WO2017059734A1 (en) Image zoom in/out method and electronic device
US20150206002A1 (en) Object tracking in a video stream
US10979700B2 (en) Display control apparatus and control method
WO2019227309A1 (en) Tracking photographing method and apparatus, and storage medium
JP5220157B2 (en) Information processing apparatus, control method therefor, program, and storage medium
KR20110068795A (en) Method and apparatus for processing user interface in image processor
US10019919B2 (en) Processing apparatus, command generation method and storage medium
TWI726252B (en) Operation method for multi-monitor and electronic system using the same
TWI815487B (en) Electronic device and method of controlling mouse cursor
CN112905132B (en) Screen projection method and device
US20180059811A1 (en) Display control device, display control method, and recording medium
CN114567803B (en) Non-contact control system
JP2016076853A (en) Image processing apparatus, image processing method, and imaging apparatus
TW201405443A (en) Gesture input systems and methods
US20230177862A1 (en) Method of tracking input sign for extended reality and system using the same
TWI408488B (en) Interactive projection system and system control method thereof
US20230274509A1 (en) Method and device for destination selection of virtual scenes
US11907415B2 (en) Method, electronic device, and non-transitory computer readable storage medium for interacting with virtual reality environment
TWI736039B (en) Expansion control device and image control method