so I'm working on building a robot on my raspberry pi 3B+ and I wanted to control the motors with my wireless keyboard I bought. I downloaded the python library keyboard which is what I've used in the past for projects on my pc. the import works fine but when I try to use the keyboard.is_pressed() it says that I have to be signed into a the root account. it took me some time but I figured how to get into that but I realized that I lose all of my scripts and data if I sign into root. I found I can kinda do the same thing with pygame but I don't really like that way. is there anyway I can get around the root restrict or get all my data from my main account to root.
keyboard.is_pressed()
2.1m questions
2.1m answers
60 comments
57.0k users