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

Summary: SDL should have an event to notify about keyboard mapping changes
Product: SDL Reporter: Drew Bliss <drewb>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: icculus, philipp.wiesemann
Version: 2.0.3   
Hardware: All   
OS: All   

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.