svn commit: r356092 - head/sys/dev/kbdmux

Kyle Evans kevans at freebsd.org
Fri Dec 27 16:28:58 UTC 2019


On Fri, Dec 27, 2019 at 9:04 AM Hans Petter Selasky <hps at selasky.org> wrote:
>
> TODO:
>
> Is there a way to distinguish between key events which are key-presses
> and events which are auto-repeated key-presses?
>

At the risk of asking a dumb question, where are you wanting to make
this distinction at?

I haven't thought much about it, but it looks like we could either
burn the last keyflag for it (we haven't added one in at least 13
years) or use `NOKEY | keychar` as an indicator for this, as I think
that would still make logical sense. NOKEY is currently used a
standalone value for 'no key pressed marker', and everything in-tree
seems to check (read_char() == NOKEY) rather than
(KEYFLAGS(read_char()) == NOKEY) for the current interpretation.

Thanks,

Kyle Evans


More information about the svn-src-all mailing list