As it turned out, I needed to emerge xf86-input-keyboard---at which point keyboard function was recovered, but mouse function was dead. Then I emerged xf86-input-mouse.
The second thing I had to do was comment two lines in my xorg.conf:
dri and xtrap.
That was pretty easy.
Alan Davis
"...can the human soul be glimpsed through a microscope? Maybe, but
you'd definitely need one of those very good ones with two eyepieces."
-- Woody Allen, quoted by B. A. Palevitz

