summaryrefslogtreecommitdiff
path: root/sys/dev/atkbdc
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>1999-05-09 05:00:19 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>1999-05-09 05:00:19 +0000
commit194da42d48844dceca8dde50d780fdefa441f1fe (patch)
tree7e9cee27e60cec664700c021226cebe8fa9b0880 /sys/dev/atkbdc
parent57600c2385652fd62f9479a544af9edb5a1b722d (diff)
downloadsrc-test2-194da42d48844dceca8dde50d780fdefa441f1fe.tar.gz
src-test2-194da42d48844dceca8dde50d780fdefa441f1fe.zip
Notes
Diffstat (limited to 'sys/dev/atkbdc')
-rw-r--r--sys/dev/atkbdc/atkbd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/atkbdc/atkbd.c b/sys/dev/atkbdc/atkbd.c
index 4f7b8d6b1a24..4a4ac53485e9 100644
--- a/sys/dev/atkbdc/atkbd.c
+++ b/sys/dev/atkbdc/atkbd.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: atkbd.c,v 1.6 1999/04/16 21:21:55 peter Exp $
+ * $Id: atkbd.c,v 1.7 1999/05/09 04:59:24 yokota Exp $
*/
#include "atkbd.h"
@@ -826,23 +826,23 @@ next_code:
/* compose a character code */
if (state->ks_flags & COMPOSE) {
- switch (scancode) {
+ switch (keycode) {
/* key pressed, process it */
case 0x47: case 0x48: case 0x49: /* keypad 7,8,9 */
state->ks_composed_char *= 10;
- state->ks_composed_char += scancode - 0x40;
+ state->ks_composed_char += keycode - 0x40;
if (state->ks_composed_char > UCHAR_MAX)
return ERRKEY;
goto next_code;
case 0x4B: case 0x4C: case 0x4D: /* keypad 4,5,6 */
state->ks_composed_char *= 10;
- state->ks_composed_char += scancode - 0x47;
+ state->ks_composed_char += keycode - 0x47;
if (state->ks_composed_char > UCHAR_MAX)
return ERRKEY;
goto next_code;
case 0x4F: case 0x50: case 0x51: /* keypad 1,2,3 */
state->ks_composed_char *= 10;
- state->ks_composed_char += scancode - 0x4E;
+ state->ks_composed_char += keycode - 0x4E;
if (state->ks_composed_char > UCHAR_MAX)
return ERRKEY;
goto next_code;