Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Correct comment in FORCE_FUNCTION_KEYS c...
details: https://anonhg.NetBSD.org/src/rev/b468bd593ad0
branches: trunk
changeset: 550039:b468bd593ad0
user: nathanw <nathanw%NetBSD.org@localhost>
date: Mon Jul 28 13:21:29 2003 +0000
description:
Correct comment in FORCE_FUNCTION_KEYS code; the 0x0b (eject) button is
on the f12 key, not f7 (the keycode value was correct for f12 already).
diffstat:
sys/arch/macppc/dev/abtn.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (50 lines):
diff -r 238476dd6a9f -r b468bd593ad0 sys/arch/macppc/dev/abtn.c
--- a/sys/arch/macppc/dev/abtn.c Mon Jul 28 12:33:42 2003 +0000
+++ b/sys/arch/macppc/dev/abtn.c Mon Jul 28 13:21:29 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: abtn.c,v 1.9 2003/07/24 21:01:39 nathanw Exp $ */
+/* $NetBSD: abtn.c,v 1.10 2003/07/28 13:21:29 nathanw Exp $ */
/*-
* Copyright (C) 1999 Tsubai Masanari. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: abtn.c,v 1.9 2003/07/24 21:01:39 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: abtn.c,v 1.10 2003/07/28 13:21:29 nathanw Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -127,25 +127,25 @@
#ifdef FORCE_FUNCTION_KEYS
switch (cmd & 0x7f) {
- case 0xa: /* f1 */
+ case 0x0a: /* f1 */
key = 122;
break;
- case 0x9: /* f2 */
+ case 0x09: /* f2 */
key = 120;
break;
- case 0x8: /* f3 */
+ case 0x08: /* f3 */
key = 99;
break;
- case 0x7: /* f4 */
+ case 0x07: /* f4 */
key = 118;
break;
- case 0x6: /* f5 */
+ case 0x06: /* f5 */
key = 96;
break;
case 0x7f: /* f6 */
key = 97;
break;
- case 0xb: /* f7 */
+ case 0x0b: /* f12 */
key = 111;
break;
}
Home |
Main Index |
Thread Index |
Old Index