mirror of
https://github.com/minetest/irrlicht.git
synced 2025-09-15 04:35:49 +02:00
Prepare GUI for IME support
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "ISceneManager.h"
|
||||
#include "IEventReceiver.h"
|
||||
#include "IFileSystem.h"
|
||||
#include "IGUIElement.h"
|
||||
#include "IGUIEnvironment.h"
|
||||
#include "os.h"
|
||||
#include "IrrCompileConfig.h"
|
||||
@@ -503,6 +504,14 @@ void CIrrDeviceStub::clearSystemMessages()
|
||||
{
|
||||
}
|
||||
|
||||
//! Checks whether the input device should take input from the IME
|
||||
bool CIrrDeviceStub::acceptsIME()
|
||||
{
|
||||
if (!GUIEnvironment)
|
||||
return false;
|
||||
gui::IGUIElement *elem = GUIEnvironment->getFocus();
|
||||
return elem && elem->acceptsIME();
|
||||
}
|
||||
|
||||
|
||||
} // end namespace irr
|
||||
|
Reference in New Issue
Block a user