-/* $OpenBSD: apldc.c,v 1.6 2023/03/26 09:34:06 jsg Exp $ */
+/* $OpenBSD: apldc.c,v 1.7 2023/04/10 15:14:04 tobhe Exp $ */
/*
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
*
/* XXX: should we set something else? */
*(u_int *)data = WSKBD_TYPE_USB;
return 0;
+ case WSKBDIO_SETLEDS:
+ apldckbd_set_leds(v, *(int *)data);
+ return 0;
default:
return hidkbd_ioctl(kbd, cmd, data, flag, p);
}
-/* $OpenBSD: aplhidev.c,v 1.10 2022/11/21 14:39:23 kettenis Exp $ */
+/* $OpenBSD: aplhidev.c,v 1.11 2023/04/10 15:14:04 tobhe Exp $ */
/*
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
* Copyright (c) 2013-2014 joshua stein <jcs@openbsd.org>
/* XXX: should we set something else? */
*(u_int *)data = WSKBD_TYPE_USB;
return 0;
+ case WSKBDIO_SETLEDS:
+ aplkbd_set_leds(v, *(int *)data);
+ return 0;
default:
return hidkbd_ioctl(kbd, cmd, data, flag, p);
}