diff options
author | yw05 <37980625+yw05@users.noreply.github.com> | 2021-03-30 13:52:45 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-04-02 23:17:27 +0200 |
commit | 32004b9c5f9de67dad625d137f8cb9cfd1eb0b14 (patch) | |
tree | 2c81d24dbd5dff2ae38469847989768fe7a8e590 /include/IEventReceiver.h | |
parent | d7127df9f878863a424adda4dca4f8331e720b26 (diff) | |
download | irrlicht-32004b9c5f9de67dad625d137f8cb9cfd1eb0b14.tar.xz |
Prepare GUI for IME support
Diffstat (limited to 'include/IEventReceiver.h')
-rw-r--r-- | include/IEventReceiver.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/IEventReceiver.h b/include/IEventReceiver.h index e1c78a6..4b0af17 100644 --- a/include/IEventReceiver.h +++ b/include/IEventReceiver.h @@ -34,7 +34,11 @@ namespace irr IrrlichtDevice::postEventFromUser. They take the same path as mouse events. */
EET_KEY_INPUT_EVENT,
- //! A touch input event.
+ //! A string input event.
+ /** This event is created when multiple characters are sent at a time (e.g. using an IME). */
+ EET_STRING_INPUT_EVENT,
+
+ //! A touch input event.
EET_TOUCH_INPUT_EVENT,
//! A accelerometer event.
@@ -413,7 +417,14 @@ struct SEvent bool Control:1;
};
- //! Any kind of touch event.
+ //! String input event.
+ struct SStringInput
+ {
+ //! The string that is entered
+ core::stringw *Str;
+ };
+
+ //! Any kind of touch event.
struct STouchInput
{
// Touch ID.
@@ -581,6 +592,7 @@ struct SEvent struct SGUIEvent GUIEvent;
struct SMouseInput MouseInput;
struct SKeyInput KeyInput;
+ struct SStringInput StringInput;
struct STouchInput TouchInput;
struct SAccelerometerEvent AccelerometerEvent;
struct SGyroscopeEvent GyroscopeEvent;
|