| Summary: | Text Input is active by default | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Bram Stolk <b.stolk> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | linus.probert |
| Version: | 2.0.8 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Bram Stolk
2018-05-11 20:22:25 UTC
Nice post. I was not aware of this but I've been wondering over the "jitter" you mentioned which I'm quite sure I've been affected by.
Not my place to say, but the offending line is in SDL_video.c:568 (current code).
The comment above suggests that this is intended so perhaps the documentation should be updated:
---
/* If we don't use a screen keyboard, turn on text input by default,
otherwise programs that expect to get text events without enabling
UNICODE input won't get any events.
Actually, come to think of it, you needed to call SDL_EnableUNICODE(1)
in SDL 1.2 before you got text input events. Hmm...
*/
if (!SDL_HasScreenKeyboardSupport()) {
SDL_StartTextInput();
}
---
|