Bypass events and get the physical keyboard state directly

Pekka Paalanen ppaalanen at gmail.com
Tue Feb 21 07:59:36 UTC 2017


On Tue, 21 Feb 2017 12:19:27 +1300
Bryan Baldwin <bryan at katofiad.co.nz> wrote:

> Yup, the encryption was an automagickal client mistake.
> 
> And I understand all your points, and don't disagree with the
> security model. I just don't think that the people and the software
> that are assuming responsibility for system security should be. I'm
> not afraid to go and look, then tear it up and write my own thing if
> its a good use of time. I think its going to be a very good use of
> time these days ;)
> 
> For posterity, the input problem I had is a bug in SDL2. Pressing and
> holding down a key was not producing events with the repeat flag set.
> It produced pairs of keydown & pressed - keyup & released events
> without the repeat flag set. These events continued to be send long
> after the key was physically released. It is an untenable expectation
> for the application to track key state with garbage input.
> 
> This is a known SDL2 bug affecting at least verisons 2.0.4
> https://bugzilla.libsdl.org/show_bug.cgi?id=3472 and 2.0.5.
> 
> There is a patch I've tested locally on my own system, and it works.
> https://bugzilla-attachments.libsdl.org/attachment.cgi?id=2594

Hi Bryan,

I am glad you found the culprit and told us what it is. I would have
never guessed it to be an SDL bug caused by such subtle interactions.

Happy hacking!


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20170221/aa217ebe/attachment.sig>


More information about the xdg mailing list