changeset 684: |
29fe829a7ac3 |
child: |
ebe3315b7add |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Sun, 29 Sep 2024 00:31:24 -0400 |
permissions: |
-rw-r--r-- |
description: |
evdev and io/kbd |
1 ;;; kbd.lisp --- Keyboard-based IO 3 ;; Keyboard-like devices and input 9 ;; - https://www.kernel.org/doc/Documentation/input/event-codes.txt 15 (deferror kbd-error () ()) 17 (defstruct keyboard path state compose-state) 19 (defconstant +evdev-offset+ 8) 21 (defun evdev-bit-is-set (array bit)) 23 (defun keyboard-device-p (path)) 24 ;; (sb-posix:ioctl (fd path) 25 (defun make-keyboard-from-dev (dev keymap compose-table)) 27 (defun get-keyboards (keymap compose-table &optional (dir "/dev/input")) 28 (let ((devices (directory dir))) 30 (let ((ret (make-keyboard-from-dev dev keymap compose-table))) 33 ;; (with-open-file (file "/dev/input/event4") 34 ;; (let ((fd (sb-sys:fd-stream-fd file))