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:
parent
71553e0648
commit
02f04b78a6
|
@ -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()
|
Loading…
Reference in New Issue