diff options
author | Tobias Heider <tobhe@cvs.openbsd.org> | 2024-01-03 21:41:45 +0000 |
---|---|---|
committer | Tobias Heider <tobhe@cvs.openbsd.org> | 2024-01-03 21:41:45 +0000 |
commit | d966d993d0e0c464684f736f00fed41af8b70be3 (patch) | |
tree | d798e9a51972e3bd893568ea9b1458ed1228c382 /sys/dev/hid | |
parent | 64078ec99f795f0c1951ffc9258672ae8544d5e5 (diff) |
Enable Apple brightness keys also for archs other than macppc.
ok kettenis@
Diffstat (limited to 'sys/dev/hid')
-rw-r--r-- | sys/dev/hid/hidkbd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/hid/hidkbd.c b/sys/dev/hid/hidkbd.c index 261e4e63db8..4caf7ac7f0f 100644 --- a/sys/dev/hid/hidkbd.c +++ b/sys/dev/hid/hidkbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hidkbd.c,v 1.11 2023/11/30 12:50:41 miod Exp $ */ +/* $OpenBSD: hidkbd.c,v 1.12 2024/01/03 21:41:44 tobhe Exp $ */ /* $NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -126,9 +126,9 @@ static const struct hidkbd_translation apple_tb_trans[] = { static const struct hidkbd_translation apple_fn_trans[] = { { 40, 73 }, /* return -> insert */ { 42, 76 }, /* backspace -> delete */ + { 58, 233 }, /* F1 -> screen brightness down */ + { 59, 232 }, /* F2 -> screen brightness up */ #ifdef notyet - { 58, 0 }, /* F1 -> screen brightness down */ - { 59, 0 }, /* F2 -> screen brightness up */ { 60, 0 }, /* F3 */ { 61, 0 }, /* F4 */ { 62, 0 }, /* F5 -> keyboard backlight down */ @@ -138,8 +138,6 @@ static const struct hidkbd_translation apple_fn_trans[] = { { 66, 0 }, /* F9 -> audio next */ #endif #ifdef __macppc__ - { 58, 233 }, /* F1 -> screen brightness down */ - { 59, 232 }, /* F2 -> screen brightness up */ { 60, 127 }, /* F3 -> audio mute */ { 61, 129 }, /* F4 -> audio lower */ { 62, 128 }, /* F5 -> audio raise */ |