Skip to content

Commit a4a65b2

Browse files
author
harunkurt.me
committed
new file read_from_mouse.py
1 parent 3c1654b commit a4a65b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

read_from_mouse.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
mouse=open('/dev/input/mice')
2+
3+
4+
while True:
5+
6+
event=mouse.read(3)
7+
8+
print(event)

0 commit comments

Comments
 (0)