This application claims the benefit of Taiwan application Serial No. 100134870, filed Sep. 27, 2011, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to a method and a computer system for keystroke event notification, and more particularly to a method using pressure-sensitive key and a computer system for keystroke event notification.
2. Description of the Related Art
As the computer and its applications become more and more popular, users have a need regarding how to input data to the computer. The research personnel have been dedicated to providing various input devices. Of the various types of input devices, keyboard is a main input device often used by the users. The user can input various types of data (such as letters, symbols, cursors, windows, system operation signals or various control signals) to the computer via a keyboard.
One method for increasing the data volume that can be inputted via a keyboard is achieved by increasing the number of keys contained in a keyboard. For example, some specific keys such as function keys are added to the keyboard. However, such method has operation problem due to the increase in the number of keys. For example, too many keys will make the keys too small to recognize or too far to reach, and the user will be bothered by remembering the functions of individual keys. Also, the cost of the keyboard will be increased.
Another method for increasing the data volume that can be inputted via a keyboard is achieved by changing the original function of the keys by some specific keys. That is, the original function of a key will change when the key is combined with a specific key. Such specific keys are also referred as composite keys or modifier keys. For example, the function key Fn with “Fn” printed thereon is a modifier key. When the function key Fn and some other function key (such as the F4 key) are pressed at the same time, the original function of the function key is modified and an alternate function is generated. However, it is indeed inconvenient for the user to press two keys at the same time.
Therefore, how to increase the data volume that can be inputted via a keyboard has become a prominent task for the industries.
The invention is directed to a method and a computer system for keystroke event notification, the method of assigning different functions to a pressure-sensitive key in response to a pressure applied on the pressure-sensitive key increases the data volume that can be inputted via a keyboard.
According to one embodiment of the present invention, a keystroke event notification method is provided. The method includes the following steps. A keyboard controller scans a number of keys contained in a keyboard. The keys include at least one pressure-sensitive key and at least two key-functions are assigned to each of the at least one pressure-sensitive key in response to a pressure applied on the pressure-sensitive key. When the keyboard controller scans one of the pressure-sensitive keys, the keyboard controller measures the pressure applied on the pressure-sensitive key. The keyboard controller uses at least two pressure thresholds to determine a level of the measured pressure. The keyboard controller controls a storage device containing a source code of a basic input/output system (BIOS) to deliver a keystroke event on the basis of the determination result, so as to activate one of the key-functions of the pressure-sensitive key.
According to an alternate embodiment of the present invention, a computer system including a keyboard, a keyboard controller, and a storage device is provided. The keyboard comprises a number of keys. The keys include at least one pressure-sensitive key and at least two key-functions are assigned to each of the at least one pressure-sensitive key in response to a pressure applied on the pressure-sensitive key. The keyboard controller is operationally connected to the keyboard. The keyboard controller scans the keys. When the keyboard controller scans one of the pressure-sensitive keys, the keyboard controller measures the pressure applied on the pressure-sensitive key. The keyboard controller further uses at least two pressure thresholds to determine a level of the measured pressure. The storage device contains a source code of a basic input/output system (BIOS). The storage device is controlled by the keyboard controller to deliver a keystroke event on the basis of the determination result, so as to activate a corresponding key-function of the pressure-sensitive key.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiment(s). The following description is made with reference to the accompanying drawings.
A method and a computer system for keystroke event notification are disclosed below in a number of embodiments. In some embodiments, the method of assigning different functions to a pressure-sensitive key in response to a pressure applied on the pressure-sensitive key increases the data volume that can be inputted via a keyboard.
Referring to
By dividing the pressure applied on the pressure-sensitive key into different levels, at least more than two functions can be assigned to a pressure-sensitive key. A corresponding key-function of the pressure-sensitive key can be activated according to the level of the pressure. Thus, the pressure-sensitive key can generate different functions according to the level of the applied pressure thereto, and the data volume that can be inputted via a keyboard is increased accordingly.
Referring to
Referring to
The keyboard 210 includes a number of keys 211. The keys 211 include at least one pressure-sensitive key. For example, as indicated in
At least two key-functions are assigned to each pressure-sensitive key contained in the keyboard 210 in response to a pressure applied on the pressure-sensitive key. For example, as indicated in
The keyboard controller 220 is operationally connected to the keyboard 210. The keyboard controller 220, connected to the keyboard 210 such as via a connector, such as a Deutsche Industrie Norm (DIN) connector, a PS/2 connector, a universal serial bus (USB) connector, or an equivalent connector. The keyboard controller 220 can be realized by such as an embedded controller containing a source code of an embedded system.
The keyboard controller 220 scans the keys 211. The keyboard controller 220 such as sequentially scans the keys 211. For example, as indicated in
The keyboard controller 220 measures the pressure applied on the pressure-sensitive key on scanning one of the pressure-sensitive keys. The keyboard controller 220 measures the pressure applied on the pressure-sensitive key according to the resistance varying with the pressure applied on the pressure-sensitive key and the charged current/discharged current of the capacitor.
The process of measuring the pressure applied on the pressure-sensitive key by the keyboard controller 220 in the course of scanning the pressure-sensitive keys is disclosed below. As indicated in
At time point T1, the keyboard controller 220 enables the control end A-1 of the pressure-sensitive key 211A for allowing the voltage Vc of the capacitor C to vary with the pressure-sensitive key 211A. The keyboard controller 220 such as outputs a low-level signal via an output pin GPO1 to enable the control end A-1 of the pressure-sensitive key 211A. When the control end A-1 of the pressure-sensitive key 211A is enabled, the two ends A-2 and A-3 of the pressure-sensitive key 211A are equivalent to a resistor varying with the pressure applied on the pressure-sensitive key 211A. Thus, the charged current/discharged current of the capacitor C flows to the keyboard controller 220 via the resistor, and the voltage value Vc is decreased correspondingly. In the present example, the larger the pressure applied on the pressure-sensitive key 211A, the larger the resistance, and the lower the voltage Vc is after the capacitor C is discharged.
At the time point T2 following the time point T1, the keyboard controller 220 measures the voltage Vc of the capacitor C to represent the pressure applied on the pressure-sensitive key 211A. In other words, since the capacitor C is discharged via the variable resistor of the pressure-sensitive key 211A, the level of the voltage Vc after the current is discharged is related to the pressure applied on the pressure-sensitive key 211A. For example, as indicated in
At time point T2, the keyboard controller 220 disables the control end A-1 of the pressure-sensitive key 211A to avoid the voltage Vc of the capacitor C varying with the pressure applied on the pressure applied on the pressure-sensitive key 211A. The keyboard controller 220 outputs a light-level signal via an output pin GPO1 to disable the control end A-1 of the pressure-sensitive key 211A. When the control end A-1 of the pressure-sensitive key 211A is disabled, the two ends A-2 and A-3 of the pressure-sensitive key 211A are in a short-circuited state with low resistance. Thus, the discharged current of the capacitor C stops flowing to the keyboard controller 220 via the two ends A-2 and A-3 of the pressure-sensitive key 211A.
In some embodiments, the keyboard controller 220 uses at least two pressure thresholds to determine a level of the measured pressure. For example, as indicated in
Three pressure thresholds are used as an exemplification of the invention. However, the invention is not limited to the above exemplification. In other embodiment, the keyboard controller 220 can define three or more than three pressure levels with two or more than two pressure thresholds, so as to define at least three states (the state in which the key is not pressed, the state in which the key is moderately pressed and the state in which the key is heavily pressed respectively) of the pressure-sensitive key (not being pressed, being moderately pressed, and being heavily pressed respectively). Thus, two different key-functions can be defined according to two pressing states of the pressure-sensitive key (excluding the state in which the key is not pressed). Thus, the data volume that can be inputted via a keyboard is increased.
In some embodiments, with respect to each pressure level, the keyboard controller 220 can store a corresponding code or digit such as 1, 2, 3, or other user-defined digit in the memory 250 and notify the storage device 230 of the BIOS 232 to read the memory 250. In an alternate embodiment, the keyboard controller 220 can directly store the read voltage Vc to the memory 250 and notify the storage device 230 of the BIOS 232 to read memory 250. Then, the storage device 230 uses at least two pressure thresholds to determine which level the read voltage to.
Moreover, the keyboard controller 220 waits for a period of time starting from the time point T2, such as starting from the time point T2 to the time point T3, for allowing the voltage Vc of the capacitor C to return to its initial value. In practical application, the required waiting time can be obtained from the time constants of the capacitor C and the resistor R. After the voltage Vc of the capacitor C to return to its initial value, the keyboard controller 200 scans a next pressure-sensitive key and measures the voltage Vc of the capacitor C again to represent the pressure applied on the pressure-sensitive key.
Referring to
In some embodiments, the storage device 230 delivers the keystroke event to another storage device 240, which has a source code of an operating system 242 and a source code of an application program 244. The keystroke event is such as a windows management instrumentation (WMI) event. The keystroke event is delivered to the application program 244 via the operating system 242, such that the application program 244 activates a corresponding key-function.
Referring to
In step S602, the computer system 200 receives a user-defined information. The user-definable information, such as the information for setting the function of one of the pressure-sensitive keys, can be sent to the storage device 230 of a BIOS via the communication interface 242. Then, the storage device 230 delivers the event to the keyboard controller 220 to inform the user-definable key-function assigned to the pressure-sensitive key. Thus, the key-function required for the user to define the function is provided, and the convenience is further improved.
In step S604, the keyboard controller 220 detects whether a triggering signal exists. The triggering signal, such as a signal emitted from the keyboard 210, activates the pressure-sensitive key. The triggering signal is such as a keystroke signal of one single key 211 or a combination of some of the keys 211. If the keyboard controller 220 does not detect any triggering signal, then the method proceeds to step S620, the keyboard controller 220 cancels the function of the pressure-sensitive key and scans the keys. If the keyboard controller 220 detects a triggering signal, then the method proceeds to step S606.
In step S606, the keyboard controller 220 activates the pressure-sensitive key and scans the keys 211.
In step S608, the keyboard controller 220 determines whether the scanned key is a pressure-sensitive key. If the scanned key is a pressure-sensitive key, then the method proceeds to step S610. If the scanned key is not a pressure-sensitive key, then the method proceeds to step S618.
In step S610, the keyboard controller 220 enables the control end of the pressure-sensitive key.
In step S612, the keyboard controller 220 reads the voltage representing the pressure applied on the pressure-sensitive key from the capacitor.
In step S614, the keyboard controller 220 determines the level of the pressure applied on the pressure-sensitive key on the basis of the voltage value.
In step S616, the keyboard controller 220 disables the control end of pressure-sensitive key.
In step S618, the keyboard controller 220 scans a next key. Following step S618, the method returns to step S608.
In some exemplary applications, the method and the computer system for keystroke event notification are such as used in computer games, and the function of a pressure-sensitive key may include three functions namely, walking, brisk walking, and running. In some exemplary applications, the method and the computer system for keystroke event notification are such as used in the adjustment of the volume of the sound or the brightness of the panel such that different pressure levels correspond to different levels of the sound or brightness. However, the invention is not limited to above exemplifications, and anyone who is skilled in the technology of the method and the computer system for keystroke event notification of the invention will understand various implementations in practical application.
According to the method and the computer system for keystroke event notification disclosed in the above embodiments of the invention, the method of assigning different functions to a pressure-sensitive key in response to a pressure applied on the pressure-sensitive key increases the data volume that can be inputted via a keyboard. In comparison to an ordinary keyboard in which one key normally has two states, (the state in which the key is pressed and the state in which the key is not pressed), the measurement of the pressure applied on the key enables one pressure-sensitive key to have at least three states, (the state in which the key is not pressed, the state in which the key is moderately pressed and the state in which the key is heavily pressed respectively). Thus, two different key-functions can be defined according to two pressing states of the pressure-sensitive key (excluding the state in which the key is not pressed). Thus, the data volume that can be inputted via a keyboard is increased.
While the invention has been described by way of example and in terms of the preferred embodiment (s), it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
100134870 | Sep 2011 | TW | national |