Mercurial > core / lisp/ffi/evdev/input.lisp
changeset 685: |
ebe3315b7add |
parent: |
29fe829a7ac3
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Sun, 29 Sep 2024 22:44:52 -0400 |
permissions: |
-rw-r--r-- |
description: |
evdev/kbd fully operational, rustls and blake3 cleanups |
1 ;;; input.lisp --- Linux Input Subsystem Wrappers 6 (in-package :evdev/input) 8 ;; (defun eviocgbit (ev len) 10 ;; (sb-posix::ioctl 8 2 "E" (+ #x20 ev) len)) 12 (define-alien-type input-event 14 (time sb-posix::alien-timeval) 19 (define-alien-type input-id 21 (bustype (unsigned 16)) 22 (vendor (unsigned 16)) 23 (product (unsigned 16)) 24 (version (unsigned 16)))) 26 (define-alien-type input-absinfo 35 (define-alien-type input-keymap-entry 36 (struct input-keymap-entry 39 (index unsigned-short) 41 (scancode (array (unsigned 8) 32)))) 43 (define-alien-type input-mask 47 (codes-ptr (unsigned 64)))) 49 (define-alien-type ff-replay 51 (length unsigned-short) 52 (delay unsigned-short))) 54 (define-alien-type ff-trigger 56 (button unsigned-short) 57 (interval unsigned-short))) 59 (define-alien-type ff-envelope 61 (attack-length unsigned-short) 62 (attack-level unsigned-short) 63 (fade-length unsigned-short) 64 (fade-level unsigned-short))) 66 (define-alien-type ff-constant-effect 67 (struct ff-constant-effect 69 (envelop ff-envelope))) 71 (define-alien-type ff-ramp-effect 72 (struct ff-ramp-effect 75 (envelope ff-envelope))) 77 (define-alien-type ff-condition-effect 78 (struct ff-condition-effect 79 (right-saturation unsigned-short) 80 (left-saturation unsigned-short) 83 (deadband unsigned-short) 86 (define-alien-type ff-periodic-effect 87 (struct ff-periodic-effect 88 (waveform unsigned-short) 89 (period unsigned-short) 92 (phase unsigned-short) 93 (envelope ff-envelope) 95 (custom-data (* short)))) 97 (define-alien-type ff-rumble-effect 98 (struct ff-rumble-effect 99 (strong-magnitutde unsigned-short) 100 (weak-magnitude unsigned-short))) 102 (define-alien-type ff-effect 104 (type unsigned-short) 106 (direction unsigned-short) 110 (constant ff-constant-effect) 111 (ramp ff-ramp-effect) 112 (periodic ff-periodic-effect) 113 (condition (array ff-condition-effect 2)) 114 (rumble ff-rumble-effect)))))