jahnf / Projecteur

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

[BUG] InputMapper fail to map to correct action #144

Closed mayanksuman closed 3 years ago

mayanksuman commented 3 years ago

Description When two different input sequences of same length and same end KeyEvent are defined then InputMapper fails to map to correct action.

To Reproduce Define two input sequences as shown in this figure.

Screenshot from 2021-08-09 13-37-02

These two input sequences have two keyEvents with same last KeyEvent. First one is double click on Spotlight device and other one is Next Button Press followed by Click on Spotlight device.

Now try to press these two input sequences one by one, you will not be able to get right action in both cases.

For me, I always get 'b' Key Sequence.

Expected behavior The InputMapper should map to correct action.

jahnf commented 3 years ago

Thank you mayank - good find - the way it was implemented by me with a map was producing the wrong output - basically overwriting any Action that was already set. This will be fixed with #146 .