Skip to content

Commit ee0e680

Browse files
authored
Merge pull request gvalkov#71 from rkoe/patch-1
fix example-code (categorize -> evdev.categorize)
2 parents e22660f + 49aac55 commit ee0e680

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/usage.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Reading events from a device
2929

3030
>>> for event in device.read_loop():
3131
... if event.type == evdev.ecodes.EV_KEY:
32-
... print(categorize(event))
32+
... print(evdev.categorize(event))
3333
... # pressing 'a' and holding 'space'
3434
key event at 1337016188.396030, 30 (KEY_A), down
3535
key event at 1337016188.492033, 30 (KEY_A), up

0 commit comments

Comments
 (0)