jahnf / Projecteur

Linux Desktop Application for the Logitech Spotlight device (and similar devices) - Digital Laser Pointer
MIT License
379 stars 33 forks source link

Add button release code for button long press events #158

Closed mayanksuman closed 3 years ago

mayanksuman commented 3 years ago

This commit add the button release code for signifying the end of long-press event. While presenting, if a user press next/back button for a while and then release it within Input Sequence Interval time (a setting in Input Mapper tab), only the action corresponding to long-press will be executed.

Hence, now there are three specific actions possible for each of Next and Hold button on Logitech Spotlight:

  1. Tap event
  2. Long-Press (but not longer than Input Sequence Interval setting in Input Mapper tab)
  3. Hold Move: It can be mapped to special motion related mapped actions like Scrolling (Horizontal and Vertical) or Volume Control.

The ReadMe is updated accordingly.

Screenshot from 2021-09-17 22-08-37

mayanksuman commented 3 years ago

As an idea it looked good, however it is very tricky to execute for user.

@jahnf , I am closing this. I think, we can warn user about setting both long-press and hold move event simultaneously on same button (unless they want the behaviour of triggering two events on button hold and move) in the docs.

jahnf commented 3 years ago

As an idea it looked good, however it is very tricky to execute for user.

@jahnf , I am closing this. I think, we can warn user about setting both long-press and hold move event simultaneously on same button (unless they want the behaviour of triggering two events on button hold and move) in the docs.

Yes a note in the documentation should be sufficient.