Mercurial > core / lisp/ffi/evdev/input.lisp
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 ;;; input.lisp --- Linux Input Subsystem Wrappers 6 (in-package :evdev/input) 9 (define-alien-type timeval 11 (tv-sec sb-unix:time-t) 14 (define-alien-type input-event 21 (define-alien-type input-id 23 (bustype (unsigned 16)) 24 (vendor (unsigned 16)) 25 (product (unsigned 16)) 26 (version (unsigned 16)))) 28 (define-alien-type input-absinfo 37 (define-alien-type input-keymap-entry 38 (struct input-keymap-entry 41 (index unsigned-short) 43 (scancode (array (unsigned 8) 32)))) 45 (define-alien-type input-mask 49 (codes-ptr (unsigned 64)))) 51 (define-alien-type ff-replay 53 (length unsigned-short) 54 (delay unsigned-short))) 56 (define-alien-type ff-trigger 58 (button unsigned-short) 59 (interval unsigned-short))) 61 (define-alien-type ff-envelope 63 (attack-length unsigned-short) 64 (attack-level unsigned-short) 65 (fade-length unsigned-short) 66 (fade-level unsigned-short))) 68 (define-alien-type ff-constant-effect 69 (struct ff-constant-effect 71 (envelop ff-envelope))) 73 (define-alien-type ff-ramp-effect 74 (struct ff-ramp-effect 77 (envelope ff-envelope))) 79 (define-alien-type ff-condition-effect 80 (struct ff-condition-effect 81 (right-saturation unsigned-short) 82 (left-saturation unsigned-short) 85 (deadband unsigned-short) 88 (define-alien-type ff-periodic-effect 89 (struct ff-periodic-effect 90 (waveform unsigned-short) 91 (period unsigned-short) 94 (phase unsigned-short) 95 (envelope ff-envelope) 97 (custom-data (* short)))) 99 (define-alien-type ff-rumble-effect 100 (struct ff-rumble-effect 101 (strong-magnitutde unsigned-short) 102 (weak-magnitude unsigned-short))) 104 (define-alien-type ff-effect 106 (type unsigned-short) 108 (direction unsigned-short) 112 (constant ff-constant-effect) 113 (ramp ff-ramp-effect) 114 (periodic ff-periodic-effect) 115 (condition (array ff-condition-effect 2)) 116 (rumble ff-rumble-effect)))))