remarkable_mouse icon indicating copy to clipboard operation
remarkable_mouse copied to clipboard

Add a hotkey to pause listening to new movements

Open RduMarais opened this issue 2 years ago • 2 comments

I implemented this feature so I could use the eraser when drawing.

What is going on :

  • I added a check in both read_tablet functions tp pause the incoming events using a shortcut.
  • The shortcut is fetched using lib keyboard
  • You can define your shortcut using --hotkey argument.
  • By default, no hotkey is defined
  • you can use all key codes available here

What could be improved

  • I implemented it, but did not test with evdev
  • keyboard uses a lot of imports, there are probably lighter libs that could be used.
  • This branch also use a fix for MacOS I found in #82 and proposed in #83

RduMarais avatar Jun 16 '23 22:06 RduMarais

Can pynput be used instead of keyboard for this? It is already a dependency of this package.

Evidlo avatar Jun 19 '23 19:06 Evidlo

Bump

Evidlo avatar Jul 25 '24 21:07 Evidlo