1. Technical Field
The present disclosure relates to an input device.
2. Description of Related Art
When using a dancing mat in combination with a computer with a display, a user needs to follow prompt information generated by the computer to find the corresponding key and press the corresponding key quickly. It is complicated and difficult for the user to learn.
Therefore, there is room for improvement in the art.
Many aspects of the embodiments can be better understood with references to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout two views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
Referring to
The input device 100 includes a plurality of keys 120 each having an exclusive input key code, a plurality of illumination units 140, a plurality of notification units 160 and a plurality of detection units 180. Each of the keys 120 corresponds to an illumination unit 140, a notification unit 160 and a detection unit 180. The illumination unit 140 is used for emitting light. The illumination unit 140 may be an LED. The keys 120 may be transparent keys or translucent keys allowing light emitted by the illumination unit 140 to pass there through. The notification unit 160 may be a vibration motor. The detection unit 180 detects whether the keys 120 being deactivated, and generates a corresponding input key code.
The electronic device 200 includes an execution unit 210, a communication unit 230, a determination unit 240, a first comparison unit 250, a timing unit 260 and a second comparison unit 280.
The execution unit 210 generates a preset key code and an illumination command as driven by an application. The execution unit 210 sends the preset key code to the first comparison unit 250. The communication unit 230 transmits the illumination command to the illumination unit 140 and the key 120 which the input key code is the same with the preset key code is lit.
The communication unit 230 also transmits the input key code to the determination unit 240. The determination unit 240 determines whether an input key code is received, and transmits the input key code to the first comparison unit 250. The first comparison unit 250 compares the preset key code and the input key code, and if the input key code and the preset key code are the same, the right key is activated and the first comparison unit 250 generates a stop signal to the corresponding illumination unit 140 through the communication unit 230 and the illumination unit 140 stops emitting light. If the input key code and the preset key code are different, the erroneous key is activated and the comparison unit 250 generates an error notification to the notification unit 160 through the communication unit 230.
The notification unit 160 generates a notification in response to error notification. In the embodiment, the notification unit 160 generates a vibration, but alternatively issues an image, audio, or video notification.
If the input key code is not received, the determination unit 240 sends a timing signal to the timing unit 260 which measures non-operating duration for the second comparison unit 280.
The second comparison unit 280 houses a predetermined non-operating duration value, which it compares with the received non-operating duration, and if the received non-operating duration is at least the predetermined non-operating duration, it determined that an erroneous key has been activated, and the comparison unit 280 sends an error notification to the notification unit 160 through the communication unit 230. The notification unit 160 according to the key 120 which is activated issues a notification in response to error notification. In the embodiment, the predetermined non-operating duration value is equal to the length of time required for the execution unit 210 to generate a preset key code.
In operation of input device 100 as disclose, in combination with the electronic device 200, when the execution unit 210 generates a preset key code, the illumination unit 140 illuminates the key 120 matching the preset key code.
Referring also to
In step S201, executing a program and generating a preset key code and an illumination command. The program may be a dancing game.
In step S202, the corresponding illumination unit 140 emits light. The keys 120 may be transparent keys or translucent keys allowing light emitted by the illumination unit 140 to pass there through.
In step S203, detecting whether an input key code is generated. If it is determined that a key code is generated, the step S204 is implemented. If it is determined that no key code is generated, the step S206 is implemented.
In step S204, comparing whether the preset key code and the input key code are the same code. If it is determined that the preset key code and the input key code are the same code, the right key is activated and the step S205 is implemented. If it determined that the preset key code and the input key code are different, an erroneous key is activated and the step S208 is implemented.
In step S205, the corresponding illumination unit 140 stops emitting light, the procedure is ended.
In step S206, accumulating the non-operating time.
In step S207, comparing the non-operating time and a predetermined non-operating duration. If it determined that the non-operating time is at least the non-operating duration, step S207 is implemented. If it determined that the non-operating time is at least the non-operating duration, the step S208 is implemented.
In step S208, the corresponding notification unit 160 issues a notification. The notification is a vibration, but alternatively issues an image, audio, or video notification, the procedure is ended.
In the disclosed input system, the electronic device identifies a requisite key, which can then be quickly and easily activated. In the event of an erroneous activation the input device issues a prompt notification.
It is to be understood, even though information and advantages of the present embodiments have been set forth in the foregoing description, together with details of the structures and functions of the present embodiments, the disclosure is illustrative only; and that changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the present embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
99101866 | Jan 2010 | TW | national |