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/BsVirtualInput.h" |
7 | |
8 | namespace bs |
9 | { |
10 | /** @addtogroup GUI |
11 | * @{ |
12 | */ |
13 | |
14 | /** Holds data about a GUI event that happens when a virtual button is pressed. */ |
15 | class BS_EXPORT GUIVirtualButtonEvent |
16 | { |
17 | public: |
18 | GUIVirtualButtonEvent() = default; |
19 | |
20 | /** Returns the virtual button the event is referring to. */ |
21 | const VirtualButton& getButton() const { return mButton; } |
22 | private: |
23 | friend class GUIManager; |
24 | |
25 | /** Initializes the data for the event. */ |
26 | void setButton(const VirtualButton& button) { mButton = button; } |
27 | |
28 | VirtualButton mButton; |
29 | }; |
30 | |
31 | /** @} */ |
32 | } |