We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3111 - SDL should have an event to notify about keyboard mapping changes
Summary: SDL should have an event to notify about keyboard mapping changes
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.3
Hardware: All All
: P2 enhancement
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-01 20:55 UTC by Drew Bliss
Modified: 2017-08-14 20:02 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Drew Bliss 2015-09-01 20:55:41 UTC
Currently SDL watches for keyboard / language changes on most platforms and updates mappings as necessary.  However it doesn't generate an event in that situation so there's no easy way for applications to refresh their own keyboard / language caches.
Comment 1 Philipp Wiesemann 2016-01-14 20:14:12 UTC
There is an SDL_KEYMAPCHANGED event in SDL 2.0.4 which may be used in some situation. It is not implemented on all platforms.
Comment 2 Sam Lantinga 2017-08-12 23:17:44 UTC
Drew, does this event cover what you need?
Comment 3 Sam Lantinga 2017-08-14 20:02:11 UTC
The event was added after this bug report and resolved the bug for Drew.