moses-palmer / pynput

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

Add key pressed time #581

Open 4Source opened 6 months ago

4Source commented 6 months ago

This would be useful to have the time when the key was pressed.

Don't know how to apply this to the other systems and don't have access to test so i leaved it unchanged.

In general it would be much nicer to receive a key event instead of just the key character. The event could contain the key character and time also the vk_code or scan_code would be useful to have.