mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Add mapping notification support for X11
This commit is contained in:
parent
aba54925d8
commit
89ea3af65e
@ -782,7 +782,7 @@ String KeyboardImpl::getDescription(Keyboard::Scancode code)
|
||||
case Keyboard::Scan::LaunchMail: return "Launch Mail";
|
||||
case Keyboard::Scan::LaunchMediaSelect: return "Launch Media Select";
|
||||
|
||||
default: return "Unknown Scancode";
|
||||
default: return "Unknown Scancode";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2005,6 +2005,15 @@ bool WindowImplX11::processEvent(XEvent& windowEvent)
|
||||
break;
|
||||
}
|
||||
|
||||
// Keyboard mapping changed
|
||||
case MappingNotify:
|
||||
{
|
||||
if (windowEvent.xmapping.request == MappingKeyboard)
|
||||
XRefreshKeyboardMapping(&windowEvent.xmapping);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
// Window unmapped
|
||||
case UnmapNotify:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user