Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
511 stars 121 forks source link

Minor keyboard input fixes #847

Closed samhocevar closed 7 months ago

samhocevar commented 7 months ago

This PR tries to improve consistency across desktop platforms:

RblSb commented 7 months ago

Isn't autorepeating should be disabled on all platforms and implemented by user? At least this is basic behavior for keydown, not sure if this change about keypress and what behavior for keypress is preferable

samhocevar commented 7 months ago

The application can just ignore repeated keys if it wants to implement its own autorepeat mechanism, so nothing is lost.

Also, exposing repeated keys ensures that the autorepeat delay and rate are exactly what the user configured in their operating system. I think that’s a good thing.