1//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
2//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
3#pragma once
4
5#include "BsPrerequisites.h"
6#include "Input/BsInputFwd.h"
7#include "Math/BsVector2I.h"
8
9namespace bs
10{
11 /** @addtogroup GUI
12 * @{
13 */
14
15 /** A text input event representing input of a single character. */
16 class BS_EXPORT GUITextInputEvent
17 {
18 public:
19 GUITextInputEvent() = default;
20
21 /** Character code that was input. */
22 const UINT32& getInputChar() const { return mInputChar; }
23 private:
24 friend class GUIManager;
25
26 /** Initializes the event data with the character that was input. */
27 void setData(UINT32 inputChar);
28
29 UINT32 mInputChar = 0;
30 };
31
32 /** @} */
33}