BACKGROUND OF THE INVENTION
1. Technical Field
The invention relates to movement of cursor, particularly to adjustment of cursor speed shown on a screen of handheld computer.
2. Related Art
Some users may use a docking station to connect a handheld computer, such as a smartphone or tablet computer, with an input device, such as a mouse or keyboard. Usually, a wireless connection, such as BLUETOOTH, is utilized between the docking station and the handheld computer. The input device is linked to the docking station through a wired connection, such as USB. This arrangement allows users to operate the handheld computer through the external input device.
When a mouse serves as an input device, however, the speed of cursor movement will be a real problem. Because the speed of cursor movement depends on resolutions of the mouse and display of the handheld computer, the speed of cursor movement must be adjusted according to every combination of the mouse and handheld computer. The cursor will move too fast or slowly if the cursor speed is not adjusted to a proper status. This will cause inconvenience to users. However, there is no solution in the market.
SUMMARY OF THE INVENTION
An object of the invention is to provide a method for controlling cursor speed when using a mouse to move a cursor on a handheld computer through a docking station, which can allow users to automatically control cursor movement speed.
To accomplish the above object, the method of the invention includes the steps of: a) wiredly connecting a mouse to the docking station; b) connecting the docking station to a handheld computer; c) showing a cursor on the handheld computer; d) the handheld computer obtaining a model name of the mouse; e) searching internet for specification of the model name of the mouse; f) selecting a parameter from the internet according to the model name; g) determining a numeral value by a formula with the parameter; and h) moving the cursor according to the numeral value.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a schematic view of hardware arrangement of a handheld computer, a docking station and a mouse of the invention; and
FIG. 2 is a flowchart of the method of the invention.
DETAILED DESCRIPTION OF THE INVENTION
Please refer to FIG. 1. A docking station 1 is connected to a handheld computer 3 such as a smartphone or tablet computer. The connection between the docking station 1 and the handheld computer 3 can be wireless or wired. The wired connection may be the USB (Universal Serial Bus) standard. The wireless connection between the docking station 1 and the handheld computer 3 may be the BLUETOOTH standard. Two BLUETOOTH profiles are used in the wireless connection, namely, the BLUETOOTH-HID (Human Interface Device Profile) and the BLUETOOTH-SPP (Serial Port Profile). An input device, such as a mouse 2 is linked to the docking station 1 through a wired connection, such as the USB (Universal Serial Bus) standard. After the wired and wireless connections have been completed, a cursor 311 will be shown on a display 31 of the handheld computer 3, and the cursor 311 will be moved by the mouse 2 by means of the BLUETOOTH-HID profile.
FIG. 2 shows a flowchart of the invention. In step S1, the mouse 2 is wiredly connected to the docking station 1. In step S2, the handheld computer 3 is connected to the docking station 1. As abovementioned, such a connection can be wired or wireless. In step S3, a cursor 311 is operably shown on the handheld computer 3. As a result, the cursor 311 can be moved by the mouse 2. In step S4, the handheld computer 3 obtains a model name of the mouse 2 through the docking station 1. In detail, the docking station 1 asks the mouse 2 to obtain a model name thereof and then the docking station 1 sends the model name obtained to the handheld computer 3. The data delivery in the wired connection between the docking station 1 and the handheld computer 3 uses the USB path, while the data delivery in the wireless connection between the docking station 1 and the handheld computer 3 uses the BLUETOOTH-SPP (Serial Port Profile) path. In step S5, the handheld computer 3 runs a software application to search internet for specification of the model name of the mouse. In step S6, the application automatically selects a parameter from the internet according to the model name. The steps S5 and S6 are automatically performed by the docking station 1 and the handheld computer 3 without a user's operation. As an example, the parameter may be an integer R between 0 and 10000. In step S7, a numeral value is determined by a formula with the parameter. For example, the formula may be (x·R/100) and (y·R/100), where x and y stand for X-ordinate and Y-ordinate, respectively. After the step S7, the cursor 311 is moved according to the value in step S8. The numeral value is a coefficient of motion of the cursor 311 so as to accelerate or decelerate the motion of the cursor 311.
It will be appreciated by persons skilled in the art that the above embodiment has been described by way of example only and not in any limitative sense, and that various alterations and modifications are possible without departure from the scope of the invention as defined by the appended claims.