Show mouse raw input from mouse library.

I'm missing a bunch of precision which is no good for capture.
This commit is contained in:
Eli Ribble 2021-08-26 07:36:41 -06:00
parent 71553e0648
commit 02f04b78a6
1 changed files with 19 additions and 0 deletions

19
show-mouse Executable file
View File

@ -0,0 +1,19 @@
#!env python3
import keyboard
import logging
import mouse
def main() -> None:
logging.basicConfig(level=logging.DEBUG)
mouse.hook(_on_event)
try:
mouse.wait()
except KeyboardInterrupt:
pass
print("End.")
def _on_event(event: keyboard.KeyboardEvent) -> None:
print(event)
if __name__ == "__main__":
main()