moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.74k stars 244 forks source link

installing on Steam Deck #540

Closed Shades84 closed 1 year ago

Shades84 commented 1 year ago

Im working on a project for the Steam Deck and want to use pynput. When I install it, i get an error that 'linux/input.h' and '/linux/input-event-codes.h' are missing. I did a little research, and one post pointed me here

I downloaded the linux-neptune-headers-5.13.0.valve36-1-x86_64.pkg.tar.zst file and extracted it. Managed to find these files

./lib/modules/5.13.0-valve36-1-neptune/build/include/uapi/linux/input-event-codes.h
./lib/modules/5.13.0-valve36-1-neptune/build/include/uapi/linux/input.h
./lib/modules/5.13.0-valve36-1-neptune/build/include/dt-bindings/input/input.h
./lib/modules/5.13.0-valve36-1-neptune/build/include/linux/usb/input.h
./lib/modules/5.13.0-valve36-1-neptune/build/include/linux/input.h

Do i just put these where pynput/pip is expecting them? I don't want to break anything

moses-palmer commented 1 year ago

Thank you for your report.

I think those errors stem from evdev. You may want to read up on its installation instructions.