[Midnightbsd-cvs] [MidnightBSD/src] e33e56: Improve USB gaming keyboard support.

Lucas Holt noreply at github.com
Sun Nov 15 01:37:35 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: e33e56fd4fbfdb71fee36fe2b5d2175686921bb9
      https://github.com/MidnightBSD/src/commit/e33e56fd4fbfdb71fee36fe2b5d2175686921bb9
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2020-11-15 (Sun, 15 Nov 2020)

  Changed paths:
    M sys/dev/usb/input/ukbd.c

  Log Message:
  -----------
  Improve USB gaming keyboard support.

Add support for decoding pressed keys as a bitmap. The keys in the
bitmap are described in the interface specific HID descriptor. Some
keyboards even have multiple input interfaces, only using the bitmap
method when the event array is full. That typically means when more
than seven keys are pressed simultaneously.

The internals of the USB keyboard driver have been slightly reworked
to keep track of all keys in a single bitmap having 256 bits. This
bitmap is then divided into blocks of 64-bits as an optimisation.

Simplify automatic key repeat logic, because only the last key pressed
can be repeated.

Obtained from: FreeBSD




More information about the Midnightbsd-cvs mailing list