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] Button mapping broken: Keyboard event not received by application #216

Open MarcelWaldvogel opened 11 months ago

MarcelWaldvogel commented 11 months ago

Description Creating a mapped action to a keyboard event does not result in that keyboard event being accepted by an application.

To Reproduce

Expected behavior The application does respond to the key.

Desktop/Linux Environment (please complete the following information):

MarcelWaldvogel commented 11 months ago

Experimentally, I lowered the upper key limit from KEY_MACRO1 (0x290) to KEY_COMPOSE (127).

Now, the E is received by applications.

Judging from the following code/comment, may I presume that you ran into a similar problem earlier?

https://github.com/jahnf/Projecteur/blob/eb9ff490f8206c8010df7f73d3aa8fe9ed9e51b3/src/virtualdevice.cc#L103-L106

MarcelWaldvogel commented 11 months ago

From the above-mentioned Debian bug discussion, it is my understanding that a kernel fix is required to really fix the problem (increase the buffer to handle these generic virtual keyboards).

Proposal:

jahnf commented 11 months ago

Experimentally, I lowered the upper key limit from KEY_MACRO1 (0x290) to KEY_COMPOSE (127).

Now, the E is received by applications.

Judging from the following code/comment, may I presume that you ran into a similar problem earlier?

https://github.com/jahnf/Projecteur/blob/eb9ff490f8206c8010df7f73d3aa8fe9ed9e51b3/src/virtualdevice.cc#L103-L106

Yes indeed there was an issue, I will have time to look into it again next week.

Thank you for the detailed information