What is the command "push" the buttons?

So as not to dull the text was printed, and she Windows/PC thought presses a key on the keyboard or button on the controller with a delay of a few milliseconds, as if it were the man prints. How to learn the "names" of the buttons on the controller, so you can specify? If not difficult, can you show an example
April 4th 20 at 12:58
1 answer
April 4th 20 at 13:00
Solution
to me the most important to know the name of the buttons on any controller. How to simulate pressing've already figured out - dave commented on April 4th 20 at 13:03
@dave, something like this tried? To record the events for 10 seconds by pressing the gamepad buttons, then display the events.
import keyboard
import time

keyboard.start_recording()
time.sleep(10)
events = keyboard.stop_recording()
print(events)
- Jaylin commented on April 4th 20 at 13:06
@Jaylin, I'm a LAMER. But thank you) - dave commented on April 4th 20 at 13:09
@dave, what is more there is an example that displays real-time code of the pressed button.

https://github.com/boppreh/keyboard/blob/master/ex... - Jaylin commented on April 4th 20 at 13:12

Find more questions by tags Python