Bypass events and get the physical keyboard state directly

Bryan Baldwin bryan at katofiad.co.nz
Tue Feb 21 09:33:37 UTC 2017


On 02/21/2017 08:59 PM, Pekka Paalanen wrote:
> 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.
Its weirder than that. The input bug hasn't any obvious effect on the video animation until after you add timed sections to your game loop. Specifically, sleeping the game process after processing the current frame until the beginning of the next frame.

Once I started return CPU cycles back to the system, I got slammed with ghosted events that would continue moving the screen around long after my hands had left the keyboard. I'm also doing Win32 platform code with a similar game loop design in another layer, and that was working fine with identical game code.

The entire time, I couldn't believe that was the quality of keyboard input on Linux. Sheesh.

https://bugs.gentoo.org/show_bug.cgi?id=610326

-- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20170221/872909b7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature_sml.png
Type: image/png
Size: 10748 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20170221/872909b7/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xD64E442F.asc
Type: application/pgp-keys
Size: 3074 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20170221/872909b7/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20170221/872909b7/attachment-0001.sig>


More information about the xdg mailing list